RFR: 8248132: ZGC: Unify handling of all OopStorage instances in root processing

Thomas Schatzl thomas.schatzl at oracle.com
Wed Jun 24 10:05:51 UTC 2020


Hi,

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:
> https://cr.openjdk.java.net/~stefank/8248132/webrev.07/
> 
> 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.

Thomas




More information about the hotspot-gc-dev mailing list