Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
20450:fa6c442c59ee | 20451:e2452c3ff7fb |
---|---|
27 | 27 |
28 #include "prims/jni.h" | 28 #include "prims/jni.h" |
29 | 29 |
30 #include "memory/allocation.hpp" | 30 #include "memory/allocation.hpp" |
31 #include "oops/oopsHierarchy.hpp" | 31 #include "oops/oopsHierarchy.hpp" |
32 #include "oops/symbol.hpp" | |
33 #include "runtime/interfaceSupport.hpp" | |
32 | 34 |
33 // Entry macro to transition from JNI to VM state. | 35 // Entry macro to transition from JNI to VM state. |
34 | 36 |
35 #define WB_ENTRY(result_type, header) JNI_ENTRY(result_type, header) | 37 #define WB_ENTRY(result_type, header) JNI_ENTRY(result_type, header) |
36 #define WB_END JNI_END | 38 #define WB_END JNI_END |
62 Symbol* signature_symbol); | 64 Symbol* signature_symbol); |
63 static const char* lookup_jstring(const char* field_name, oop object); | 65 static const char* lookup_jstring(const char* field_name, oop object); |
64 static bool lookup_bool(const char* field_name, oop object); | 66 static bool lookup_bool(const char* field_name, oop object); |
65 | 67 |
66 static int array_bytes_to_length(size_t bytes); | 68 static int array_bytes_to_length(size_t bytes); |
69 static void register_methods(JNIEnv* env, jclass wbclass, JavaThread* thread, | |
70 JNINativeMethod* method_array, int method_count); | |
71 static void register_extended(JNIEnv* env, jclass wbclass, JavaThread* thread); | |
67 }; | 72 }; |
68 | 73 |
69 | 74 |
70 | 75 |
71 #endif // SHARE_VM_PRIMS_WHITEBOX_HPP | 76 #endif // SHARE_VM_PRIMS_WHITEBOX_HPP |