JDK-8153756 : jdk.vm.ci should not depend on sun.misc ( jdk.unsupported module )
Type:Sub-task
Component:hotspot
Sub-Component:compiler
Affected Version:9
Priority:P2
Status:Resolved
Resolution:Fixed
Submitted:2016-04-07
Updated:2016-05-26
Resolved:2016-04-19
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
jdk.vm.ci should not depend on sun.misc, which is in the jdk.unsupported module.
It should instead use jdk.internal.misc, if it needs access to Unsafe.
Comments
$ ../../images/jdk/bin/jdeps -filter jdk.unsupported -v jdk.vm.ci/* | grep unsupported
jdk -> jdk.unsupported
jdk.vm.ci.common.UnsafeUtil -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
jdk.vm.ci.hotspot.HotSpotConstantPool -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
jdk.vm.ci.hotspot.HotSpotInstalledCode -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
jdk.vm.ci.hotspot.HotSpotJVMCIRuntimeProvider -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
jdk.vm.ci.hotspot.HotSpotMemoryAccessProviderImpl -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
jdk.vm.ci.hotspot.HotSpotMetaAccessProvider -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
jdk.vm.ci.hotspot.HotSpotMethodData -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
jdk.vm.ci.hotspot.HotSpotResolvedJavaMethodImpl -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
jdk.vm.ci.hotspot.HotSpotResolvedObjectTypeImpl -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
jdk.vm.ci.hotspot.HotSpotResolvedObjectTypeImpl$FieldInfo -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
jdk.vm.ci.hotspot.HotSpotVMConfig -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
jdk.vm.ci.hotspot.HotSpotVMConfig$AbstractConstant -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
jdk.vm.ci.hotspot.HotSpotVMConfig$Flags$Flag -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
jdk.vm.ci.hotspot.HotSpotVMConfig$VMAddresses$Address -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
jdk.vm.ci.hotspot.HotSpotVMConfig$VMFields$Field -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
jdk.vm.ci.hotspot.HotSpotVMConfig$VMIntConstants$Constant -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
jdk.vm.ci.hotspot.HotSpotVMConfig$VMLongConstants$Constant -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
jdk.vm.ci.hotspot.HotSpotVMConfig$VMTypes$Type -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
jdk.vm.ci.hotspot.HotSpotVMConfigVerifier$1 -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
jdk.vm.ci.hotspot.HotSpotVmSymbols -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
jdk.vm.ci.hotspot.UnsafeAccess -> sun.misc.Unsafe JDK internal API (jdk.unsupported)