[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-hotspot-dev
Subject:    Fwd: RFR 8134641: serviceability/dcmd/compiler/CodelistTest.java fails on sun.misc.Unsafe.getUnsafe
From:       Alexander Kulyakhtin <alexander.kulyakhtin () oracle ! com>
Date:       2015-09-10 14:53:56
Message-ID: 56417dd2-21fd-4bfa-8bdc-5e7e4bfec6c9 () default
[Download RAW message or body]

(Forwarding the request from the serviceability group as this test is for the \
compiler)

Hi, 

Could you, please, review the following small test-only change:
 
Issue: https://bugs.openjdk.java.net/browse/JDK-8134641 \
"serviceability/dcmd/compiler/CodelistTest.java fails with "Test failed on: \
                sun.misc.Unsafe.getUnsafe()Lsun/misc/Unsafe;"
Webrev: http://cr.openjdk.java.net/~akulyakh/8134641_01/index.html
 
The test calls Jcmd (diagnostic command tool) Compiler.codelist and then parses the \
output, making sure that the first methods in the list is valid by reflection.  
However Unsafe.getUnsafe() method is hidden from reflection. 
Before the fix the test did not take that into account and failed whenever \
Unsafe.getUnsafe happened to be among the methods to be validated.  
The test has been changed to skip Unsafe.getUnsafe() method if present in the test \
input.  
Best regards,
Alexander


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic