Mercurial > hg > truffle
diff src/share/vm/interpreter/interpreterRuntime.cpp @ 7154:5d0bb7d52783
changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 12 Dec 2012 21:36:40 +0100 |
parents | 2cb439954abf |
children | 291ffc492eb6 |
line wrap: on
line diff
--- a/src/share/vm/interpreter/interpreterRuntime.cpp Wed Dec 12 15:46:11 2012 +0100 +++ b/src/share/vm/interpreter/interpreterRuntime.cpp Wed Dec 12 21:36:40 2012 +0100 @@ -433,11 +433,13 @@ } } while (should_repeat == true); -#ifdef GRAAL +#ifdef GRAALVM if (h_method->method_data() != NULL) { ResourceMark rm(thread); ProfileData* pdata = h_method->method_data()->allocate_bci_to_data(current_bci); if (pdata != NULL) { + // We re-purpose the DS_RECOMPILE_BIT to record that an exception was thrown at + // the current bci. int tstate0 = pdata->trap_state(); int tstate1 = Deoptimization::trap_state_set_recompiled(tstate0, true); if (tstate1 != tstate0) {