src/share/vm/prims/whitebox.hpp

Print this page




  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 blob_type, int size);
  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


  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