Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedObjectTypeImpl.java @ 24128:7c59192857ff
Backed out changeset: 6d70d9c43369
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 17 Apr 2017 00:22:16 +0200 |
parents | 6d70d9c43369 |
children | b01354ea98ec |
comparison
equal
deleted
inserted
replaced
24127:6d70d9c43369 | 24128:7c59192857ff |
---|---|
920 | 920 |
921 @Override | 921 @Override |
922 public boolean isCloneableWithAllocation() { | 922 public boolean isCloneableWithAllocation() { |
923 return (getAccessFlags() & config().jvmAccIsCloneable) != 0; | 923 return (getAccessFlags() & config().jvmAccIsCloneable) != 0; |
924 } | 924 } |
925 | |
926 static class ClassLoaders { | |
927 static ClassLoader getExtLoader() { | |
928 sun.misc.Launcher l = sun.misc.Launcher.getLauncher(); | |
929 ClassLoader cl = l.getClassLoader().getParent(); | |
930 assert cl.getClass().getName().equals("sun.misc.Launcher$ExtClassLoader") : cl.getClass().getName(); | |
931 return cl; | |
932 } | |
933 | |
934 static final ClassLoader EXT_LOADER = getExtLoader(); | |
935 } | |
936 | |
937 @Override | |
938 public boolean isPlatformType() { | |
939 ClassLoader cl = mirror().getClassLoader(); | |
940 return cl == null || cl == getClass().getClassLoader() || cl == ClassLoaders.EXT_LOADER; | |
941 } | |
942 } | 925 } |