Mercurial > hg > graal-compiler
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/runtime/sweeper.cpp Thu Nov 24 14:09:18 2011 +0100 +++ b/src/share/vm/runtime/sweeper.cpp Thu Nov 24 17:24:43 2011 +0100 @@ -310,10 +310,10 @@ class NMethodMarker: public StackObj { private: - CompilerThread* _thread; + JavaThread* _thread; public: NMethodMarker(nmethod* nm) { - _thread = CompilerThread::current(); + _thread = JavaThread::current(); _thread->set_scanned_nmethod(nm); } ~NMethodMarker() {