RFR (S) 8175249: VMThread::run fails in VerifyBeforeExit : Universe::verify

coleen.phillimore at oracle.com coleen.phillimore at oracle.com
Tue Jan 23 14:49:13 UTC 2018

On 1/22/18 7:59 PM, David Holmes wrote:
> Hi Coleen,
> On 23/01/2018 9:52 AM, coleen.phillimore at oracle.com wrote:
>> Summary: protection domain package access cache needs to be walked in 
>> unloading
>> Tested with mach5 tier1-5 on linux and windows, and with tests in the 
>> bug report.
>> open webrev at http://cr.openjdk.java.net/~coleenp/8175249.01/webrev
>> bug link https://bugs.openjdk.java.net/browse/JDK-8175249
> Fix seems okay to me.
> For the test, it "passes" as long as it doesn't crash. To actually 
> verify it worked as intended we need to look at the logging output. 
> Can we programmatically verify that the PD has infact been unloaded - 
> perhaps via a PhantomRef?

Yes, the test fails if it doesn't crash.  I was trying to simplify the 
test from the original one that failed in 
jdk/test/java/lang/ClassLoader.  I was going to test the logging output 
but it gets very long and I was afraid of what I want to find would get 
cut off by jtreg.
The PD does get unloaded, it just needs to be cleaned off the _pd_set 
linked list.

> Thanks,
> David
>> Thanks,
>> Coleen

More information about the hotspot-runtime-dev mailing list