< prev index next >

src/hotspot/share/runtime/thread.hpp

Print this page
rev 50464 : Thread Dump Extension (memory allocation)

*** 51,60 **** --- 51,61 ---- # include "stack_zero.hpp" #endif #if INCLUDE_JFR #include "jfr/support/jfrThreadExtension.hpp" #endif + #include "runtime/threadStatisticInfo.hpp" class SafeThreadsListPtr; class ThreadSafepointState; class ThreadsList;
*** 337,346 **** --- 338,349 ---- ThreadLocalAllocBuffer _tlab; // Thread-local eden jlong _allocated_bytes; // Cumulative number of bytes allocated on // the Java heap + ThreadStatisticInfo _statistic_info; // Statistic info about the thread + JFR_ONLY(DEFINE_THREAD_LOCAL_FIELD_JFR;) // Thread-local data for jfr int _vm_operation_started_count; // VM_Operation support int _vm_operation_completed_count; // VM_Operation support
*** 515,524 **** --- 518,529 ---- jlong allocated_bytes() { return _allocated_bytes; } void set_allocated_bytes(jlong value) { _allocated_bytes = value; } void incr_allocated_bytes(jlong size) { _allocated_bytes += size; } inline jlong cooked_allocated_bytes(); + ThreadStatisticInfo& statistic_info() { return _statistic_info; } + JFR_ONLY(DEFINE_THREAD_LOCAL_ACCESSOR_JFR;) bool is_trace_suspend() { return (_suspend_flags & _trace_flag) != 0; } // VM operation support
*** 632,642 **** int lgrp_id() const { return _lgrp_id; } void set_lgrp_id(int value) { _lgrp_id = value; } // Printing ! virtual void print_on(outputStream* st) const; void print() const { print_on(tty); } virtual void print_on_error(outputStream* st, char* buf, int buflen) const; void print_value_on(outputStream* st) const; // Debug-only code --- 637,648 ---- int lgrp_id() const { return _lgrp_id; } void set_lgrp_id(int value) { _lgrp_id = value; } // Printing ! void print_on(outputStream* st, bool extended_thread_info) const; ! virtual void print_on(outputStream* st) const { print_on(st, false); } void print() const { print_on(tty); } virtual void print_on_error(outputStream* st, char* buf, int buflen) const; void print_value_on(outputStream* st) const; // Debug-only code
*** 1753,1763 **** // RedefineClasses Support void metadata_do(void f(Metadata*)); // Misc. operations char* name() const { return (char*)get_thread_name(); } ! void print_on(outputStream* st) const; void print_value(); void print_thread_state_on(outputStream*) const PRODUCT_RETURN; void print_thread_state() const PRODUCT_RETURN; void print_on_error(outputStream* st, char* buf, int buflen) const; void print_name_on_error(outputStream* st, char* buf, int buflen) const; --- 1759,1770 ---- // RedefineClasses Support void metadata_do(void f(Metadata*)); // Misc. operations char* name() const { return (char*)get_thread_name(); } ! void print_on(outputStream* st, bool extended_thread_info) const; ! void print_on(outputStream* st) const { print_on(st, false); } void print_value(); void print_thread_state_on(outputStream*) const PRODUCT_RETURN; void print_thread_state() const PRODUCT_RETURN; void print_on_error(outputStream* st, char* buf, int buflen) const; void print_name_on_error(outputStream* st, char* buf, int buflen) const;
*** 2167,2180 **** static bool is_vm_complete() { return _vm_complete; } #endif // Verification static void verify(); ! static void print_on(outputStream* st, bool print_stacks, bool internal_format, bool print_concurrent_locks); static void print(bool print_stacks, bool internal_format) { // this function is only used by debug.cpp ! print_on(tty, print_stacks, internal_format, false /* no concurrent lock printed */); } static void print_on_error(outputStream* st, Thread* current, char* buf, int buflen); static void print_on_error(Thread* this_thread, outputStream* st, Thread* current, char* buf, int buflen, bool* found_current); static void print_threads_compiling(outputStream* st, char* buf, int buflen); --- 2174,2187 ---- static bool is_vm_complete() { return _vm_complete; } #endif // Verification static void verify(); ! static void print_on(outputStream* st, bool print_stacks, bool internal_format, bool print_concurrent_locks, bool extended_thread_info); static void print(bool print_stacks, bool internal_format) { // this function is only used by debug.cpp ! print_on(tty, print_stacks, internal_format, false /* no concurrent lock printed */, false /* simple format */); } static void print_on_error(outputStream* st, Thread* current, char* buf, int buflen); static void print_on_error(Thread* this_thread, outputStream* st, Thread* current, char* buf, int buflen, bool* found_current); static void print_threads_compiling(outputStream* st, char* buf, int buflen);
< prev index next >