Mercurial > hg > graal-jvmci-8
diff src/share/vm/runtime/thread.hpp @ 11893:ec267141f753
more javadoc and output tweaks for dynamic counters
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Fri, 04 Oct 2013 11:56:18 +0200 |
parents | d7964e96b0b0 |
children | cefad50507d8 |
line wrap: on
line diff
--- a/src/share/vm/runtime/thread.hpp Fri Oct 04 00:53:19 2013 +0200 +++ b/src/share/vm/runtime/thread.hpp Fri Oct 04 11:56:18 2013 +0200 @@ -924,13 +924,15 @@ #define GRAAL_COUNTERS_SIZE (0) #define GRAAL_COUNTERS_EXCLUDE_COMPILER_THREADS (true) +#if GRAAL_COUNTERS_SIZE > 0 jlong _graal_counters[GRAAL_COUNTERS_SIZE]; - static jlong _graal_old_counters[GRAAL_COUNTERS_SIZE]; + static jlong _graal_old_thread_counters[GRAAL_COUNTERS_SIZE]; +#endif // GRAAL_COUNTERS_SIZE > 0 public: static void collect_counters(typeArrayOop array); private: -#endif +#endif // GRAAL StackGuardState _stack_guard_state; nmethod* _scanned_nmethod; // nmethod being scanned by the sweeper @@ -1390,8 +1392,12 @@ #ifdef GRAAL static ByteSize graal_alternate_call_target_offset() { return byte_offset_of(JavaThread, _graal_alternate_call_target); } static ByteSize graal_implicit_exception_pc_offset() { return byte_offset_of(JavaThread, _graal_implicit_exception_pc); } - static ByteSize graal_counters_offset() { return byte_offset_of(JavaThread, _graal_counters ); } -#endif +#if GRAAL_COUNTERS_SIZE > 0 + static ByteSize graal_counters_offset() { return byte_offset_of(JavaThread, _graal_counters ); } +#else + static ByteSize graal_counters_offset() { return in_ByteSize(0); } +#endif // GRAAL_COUNTERS_SIZE > 0 +#endif // GRAAL static ByteSize exception_oop_offset() { return byte_offset_of(JavaThread, _exception_oop ); } static ByteSize exception_pc_offset() { return byte_offset_of(JavaThread, _exception_pc ); } static ByteSize exception_handler_pc_offset() { return byte_offset_of(JavaThread, _exception_handler_pc); }