Mercurial > hg > truffle
diff src/share/vm/ci/ciEnv.hpp @ 3555:22d11b3bc561
Various hacks to be able to install machine code from a Java thread.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 24 Aug 2011 01:05:02 +0200 |
parents | be4ca325525a |
children | 5e9645341ec3 |
line wrap: on
line diff
--- a/src/share/vm/ci/ciEnv.hpp Mon Aug 22 19:55:06 2011 +0200 +++ b/src/share/vm/ci/ciEnv.hpp Wed Aug 24 01:05:02 2011 +0200 @@ -384,10 +384,10 @@ Arena* arena() { return _arena; } // What is the current compilation environment? - static ciEnv* current() { return CompilerThread::current()->env(); } + static ciEnv* current() { return JavaThread::current()->env(); } // Overload with current thread argument - static ciEnv* current(CompilerThread *thread) { return thread->env(); } + static ciEnv* current(JavaThread *thread) { return thread->env(); } // Per-compiler data. (Used by C2 to publish the Compile* pointer.) void* compiler_data() { return _compiler_data; }