In OpenJDK project CRaC I had a need to fetch new CpuidInfo without affecting the existing one: https://github.com/openjdk/crac/commit/ed4ad9ba31b77732dcede2eb743b2f389ec9a0fe#diff-6ed856c57ddbe33e49883adb7c52ec51ed377e5f697dfd6d8bea505a97bfc5a5R2743
Which led me to encapsulate the object more and I think this no-functionality-change patch is even appropriate for JDK.
I am sure interested primarily to reduce the CRaC patchset boilerplate.
Which led me to encapsulate the object more and I think this no-functionality-change patch is even appropriate for JDK.
I am sure interested primarily to reduce the CRaC patchset boilerplate.