[9] RFR JDK-8141616: Add new methods to the java Whitebox API

Christian Thalinger christian.thalinger at oracle.com
Mon Feb 22 19:33:37 UTC 2016


+WB_ENTRY(jint, WB_GetConstantPoolCacheLength(JNIEnv* env, jobject wb, jclass klass))
+  instanceKlassHandle ikh(java_lang_Class::as_Klass(JNIHandles::resolve(klass)));
+  ConstantPool* cp = ikh->constants();
+  if (cp->cache() == NULL) {
+      return -1;
+  }

Shouldn’t this throw an exception like in the other methods?

> On Feb 17, 2016, at 3:53 AM, Konstantin Shefov <konstantin.shefov at oracle.com> wrote:
> 
> Hello
> 
> Please review some new methods added to the sun.hotspot.WhiteBox API.
> These methods are needed to test JVMCI CompilerToVM methods, see https://bugs.openjdk.java.net/browse/JDK-8138708 for more info.
> 
> 
> Bug: https://bugs.openjdk.java.net/browse/JDK-8141616
> Webrev for java part: http://cr.openjdk.java.net/~kshefov/8141616/root/webrev.00/
> Webrev for native part: http://cr.openjdk.java.net/~kshefov/8141616/hotspot/webrev.00/
> 
> Thanks
> -Konstantin



More information about the hotspot-compiler-dev mailing list