RFR  8145544: Move sun.misc.VM to jdk.internal.misc
chris.hegarty at oracle.com
Wed Jan 6 06:10:39 UTC 2016
On 6 Jan 2016, at 04:20, David Holmes <david.holmes at oracle.com> wrote:
> Hi Chris,
> Hotspot comment change looks okay.:)
> I see a lot of hotspot tests that include
> @modules java.base/sun.misc
> but I don't understand why it is present in the few cases I looked at eg:
The dependency on sun.misc is coming from the test library, specifically
jdk.test.lib.Utils. Quite a few tests in the hotspot repo use the test library,
so have this dependency ( on sun.misc.Unsafe ).
> so not sure when it needs to be converted to jdk.internal.misc
It is on my list to update these tests, see 8140608 . I punted doing
this with the Unsafe move, as I was unhappy with the test coverage of
sun.misc.Unsafe. Paul has since added some additional tests  that have
variants that cover both jdk.internal.misc.Unsafe and sun.misc.Unsafe, so
I think the hotspot tests can now be updated to only use jdk.internal.misc.
I’ll move 8140608 forward over the next few weeks.
> On 5/01/2016 12:02 AM, Chris Hegarty wrote:
>> sun.misc.VM provides a low-level interface for a small number
>> of specific operations with the VM. In preparation for JEP 260,
>> this class should be moved out of sun.misc and located in a
>> non-exported package [.
>> Note: as in other areas some tests that require access to
>> internal APIs have been updated to use types from a more
>> stable package, sun.security.x509.
>>  https://bugs.openjdk.java.net/browse/JDK-8145544
More information about the core-libs-dev