[9] RFR(S): 8060479: [TESTBUG] compiler/codecache/CheckSegmentedCodeCache.java test fails with product build

Vladimir Kozlov vladimir.kozlov at oracle.com
Fri Oct 17 08:47:36 UTC 2014


CodeCacheMinimumUseSpace is different for Zero. There is WB API which returns options value getUintxVMFlag() you can use 
to calculate value minSize.

8046809 changes will change min_code_cache_size value again (removes CodeCacheMinimumFreeSpace). Let Albert know to 
modify this test again.

Thanks,
Vladimir

On 10/17/14 12:00 AM, Tobias Hartmann wrote:
> Can I get another review for this?
>
> Thanks,
> Tobias
>
> On 15.10.2014 16:19, Tobias Hartmann wrote:
>> Hi,
>>
>> please review the following patch.
>>
>> Bug: https://bugs.openjdk.java.net/browse/JDK-8060479
>> Webrev: http://cr.openjdk.java.net/~thartmann/8060479/webrev.00/
>>
>> Problem:
>> The test CheckSegmentedCodeCache assumes that VM startup always fails with a
>> ReservedCodeCacheSize of 1700K. This is not true for product builds (see
>> 'min_code_cache_size' in 'CodeCache::initialize_heaps()').
>>
>> Solution:
>> Check for debug build and adjust minimum code cache size accordingly.
>>
>> Testing:
>> Failing test on JPRT.
>>
>> Thanks,
>> Tobias


More information about the hotspot-compiler-dev mailing list