RFR: 8248132: ZGC: Unify handling of all OopStorage instances in root processing
stefan.karlsson at oracle.com
Wed Jun 24 10:08:36 UTC 2020
On 2020-06-24 12:05, Thomas Schatzl wrote:
> On 24.06.20 11:54, Stefan Karlsson wrote:
>> Hi Per,
>> Good point about the strong_count being statically known. I wasn't
>> entirely happy about the type fiddling in the proposed change below,
>> so I experimented with alternative implementations. The proposal I
>> current have is this:
>> The patch adds a few utility classes:
>> - ValueObjBlock stamps out a number of instances:
>> - ValueObjArray provides an array over those instances
>> With this we can now stamp out the OopStorage::ParState instances
>> into OopStorageSetParState without dynamic allocation and without
>> type casting.
>> A version without the gtest and with the out-of-bounds check was
>> tested in tier1-3.
> looks good.
More information about the hotspot-gc-dev