Mercurial > hg > truffle
comparison src/share/vm/prims/whitebox.hpp @ 20804:7848fc12602b
Merge with jdk8u40-b25
author | Gilles Duboscq <gilles.m.duboscq@oracle.com> |
---|---|
date | Tue, 07 Apr 2015 14:58:49 +0200 |
parents | 52b4284cb496 e2452c3ff7fb |
children |
comparison
equal
deleted
inserted
replaced
20184:84105dcdb05b | 20804:7848fc12602b |
---|---|
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 |
60 static void set_used() { _used = true; } | 62 static void set_used() { _used = true; } |
61 static int offset_for_field(const char* field_name, oop object, | 63 static int offset_for_field(const char* field_name, oop object, |
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); |
67 | |
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); | |
65 }; | 72 }; |
66 | 73 |
67 | 74 |
68 | 75 |
69 #endif // SHARE_VM_PRIMS_WHITEBOX_HPP | 76 #endif // SHARE_VM_PRIMS_WHITEBOX_HPP |