src/hotspot/share/runtime/thread.cpp
changeset 51572 d2137bd1e57d
parent 51026 510ac4c08610
child 51577 64331e014bc7
equal deleted inserted replaced
51571:126951ca1462 51572:d2137bd1e57d
  3296   _ideal_graph_printer = NULL;
  3296   _ideal_graph_printer = NULL;
  3297 #endif
  3297 #endif
  3298 }
  3298 }
  3299 
  3299 
  3300 CompilerThread::~CompilerThread() {
  3300 CompilerThread::~CompilerThread() {
  3301   // Free buffer blob, if allocated
       
  3302   if (get_buffer_blob() != NULL) {
       
  3303     MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
       
  3304     CodeCache::free(get_buffer_blob());
       
  3305   }
       
  3306   // Delete objects which were allocated on heap.
  3301   // Delete objects which were allocated on heap.
  3307   delete _counters;
  3302   delete _counters;
  3308 }
  3303 }
  3309 
  3304 
  3310 bool CompilerThread::can_call_java() const {
  3305 bool CompilerThread::can_call_java() const {