RFR(XS): 8038422: CDS test failed: assert((size % os::vm_allocation_granularity()) == 0) failed when limiting SharedMiscDataSize
Yumin Qi
yumin.qi at oracle.com
Fri May 23 17:29:26 UTC 2014
Jiangli, my answer to David H may answer your question.
Thanks for the review.
Yumin
On 5/23/2014 10:12 AM, Jiangli Zhou wrote:
> Hi Yumin,
>
> Looks good to me too. I have a question, do you know why
> ReservedSpace::ReservedSpace() uses os::vm_allocation_granularity()
> for alignment check?
>
> Thanks,
> Jiangli
>
> On 05/23/2014 12:51 AM, Yumin Qi wrote:
>> Please review
>>
>> webrev: http://cr.openjdk.java.net/~minqi/8038422/
>> bug: https://bugs.openjdk.java.net/browse/JDK-8038422
>>
>> Summary: In debug version, the assert is against
>> os::vm_allocation_granularity(), but in initialization, we use
>> os::vm_page_size() to align the allocation size. In windows,
>> _vm_page_size and _vm_allocation_granularity may not be same.
>>
>> _vm_page_size = si.dwPageSize;
>> _vm_allocation_granularity = si.dwAllocationGranularity;
>>
>> This lead to the assertion failed. We should align allocation size
>> with _vm_allocation_granularity.
>>
>> test: manual testing on Windows.(which is the error on)
>> JPRT
>> jtreg
>>
>> Thanks
>> Yumin
>>
>>
>>
>
More information about the hotspot-runtime-dev
mailing list