--- old/src/share/vm/prims/whitebox.hpp 2014-11-14 16:56:35.691861864 +0300 +++ new/src/share/vm/prims/whitebox.hpp 2014-11-14 16:56:35.523861867 +0300 @@ -27,6 +27,7 @@ #include "prims/jni.h" +#include "utilities/exceptions.hpp" #include "memory/allocation.hpp" #include "oops/oopsHierarchy.hpp" #include "oops/symbol.hpp" @@ -56,6 +57,7 @@ class CodeBlob; class CodeHeap; +class JavaThread; class WhiteBox : public AllStatic { private: @@ -68,7 +70,8 @@ Symbol* signature_symbol); static const char* lookup_jstring(const char* field_name, oop object); static bool lookup_bool(const char* field_name, oop object); - static void force_sweep(); + static void sweeper_thread_entry(JavaThread* thread, TRAPS); + static JavaThread* create_sweeper_thread(TRAPS); static int get_blob_type(const CodeBlob* code); static CodeHeap* get_code_heap(int blob_type); static CodeBlob* allocate_code_blob(int blob_type, int size);