src/share/vm/runtime/thread.hpp

Print this page

        

*** 434,444 **** // Thread-Local Allocation Buffer (TLAB) support ThreadLocalAllocBuffer& tlab() { return _tlab; } void initialize_tlab() { if (UseTLAB) { ! tlab().initialize(); } } jlong allocated_bytes() { return _allocated_bytes; } void set_allocated_bytes(jlong value) { _allocated_bytes = value; } --- 434,444 ---- // Thread-Local Allocation Buffer (TLAB) support ThreadLocalAllocBuffer& tlab() { return _tlab; } void initialize_tlab() { if (UseTLAB) { ! tlab().initialize(this); } } jlong allocated_bytes() { return _allocated_bytes; } void set_allocated_bytes(jlong value) { _allocated_bytes = value; }
*** 948,967 **** --- 948,975 ---- // it can be added into the exception stack trace jint _gpu_exception_bci; Method* _gpu_exception_method; // Record the hsailDeoptimization info so gc oops_do processing can find it void* _gpu_hsail_deopt_info; + jint _gpu_hsail_tlabs_count; + ThreadLocalAllocBuffer** _gpu_hsail_tlabs; #endif public: #ifdef GRAAL void set_gpu_exception_bci(jint bci) { _gpu_exception_bci = bci; } jint get_gpu_exception_bci() { return _gpu_exception_bci; } void set_gpu_exception_method(Method* method) { _gpu_exception_method = method; } Method* get_gpu_exception_method() { return _gpu_exception_method; } void set_gpu_hsail_deopt_info(void * deoptInfo) { _gpu_hsail_deopt_info = deoptInfo; } void* get_gpu_hsail_deopt_info() { return _gpu_hsail_deopt_info; } + jint get_gpu_hsail_tlabs_count() { return _gpu_hsail_tlabs_count; } + + void initialize_gpu_hsail_tlabs(jint count); + ThreadLocalAllocBuffer* get_gpu_hsail_tlab_at(jint idx); + void gpu_hsail_tlabs_make_parsable(bool retire); + void delete_gpu_hsail_tlabs(); #endif private: // support for JNI critical regions jint _jni_active_critical; // count of entries into JNI critical region