< prev index next >

src/share/vm/prims/whitebox.hpp

Print this page




  53     if (HAS_PENDING_EXCEPTION) {                                       \
  54       return;                                                          \
  55     }                                                                  \
  56   } while (0)
  57 
  58 class CodeBlob;
  59 class CodeHeap;
  60 class JavaThread;
  61 
  62 class WhiteBox : public AllStatic {
  63  private:
  64   static bool _used;
  65  public:
  66   static volatile bool compilation_locked;
  67   static bool used()     { return _used; }
  68   static void set_used() { _used = true; }
  69   static int offset_for_field(const char* field_name, oop object,
  70     Symbol* signature_symbol);
  71   static const char* lookup_jstring(const char* field_name, oop object);
  72   static bool lookup_bool(const char* field_name, oop object);
  73   static void sweeper_thread_entry(JavaThread* thread, TRAPS);
  74   static JavaThread* create_sweeper_thread(TRAPS);
  75   static int get_blob_type(const CodeBlob* code);
  76   static CodeHeap* get_code_heap(int blob_type);
  77   static CodeBlob* allocate_code_blob(int size, int blob_type);
  78   static int array_bytes_to_length(size_t bytes);
  79   static void register_methods(JNIEnv* env, jclass wbclass, JavaThread* thread,
  80     JNINativeMethod* method_array, int method_count);
  81   static void register_extended(JNIEnv* env, jclass wbclass, JavaThread* thread);
  82 };
  83 
  84 
  85 
  86 #endif // SHARE_VM_PRIMS_WHITEBOX_HPP


  53     if (HAS_PENDING_EXCEPTION) {                                       \
  54       return;                                                          \
  55     }                                                                  \
  56   } while (0)
  57 
  58 class CodeBlob;
  59 class CodeHeap;
  60 class JavaThread;
  61 
  62 class WhiteBox : public AllStatic {
  63  private:
  64   static bool _used;
  65  public:
  66   static volatile bool compilation_locked;
  67   static bool used()     { return _used; }
  68   static void set_used() { _used = true; }
  69   static int offset_for_field(const char* field_name, oop object,
  70     Symbol* signature_symbol);
  71   static const char* lookup_jstring(const char* field_name, oop object);
  72   static bool lookup_bool(const char* field_name, oop object);


  73   static int get_blob_type(const CodeBlob* code);
  74   static CodeHeap* get_code_heap(int blob_type);
  75   static CodeBlob* allocate_code_blob(int size, int blob_type);
  76   static int array_bytes_to_length(size_t bytes);
  77   static void register_methods(JNIEnv* env, jclass wbclass, JavaThread* thread,
  78     JNINativeMethod* method_array, int method_count);
  79   static void register_extended(JNIEnv* env, jclass wbclass, JavaThread* thread);
  80 };
  81 
  82 
  83 
  84 #endif // SHARE_VM_PRIMS_WHITEBOX_HPP
< prev index next >