Mercurial > hg > graal-compiler
diff src/share/vm/runtime/thread.hpp @ 13089:77fbf02f701c
re-enabled protection against recursive Graal compilation requests with Graal specific _graal_compiling field in JavaThread
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 20 Nov 2013 19:27:49 +0100 |
parents | 096c224171c4 |
children | 8cd953e97e2d |
line wrap: on
line diff
--- a/src/share/vm/runtime/thread.hpp Wed Nov 20 15:58:58 2013 +0100 +++ b/src/share/vm/runtime/thread.hpp Wed Nov 20 19:27:49 2013 +0100 @@ -920,6 +920,7 @@ #ifdef GRAAL address _graal_alternate_call_target; address _graal_implicit_exception_pc; // pc at which the most recent implicit exception occurred + bool _graal_compiling; // number of counters, increase as needed. 0 == disabled #define GRAAL_COUNTERS_SIZE (0) @@ -1301,6 +1302,8 @@ #ifdef GRAAL void set_graal_alternate_call_target(address a) { _graal_alternate_call_target = a; } void set_graal_implicit_exception_pc(address a) { _graal_implicit_exception_pc = a; } + bool is_graal_compiling() { return _graal_compiling; } + void set_is_graal_compiling(bool b) { _graal_compiling = b; } #endif // Exception handling for compiled methods