Mercurial > hg > graal-jvmci-8
diff jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/MetaspaceWrapperObject.java @ 23671:d995c88d9cd9
Backout f60746f36f3f
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Tue, 07 Jun 2016 17:23:00 -0700 |
parents | f60746f36f3f |
children | eb166b568645 |
line wrap: on
line diff
--- a/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/MetaspaceWrapperObject.java Tue Jun 07 17:22:34 2016 -0700 +++ b/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/MetaspaceWrapperObject.java Tue Jun 07 17:23:00 2016 -0700 @@ -23,8 +23,7 @@ package jdk.vm.ci.hotspot; /** - * A tag interface indicating that this type is a wrapper around a HotSpot metaspace object that - * requires GC interaction to keep alive. + * A tag interface indicating that this type is a wrapper around a HotSpot metaspace object. * * It would preferable if this were the base class containing the pointer but that would require * mixins since most of the wrapper types have complex supertype hierarchies. @@ -32,18 +31,4 @@ interface MetaspaceWrapperObject { long getMetaspacePointer(); - - /** - * Check if this object is properly registered for metadata tracking. All classes which - * implement this interface must be registered with the - * {@link HotSpotJVMCIMetaAccessContext#add} unless they are kept alive through other means. - * Currently the only type which doesn't require explicit registration is - * {@link HotSpotResolvedObjectTypeImpl} since it's kept alive by references to the - * {@link Class}. - * - * @return true if this object is properly registered for meta data tracking. - */ - default boolean isRegistered() { - return HotSpotJVMCIRuntime.runtime().metaAccessContext.isRegistered(this); - } }