Mercurial > hg > truffle
comparison src/share/vm/runtime/thread.hpp @ 13796:8cd953e97e2d
rework of benchmark counters: fix size at VM entry, not at build time
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Wed, 29 Jan 2014 09:21:50 +0100 |
parents | 77fbf02f701c |
children | d8041d695d19 |
comparison
equal
deleted
inserted
replaced
13795:cfe85a075924 | 13796:8cd953e97e2d |
---|---|
920 #ifdef GRAAL | 920 #ifdef GRAAL |
921 address _graal_alternate_call_target; | 921 address _graal_alternate_call_target; |
922 address _graal_implicit_exception_pc; // pc at which the most recent implicit exception occurred | 922 address _graal_implicit_exception_pc; // pc at which the most recent implicit exception occurred |
923 bool _graal_compiling; | 923 bool _graal_compiling; |
924 | 924 |
925 // number of counters, increase as needed. 0 == disabled | 925 jlong* _graal_counters; |
926 #define GRAAL_COUNTERS_SIZE (0) | 926 |
927 #define GRAAL_COUNTERS_EXCLUDE_COMPILER_THREADS (true) | 927 public: |
928 | 928 static jlong* _graal_old_thread_counters; |
929 #if GRAAL_COUNTERS_SIZE > 0 | |
930 jlong _graal_counters[GRAAL_COUNTERS_SIZE]; | |
931 static jlong _graal_old_thread_counters[GRAAL_COUNTERS_SIZE]; | |
932 #endif // GRAAL_COUNTERS_SIZE > 0 | |
933 | |
934 public: | |
935 static void collect_counters(typeArrayOop array); | 929 static void collect_counters(typeArrayOop array); |
936 private: | 930 private: |
937 #endif // GRAAL | 931 #endif // GRAAL |
938 StackGuardState _stack_guard_state; | 932 StackGuardState _stack_guard_state; |
939 | 933 |
1392 static ByteSize saved_exception_pc_offset() { return byte_offset_of(JavaThread, _saved_exception_pc ); } | 1386 static ByteSize saved_exception_pc_offset() { return byte_offset_of(JavaThread, _saved_exception_pc ); } |
1393 static ByteSize osthread_offset() { return byte_offset_of(JavaThread, _osthread ); } | 1387 static ByteSize osthread_offset() { return byte_offset_of(JavaThread, _osthread ); } |
1394 #ifdef GRAAL | 1388 #ifdef GRAAL |
1395 static ByteSize graal_alternate_call_target_offset() { return byte_offset_of(JavaThread, _graal_alternate_call_target); } | 1389 static ByteSize graal_alternate_call_target_offset() { return byte_offset_of(JavaThread, _graal_alternate_call_target); } |
1396 static ByteSize graal_implicit_exception_pc_offset() { return byte_offset_of(JavaThread, _graal_implicit_exception_pc); } | 1390 static ByteSize graal_implicit_exception_pc_offset() { return byte_offset_of(JavaThread, _graal_implicit_exception_pc); } |
1397 #if GRAAL_COUNTERS_SIZE > 0 | |
1398 static ByteSize graal_counters_offset() { return byte_offset_of(JavaThread, _graal_counters ); } | 1391 static ByteSize graal_counters_offset() { return byte_offset_of(JavaThread, _graal_counters ); } |
1399 #else | |
1400 static ByteSize graal_counters_offset() { return in_ByteSize(0); } | |
1401 #endif // GRAAL_COUNTERS_SIZE > 0 | |
1402 #endif // GRAAL | 1392 #endif // GRAAL |
1403 static ByteSize exception_oop_offset() { return byte_offset_of(JavaThread, _exception_oop ); } | 1393 static ByteSize exception_oop_offset() { return byte_offset_of(JavaThread, _exception_oop ); } |
1404 static ByteSize exception_pc_offset() { return byte_offset_of(JavaThread, _exception_pc ); } | 1394 static ByteSize exception_pc_offset() { return byte_offset_of(JavaThread, _exception_pc ); } |
1405 static ByteSize exception_handler_pc_offset() { return byte_offset_of(JavaThread, _exception_handler_pc); } | 1395 static ByteSize exception_handler_pc_offset() { return byte_offset_of(JavaThread, _exception_handler_pc); } |
1406 static ByteSize is_method_handle_return_offset() { return byte_offset_of(JavaThread, _is_method_handle_return); } | 1396 static ByteSize is_method_handle_return_offset() { return byte_offset_of(JavaThread, _is_method_handle_return); } |