RFR(S): JDK-8145317 ReservedStackTest fails with ReentrantLock looks corrupted

Frederic Parain frederic.parain at oracle.com
Thu Dec 17 08:59:56 UTC 2015


Dan,

thank you for the review, comment are in-lined below.

On 12/16/2015 04:35 PM, Daniel D. Daugherty wrote:
> On 12/16/15 5:11 AM, Frederic Parain wrote:
>> Please review this small fix in ReservedStackTest test.
>> The test didn't exclude correctly some platforms where
>> the feature is not supported. The logic has been changed
>> to explicitly list the supported platforms.
>>
>> CR: https://bugs.openjdk.java.net/browse/JDK-8145317
>>
>> Webrev: http://cr.openjdk.java.net/~fparain/8145317/webrev/
>
> test/runtime/ReservedStack/ReservedStackTest.java
>      L27:  * @build ReservedStackTest
>          I'm reasonably certain that the @run line takes care of
>          building ReservedStackTest. What I meant by my comment
>          in the bug is that you need:
>
>          @build jdk/test/lib/Platform
>
>          or something like it. David H is the guy to ask for
>          what you need to build in the library stuff.

I need some guidance here. Looking at other tests in
hotspot/test/runtime, none of the tests using jdk/test/lib/Platform
class have a build instruction, they only have the
"@library /testlibrary" instruction.

>
>      L202:                 System.exit(-1);
>          I missed this in my original review of the test. Why
>          use '-1' for the test exit code. For JTREG tests, I
>          typically see '1' or some other small positive integer.
>          Feel free to ignore this comment since any non-zero
>          should work.

Old habit of someone who learned programming on Unix, fixed by
returning '1'.

Regards,

Fred

>>
>> Tested with JPRT, testset hotspot with aarch64 platform manually
>> added to the target platforms list.
>>
>> Thanks,
>>
>> Fred
>>
>

-- 
Frederic Parain - Oracle
Grenoble Engineering Center - France
Phone: +33 4 76 18 81 17
Email: Frederic.Parain at oracle.com


More information about the hotspot-runtime-dev mailing list