diff src/share/vm/prims/whitebox.hpp @ 20451:e2452c3ff7fb

8057752: WhiteBox extension support for testing Summary: Refactored parts of whitebox.cpp to enable registration of whitebox methods defined outside this file. Reviewed-by: mikael, ctornqvi, jmasa
author sjohanss
date Mon, 08 Sep 2014 15:24:10 +0200
parents 2c6ef90f030a
children 7848fc12602b
line wrap: on
line diff
--- a/src/share/vm/prims/whitebox.hpp	Wed Sep 10 16:06:53 2014 -0700
+++ b/src/share/vm/prims/whitebox.hpp	Mon Sep 08 15:24:10 2014 +0200
@@ -29,6 +29,8 @@
 
 #include "memory/allocation.hpp"
 #include "oops/oopsHierarchy.hpp"
+#include "oops/symbol.hpp"
+#include "runtime/interfaceSupport.hpp"
 
 // Entry macro to transition from JNI to VM state.
 
@@ -64,6 +66,9 @@
   static bool lookup_bool(const char* field_name, oop object);
 
   static int array_bytes_to_length(size_t bytes);
+  static void register_methods(JNIEnv* env, jclass wbclass, JavaThread* thread,
+    JNINativeMethod* method_array, int method_count);
+  static void register_extended(JNIEnv* env, jclass wbclass, JavaThread* thread);
 };