comparison 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
comparison
equal deleted inserted replaced
11892:4ac39f060a9d 11893:ec267141f753
922 922
923 // number of counters, increase as needed. 0 == disabled 923 // number of counters, increase as needed. 0 == disabled
924 #define GRAAL_COUNTERS_SIZE (0) 924 #define GRAAL_COUNTERS_SIZE (0)
925 #define GRAAL_COUNTERS_EXCLUDE_COMPILER_THREADS (true) 925 #define GRAAL_COUNTERS_EXCLUDE_COMPILER_THREADS (true)
926 926
927 #if GRAAL_COUNTERS_SIZE > 0
927 jlong _graal_counters[GRAAL_COUNTERS_SIZE]; 928 jlong _graal_counters[GRAAL_COUNTERS_SIZE];
928 static jlong _graal_old_counters[GRAAL_COUNTERS_SIZE]; 929 static jlong _graal_old_thread_counters[GRAAL_COUNTERS_SIZE];
930 #endif // GRAAL_COUNTERS_SIZE > 0
929 931
930 public: 932 public:
931 static void collect_counters(typeArrayOop array); 933 static void collect_counters(typeArrayOop array);
932 private: 934 private:
933 #endif 935 #endif // GRAAL
934 StackGuardState _stack_guard_state; 936 StackGuardState _stack_guard_state;
935 937
936 nmethod* _scanned_nmethod; // nmethod being scanned by the sweeper 938 nmethod* _scanned_nmethod; // nmethod being scanned by the sweeper
937 939
938 // Compiler exception handling (NOTE: The _exception_oop is *NOT* the same as _pending_exception. It is 940 // Compiler exception handling (NOTE: The _exception_oop is *NOT* the same as _pending_exception. It is
1388 static ByteSize saved_exception_pc_offset() { return byte_offset_of(JavaThread, _saved_exception_pc ); } 1390 static ByteSize saved_exception_pc_offset() { return byte_offset_of(JavaThread, _saved_exception_pc ); }
1389 static ByteSize osthread_offset() { return byte_offset_of(JavaThread, _osthread ); } 1391 static ByteSize osthread_offset() { return byte_offset_of(JavaThread, _osthread ); }
1390 #ifdef GRAAL 1392 #ifdef GRAAL
1391 static ByteSize graal_alternate_call_target_offset() { return byte_offset_of(JavaThread, _graal_alternate_call_target); } 1393 static ByteSize graal_alternate_call_target_offset() { return byte_offset_of(JavaThread, _graal_alternate_call_target); }
1392 static ByteSize graal_implicit_exception_pc_offset() { return byte_offset_of(JavaThread, _graal_implicit_exception_pc); } 1394 static ByteSize graal_implicit_exception_pc_offset() { return byte_offset_of(JavaThread, _graal_implicit_exception_pc); }
1393 static ByteSize graal_counters_offset() { return byte_offset_of(JavaThread, _graal_counters ); } 1395 #if GRAAL_COUNTERS_SIZE > 0
1394 #endif 1396 static ByteSize graal_counters_offset() { return byte_offset_of(JavaThread, _graal_counters ); }
1397 #else
1398 static ByteSize graal_counters_offset() { return in_ByteSize(0); }
1399 #endif // GRAAL_COUNTERS_SIZE > 0
1400 #endif // GRAAL
1395 static ByteSize exception_oop_offset() { return byte_offset_of(JavaThread, _exception_oop ); } 1401 static ByteSize exception_oop_offset() { return byte_offset_of(JavaThread, _exception_oop ); }
1396 static ByteSize exception_pc_offset() { return byte_offset_of(JavaThread, _exception_pc ); } 1402 static ByteSize exception_pc_offset() { return byte_offset_of(JavaThread, _exception_pc ); }
1397 static ByteSize exception_handler_pc_offset() { return byte_offset_of(JavaThread, _exception_handler_pc); } 1403 static ByteSize exception_handler_pc_offset() { return byte_offset_of(JavaThread, _exception_handler_pc); }
1398 static ByteSize is_method_handle_return_offset() { return byte_offset_of(JavaThread, _is_method_handle_return); } 1404 static ByteSize is_method_handle_return_offset() { return byte_offset_of(JavaThread, _is_method_handle_return); }
1399 static ByteSize stack_guard_state_offset() { return byte_offset_of(JavaThread, _stack_guard_state ); } 1405 static ByteSize stack_guard_state_offset() { return byte_offset_of(JavaThread, _stack_guard_state ); }