RFR (S) 8202669: Intermittent crash in ClassLoadingService::compute_class_size()

coleen.phillimore at oracle.com coleen.phillimore at oracle.com
Tue May 22 15:57:04 UTC 2018



On 5/21/18 7:28 PM, David Holmes wrote:
> Hi Coleen,
>
> This looks good.
>
> On 22/05/2018 9:01 AM, coleen.phillimore at oracle.com wrote:
>> Summary: Don't report classes that failed to load when reporting 
>> class unloading.  Remove the classes first.
>>
>> Also add a NULL check for transitive_interfaces for safety, but the 
>> new tests pass without it and fail without the fix.
>>
>> open webrev at http://cr.openjdk.java.net/~coleenp/8202669.01/webrev
>> bug link https://bugs.openjdk.java.net/browse/JDK-8202669
>
> src/hotspot/share/classfile/classLoaderData.cpp
>
> 590   // after erroreous classes are released.
>
> Typo: erroreous -> erroneous

Fixed.
>
> ---
>
> test/hotspot/jtreg/runtime/BadObjectClass/TestLoadObject.java
>
> 56       byte[] buf = InMemoryJavaCompiler.compile("java.lang.Object", 
> source,
>  57 "--patch-module=java.base");
>
> Indent is wrong on line 57.

I'll fix the indentation in the TestUnloadClassError.java test.
>
> I don't see why you need the two test programs as 
> TestUnloadClassError.java tests both conditions.

True, they are the same (except the one does class unloading to show the 
bug).   I'll keep TestUnloadClassError.java, and Lois looked over my 
shoulder so I did it right.

Thanks!
Coleen
>
> No need to see a new webrev.
>
> Thanks,
> David
> -----
>
>> Tested with hs-tier1-5.
>>
>> Thanks,
>> Coleen



More information about the hotspot-runtime-dev mailing list