Re: RFR JDK-8151345 : compiler/codecache/jmx/PeakUsageTest.java is failing on jdk9/dev for JPRT -testset hotspot

2016-08-12 Thread Staffan Larsen
If you swap currUsage and peakUsage in the call to assertEQorLTE() you can use assertEQorGTE() and you won’t have to change CodeCacheUtils.java. Or am I missing something? > On 12 aug. 2016, at 17:26, Harsha Wardhana B > wrote: > > Hi, > > Please review modified webrev incorporating Staffan'

Re: RFR JDK-8151345 : compiler/codecache/jmx/PeakUsageTest.java is failing on jdk9/dev for JPRT -testset hotspot

2016-08-12 Thread Harsha Wardhana B
Hi, Please review modified webrev incorporating Staffan's comments. http://cr.openjdk.java.net/~hb/8151345/webrev.01/ Thanks Harsha On Friday 12 August 2016 01:59 PM, Staffan Larsen wrote: Harsha, Thanks for the explanation! With that in mind the new code looks correct, although I would pro

RFR:8148103:add more tests for task "Update JDI and JDWP for modules"

2016-08-12 Thread Alexander Kulyakhtin
Hi, Could you, please, review the following test-only change (adding a new test): CR: https://bugs.openjdk.java.net/browse/JDK-8148103 Webrev: http://cr.openjdk.java.net/~akulyakh/8148103_02/ The new test verifies the new JDWP commands: AllModules, Module, Name, ClassLoader, CanRead. It does s

Re: RFR(S): JDK-8157236 - attach on ARMv7 fails with com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file

2016-08-12 Thread Dmitry Samersoff
David, Updated webrev is: http://cr.openjdk.java.net/~dsamersoff/JDK-8157236/webrev.04/ Windows is absolutely different story that requires significant efforts to reproduce error conditions and test changes. Also it has nothing to do with ARMv7. So I would prefer to address windows issues separ

Re: RFR JDK-8151345 : compiler/codecache/jmx/PeakUsageTest.java is failing on jdk9/dev for JPRT -testset hotspot

2016-08-12 Thread Staffan Larsen
Harsha, Thanks for the explanation! With that in mind the new code looks correct, although I would probably make it even more obvious in which order getUsage() and getPeakUsage() is executed by calling them on separate lines before the call to assertEQorLTE() instead of relying on the order met

Re: RFR JDK-8151345 : compiler/codecache/jmx/PeakUsageTest.java is failing on jdk9/dev for JPRT -testset hotspot

2016-08-12 Thread Harsha Wardhana B
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 i