Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
7153:c421c19b7bf8 | 7154:5d0bb7d52783 |
---|---|
431 should_repeat = true; | 431 should_repeat = true; |
432 } | 432 } |
433 } | 433 } |
434 } while (should_repeat == true); | 434 } while (should_repeat == true); |
435 | 435 |
436 #ifdef GRAAL | 436 #ifdef GRAALVM |
437 if (h_method->method_data() != NULL) { | 437 if (h_method->method_data() != NULL) { |
438 ResourceMark rm(thread); | 438 ResourceMark rm(thread); |
439 ProfileData* pdata = h_method->method_data()->allocate_bci_to_data(current_bci); | 439 ProfileData* pdata = h_method->method_data()->allocate_bci_to_data(current_bci); |
440 if (pdata != NULL) { | 440 if (pdata != NULL) { |
441 // We re-purpose the DS_RECOMPILE_BIT to record that an exception was thrown at | |
442 // the current bci. | |
441 int tstate0 = pdata->trap_state(); | 443 int tstate0 = pdata->trap_state(); |
442 int tstate1 = Deoptimization::trap_state_set_recompiled(tstate0, true); | 444 int tstate1 = Deoptimization::trap_state_set_recompiled(tstate0, true); |
443 if (tstate1 != tstate0) { | 445 if (tstate1 != tstate0) { |
444 pdata->set_trap_state(tstate1); | 446 pdata->set_trap_state(tstate1); |
445 } | 447 } |