RFR JDK-8151345 : compiler/codecache/jmx/PeakUsageTest.java is failing on jdk9/dev for JPRT -testset hotspot
Harsha Wardhana B
harsha.wardhana.b at oracle.com
Fri Aug 12 08:07:34 UTC 2016
Hello,
I forgot to put-in the fix details.
The test was failing because of a race condition caused by the order in
which MemoryPoolMXBean.getUsage and MemoryPoolMXBean.getPeakUsage was
invoked. It is possible that intermediate allocations can happen which
can lead to getUsage > getPeakUsage if getUsage is called after
getPeakUsage. The correct order would be to capture getUsage and then
capture getPeakUsage in order to account for intermediate allocations.
Thanks
Harsha
On Thursday 11 August 2016 12:02 PM, Harsha Wardhana B wrote:
> Hello,
>
> Could one of you please review the below fix?
>
> Thanks
> Harsha
>
> On Monday 08 August 2016 07:49 PM, Leonid Mesnik wrote:
>> Please use following alias for compiler tests (hotspot/test/compiler):
>>
>> hotspot-compiler-dev at openjdk.java.net
>>
>> Leonid
>>
>>
>> On 08.08.2016 17:09, Harsha wardhana B wrote:
>>> Gentle Reminder !!
>>>
>>> On 8/4/2016 9:49 PM, Harsha Wardhana B wrote:
>>>> Hello All,
>>>>
>>>> Please review the below simple test fix for the issue,
>>>>
>>>> https://bugs.openjdk.java.net/browse/JDK-8151345
>>>>
>>>> with webrev located at,
>>>>
>>>> http://cr.openjdk.java.net/~hb/8151345/webrev.00/
>>>>
>>>> Regards
>>>>
>>>> Harsha
>>>>
>>>
>>
>
More information about the hotspot-compiler-dev
mailing list