hotspot/src/share/vm/runtime/thread.cpp
changeset 25714 87fa6860b5ae
parent 25493 f5bffb24bf7c
child 25717 7493b8ac31b7
equal deleted inserted replaced
25713:e2ed3bec8c2c 25714:87fa6860b5ae
  2645     }
  2645     }
  2646   }
  2646   }
  2647 }
  2647 }
  2648 
  2648 
  2649 
  2649 
  2650 // GC support
       
  2651 static void frame_gc_epilogue(frame* f, const RegisterMap* map) { f->gc_epilogue(); }
       
  2652 
       
  2653 void JavaThread::gc_epilogue() {
       
  2654   frames_do(frame_gc_epilogue);
       
  2655 }
       
  2656 
       
  2657 
       
  2658 static void frame_gc_prologue(frame* f, const RegisterMap* map) { f->gc_prologue(); }
       
  2659 
       
  2660 void JavaThread::gc_prologue() {
       
  2661   frames_do(frame_gc_prologue);
       
  2662 }
       
  2663 
       
  2664 // If the caller is a NamedThread, then remember, in the current scope,
  2650 // If the caller is a NamedThread, then remember, in the current scope,
  2665 // the given JavaThread in its _processed_thread field.
  2651 // the given JavaThread in its _processed_thread field.
  2666 class RememberProcessedThread: public StackObj {
  2652 class RememberProcessedThread: public StackObj {
  2667   NamedThread* _cur_thr;
  2653   NamedThread* _cur_thr;
  2668 public:
  2654 public:
  4144 }
  4130 }
  4145 
  4131 
  4146 void Threads::metadata_do(void f(Metadata*)) {
  4132 void Threads::metadata_do(void f(Metadata*)) {
  4147   ALL_JAVA_THREADS(p) {
  4133   ALL_JAVA_THREADS(p) {
  4148     p->metadata_do(f);
  4134     p->metadata_do(f);
  4149   }
       
  4150 }
       
  4151 
       
  4152 void Threads::gc_epilogue() {
       
  4153   ALL_JAVA_THREADS(p) {
       
  4154     p->gc_epilogue();
       
  4155   }
       
  4156 }
       
  4157 
       
  4158 void Threads::gc_prologue() {
       
  4159   ALL_JAVA_THREADS(p) {
       
  4160     p->gc_prologue();
       
  4161   }
  4135   }
  4162 }
  4136 }
  4163 
  4137 
  4164 void Threads::deoptimized_wrt_marked_nmethods() {
  4138 void Threads::deoptimized_wrt_marked_nmethods() {
  4165   ALL_JAVA_THREADS(p) {
  4139   ALL_JAVA_THREADS(p) {