Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/thread.hpp @ 11852:d7964e96b0b0
move benchmark counters into separate class and make them correct for multithreaded applications
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Mon, 30 Sep 2013 18:32:26 +0200 |
parents | 6b0fd0964b87 |
children | ec267141f753 |
comparison
equal
deleted
inserted
replaced
11828:1d64bfb3f481 | 11852:d7964e96b0b0 |
---|---|
917 private: | 917 private: |
918 | 918 |
919 #ifdef GRAAL | 919 #ifdef GRAAL |
920 address _graal_alternate_call_target; | 920 address _graal_alternate_call_target; |
921 address _graal_implicit_exception_pc; // pc at which the most recent implicit exception occurred | 921 address _graal_implicit_exception_pc; // pc at which the most recent implicit exception occurred |
922 | |
923 // number of counters, increase as needed. 0 == disabled | |
924 #define GRAAL_COUNTERS_SIZE (0) | |
925 #define GRAAL_COUNTERS_EXCLUDE_COMPILER_THREADS (true) | |
926 | |
927 jlong _graal_counters[GRAAL_COUNTERS_SIZE]; | |
928 static jlong _graal_old_counters[GRAAL_COUNTERS_SIZE]; | |
929 | |
930 public: | |
931 static void collect_counters(typeArrayOop array); | |
932 private: | |
922 #endif | 933 #endif |
923 StackGuardState _stack_guard_state; | 934 StackGuardState _stack_guard_state; |
924 | 935 |
925 nmethod* _scanned_nmethod; // nmethod being scanned by the sweeper | 936 nmethod* _scanned_nmethod; // nmethod being scanned by the sweeper |
926 | 937 |
1377 static ByteSize saved_exception_pc_offset() { return byte_offset_of(JavaThread, _saved_exception_pc ); } | 1388 static ByteSize saved_exception_pc_offset() { return byte_offset_of(JavaThread, _saved_exception_pc ); } |
1378 static ByteSize osthread_offset() { return byte_offset_of(JavaThread, _osthread ); } | 1389 static ByteSize osthread_offset() { return byte_offset_of(JavaThread, _osthread ); } |
1379 #ifdef GRAAL | 1390 #ifdef GRAAL |
1380 static ByteSize graal_alternate_call_target_offset() { return byte_offset_of(JavaThread, _graal_alternate_call_target); } | 1391 static ByteSize graal_alternate_call_target_offset() { return byte_offset_of(JavaThread, _graal_alternate_call_target); } |
1381 static ByteSize graal_implicit_exception_pc_offset() { return byte_offset_of(JavaThread, _graal_implicit_exception_pc); } | 1392 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 ); } | |
1382 #endif | 1394 #endif |
1383 static ByteSize exception_oop_offset() { return byte_offset_of(JavaThread, _exception_oop ); } | 1395 static ByteSize exception_oop_offset() { return byte_offset_of(JavaThread, _exception_oop ); } |
1384 static ByteSize exception_pc_offset() { return byte_offset_of(JavaThread, _exception_pc ); } | 1396 static ByteSize exception_pc_offset() { return byte_offset_of(JavaThread, _exception_pc ); } |
1385 static ByteSize exception_handler_pc_offset() { return byte_offset_of(JavaThread, _exception_handler_pc); } | 1397 static ByteSize exception_handler_pc_offset() { return byte_offset_of(JavaThread, _exception_handler_pc); } |
1386 static ByteSize is_method_handle_return_offset() { return byte_offset_of(JavaThread, _is_method_handle_return); } | 1398 static ByteSize is_method_handle_return_offset() { return byte_offset_of(JavaThread, _is_method_handle_return); } |