Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
3554:b20889b42d12 | 3555:22d11b3bc561 |
---|---|
382 | 382 |
383 // Access to the compile-lifetime allocation arena. | 383 // Access to the compile-lifetime allocation arena. |
384 Arena* arena() { return _arena; } | 384 Arena* arena() { return _arena; } |
385 | 385 |
386 // What is the current compilation environment? | 386 // What is the current compilation environment? |
387 static ciEnv* current() { return CompilerThread::current()->env(); } | 387 static ciEnv* current() { return JavaThread::current()->env(); } |
388 | 388 |
389 // Overload with current thread argument | 389 // Overload with current thread argument |
390 static ciEnv* current(CompilerThread *thread) { return thread->env(); } | 390 static ciEnv* current(JavaThread *thread) { return thread->env(); } |
391 | 391 |
392 // Per-compiler data. (Used by C2 to publish the Compile* pointer.) | 392 // Per-compiler data. (Used by C2 to publish the Compile* pointer.) |
393 void* compiler_data() { return _compiler_data; } | 393 void* compiler_data() { return _compiler_data; } |
394 void set_compiler_data(void* x) { _compiler_data = x; } | 394 void set_compiler_data(void* x) { _compiler_data = x; } |
395 | 395 |