comparison src/share/vm/runtime/sweeper.cpp @ 3696:dc7902820c9b

Make NMethodSweeper work on any JavaThread
author Gilles Duboscq <gilles.m.duboscq@gmail.com>
date Thu, 24 Nov 2011 17:24:43 +0100
parents f52ed367b66d
children 33df1aeaebbf
comparison
equal deleted inserted replaced
3693:60d31b1fada5 3696:dc7902820c9b
308 } 308 }
309 } 309 }
310 310
311 class NMethodMarker: public StackObj { 311 class NMethodMarker: public StackObj {
312 private: 312 private:
313 CompilerThread* _thread; 313 JavaThread* _thread;
314 public: 314 public:
315 NMethodMarker(nmethod* nm) { 315 NMethodMarker(nmethod* nm) {
316 _thread = CompilerThread::current(); 316 _thread = JavaThread::current();
317 _thread->set_scanned_nmethod(nm); 317 _thread->set_scanned_nmethod(nm);
318 } 318 }
319 ~NMethodMarker() { 319 ~NMethodMarker() {
320 _thread->set_scanned_nmethod(NULL); 320 _thread->set_scanned_nmethod(NULL);
321 } 321 }