[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-serviceability-dev
Subject:    Re: RFR (XS): 8232182: RedefineNestmateAttr/TestNestmateAttr.java failes due to ObjectCollectedExcep
From:       David Holmes <david.holmes () oracle ! com>
Date:       2019-10-16 4:01:14
Message-ID: f6de9f4a-6183-7179-685c-285e065c8fb6 () oracle ! com
[Download RAW message or body]

Hi Martin,

On 16/10/2019 2:38 am, Martin Buchholz wrote:
> A slightly cleaner way to do this is probably via
> 
> try { ... } finally { reachabilityFence(topLevelHostA); }
> 
> instead of a static field

The reachability is not confined to that method. The class needs to be 
kept alive so that the method-entry event callback will find it later.

Cheers,
David

> On Mon, Oct 14, 2019 at 12:15 AM David Holmes <david.holmes@oracle.com 
> <mailto:david.holmes@oracle.com>> wrote:
> 
>     Bug: https://bugs.openjdk.java.net/browse/JDK-8232182
>     webrev: http://cr.openjdk.java.net/~dholmes/8232182/webrev/
> 
>     Running this test with ZGC showed that a class we were still interested
>     in could become unloaded. Simple fix is to store the Class reference in
>     a static field.
> 
>     Thanks,
>     David
> 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic