Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
v2
  • Loading branch information
zhengyu123 committed Jul 1, 2025
commit 7b7e1cfeff784f47a9f2c86029574bc6b8ffe1f4
13 changes: 7 additions & 6 deletions ddprof-lib/src/main/cpp/wallClock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,18 +200,19 @@ void WallClockJVMTI::timerLoop() {
raw_thread_state < ddprof::JVMJavaThreadState::_thread_max_state;
OSThreadState state = OSThreadState::UNKNOWN;
ExecutionMode mode = ExecutionMode::UNKNOWN;
if (vm_thread && is_initialized) {
OSThreadState os_state = vm_thread->osThreadState();
if (os_state != OSThreadState::UNKNOWN) {
state = os_state;
}
mode = convertJvmExecutionState(raw_thread_state);
if (vm_thread == nullptr || !is_initialized) {
return false;
}
OSThreadState os_state = vm_thread->osThreadState();
if (state == OSThreadState::TERMINATED) {
return false;
} else if (state == OSThreadState::UNKNOWN) {
state = OSThreadState::RUNNABLE;
} else {
state = os_state;
}
mode = convertJvmExecutionState(raw_thread_state);

event._thread_state = state;
event._execution_mode = mode;
event._weight = 1;
Expand Down
Loading