RFR(XS): 8213563: appcds/sharedStrings/SharedStringsStress.java fails with 'GC triggered before VM initialization completed' error

Jiangli Zhou jiangli.zhou at oracle.com
Tue Nov 13 16:47:05 UTC 2018


Thanks!

Jiangli


On 11/13/18 8:17 AM, Ioi Lam wrote:
> HI Jiangli,
>
> The fix looks good!
>
> Thanks
>
> - Ioi
>
>
> On 11/9/18 4:04 PM, Jiangli Zhou wrote:
>> Please review this small fix that moves the 
>> MetaspaceShared::read_extra_data() call to the main 
>> MetaspaceShared::preload_and_dump() operation. 
>> MetaspaceShared::read_extra_data() reads extra symbol and string data 
>> for archiving. String objects are created during the process, which 
>> may trigger GC especially when large number of strings are involved.
>>
>> MetaspaceShared::read_extra_data() was called before the basic 
>> initialization completion (set_init_completed() in 
>> Threads::create_vm), in which case GC was not allowed. The issue was 
>> hidden before and started surfacing after we enabled 
>> -XX:-CompactStrings test case with SharedStringsStress.java.
>>
>> webrev: http://cr.openjdk.java.net/~jiangli/8213563/webrev.00/
>>
>> Bug: https://bugs.openjdk.java.net/browse/JDK-8213563
>>
>> Tested with 200 runs of SharedStringsStress.java via mach5. Running 
>> tier1-tier3.
>>
>> Thanks,
>>
>> Jiangli
>>
>



More information about the hotspot-runtime-dev mailing list