equal
deleted
inserted
replaced
40 #include "runtime/os.hpp" |
40 #include "runtime/os.hpp" |
41 #include "runtime/osThread.hpp" |
41 #include "runtime/osThread.hpp" |
42 #include "runtime/park.hpp" |
42 #include "runtime/park.hpp" |
43 #include "runtime/safepoint.hpp" |
43 #include "runtime/safepoint.hpp" |
44 #include "runtime/stubRoutines.hpp" |
44 #include "runtime/stubRoutines.hpp" |
|
45 #include "runtime/threadHeapSampler.hpp" |
45 #include "runtime/threadLocalStorage.hpp" |
46 #include "runtime/threadLocalStorage.hpp" |
46 #include "runtime/unhandledOops.hpp" |
47 #include "runtime/unhandledOops.hpp" |
47 #include "utilities/align.hpp" |
48 #include "utilities/align.hpp" |
48 #include "utilities/exceptions.hpp" |
49 #include "utilities/exceptions.hpp" |
49 #include "utilities/macros.hpp" |
50 #include "utilities/macros.hpp" |
336 volatile void* _polling_page; // Thread local polling page |
337 volatile void* _polling_page; // Thread local polling page |
337 |
338 |
338 ThreadLocalAllocBuffer _tlab; // Thread-local eden |
339 ThreadLocalAllocBuffer _tlab; // Thread-local eden |
339 jlong _allocated_bytes; // Cumulative number of bytes allocated on |
340 jlong _allocated_bytes; // Cumulative number of bytes allocated on |
340 // the Java heap |
341 // the Java heap |
|
342 ThreadHeapSampler _heap_sampler; // For use when sampling the memory. |
341 |
343 |
342 JFR_ONLY(DEFINE_THREAD_LOCAL_FIELD_JFR;) // Thread-local data for jfr |
344 JFR_ONLY(DEFINE_THREAD_LOCAL_FIELD_JFR;) // Thread-local data for jfr |
343 |
345 |
344 int _vm_operation_started_count; // VM_Operation support |
346 int _vm_operation_started_count; // VM_Operation support |
345 int _vm_operation_completed_count; // VM_Operation support |
347 int _vm_operation_completed_count; // VM_Operation support |
514 |
516 |
515 jlong allocated_bytes() { return _allocated_bytes; } |
517 jlong allocated_bytes() { return _allocated_bytes; } |
516 void set_allocated_bytes(jlong value) { _allocated_bytes = value; } |
518 void set_allocated_bytes(jlong value) { _allocated_bytes = value; } |
517 void incr_allocated_bytes(jlong size) { _allocated_bytes += size; } |
519 void incr_allocated_bytes(jlong size) { _allocated_bytes += size; } |
518 inline jlong cooked_allocated_bytes(); |
520 inline jlong cooked_allocated_bytes(); |
|
521 |
|
522 ThreadHeapSampler& heap_sampler() { return _heap_sampler; } |
519 |
523 |
520 JFR_ONLY(DEFINE_THREAD_LOCAL_ACCESSOR_JFR;) |
524 JFR_ONLY(DEFINE_THREAD_LOCAL_ACCESSOR_JFR;) |
521 |
525 |
522 bool is_trace_suspend() { return (_suspend_flags & _trace_flag) != 0; } |
526 bool is_trace_suspend() { return (_suspend_flags & _trace_flag) != 0; } |
523 |
527 |