Mercurial > hg > truffle
diff src/share/vm/graal/graalEnv.hpp @ 7126:ce248dc0a656
removed all Graal modifications to ci and c1
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 03 Dec 2012 17:54:05 +0100 |
parents | eec7173947a1 |
children | 0b646334c5f7 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalEnv.hpp Mon Dec 03 15:32:17 2012 +0100 +++ b/src/share/vm/graal/graalEnv.hpp Mon Dec 03 17:54:05 2012 +0100 @@ -34,6 +34,19 @@ class CompileTask; +// Bring the Graal compiler thread into the VM state. +#define GRAAL_VM_ENTRY_MARK \ + JavaThread* thread = JavaThread::current(); \ + ThreadInVMfromNative __tiv(thread); \ + ResetNoHandleMark rnhm; \ + HandleMarkCleaner __hm(thread); \ + Thread* THREAD = thread; \ + debug_only(VMNativeEntryWrapper __vew;) + +#define GRAAL_EXCEPTION_CONTEXT \ + JavaThread* thread=JavaThread::current(); \ + Thread* THREAD = thread; + // // This class is the top level broker for requests from the compiler // to the VM.