Skip to content

Commit

Permalink
8315827: Kitchensink.java and RenaissanceStressTest.java time out wit…
Browse files Browse the repository at this point in the history
…h jvmti module errors

Reviewed-by: egahlin
  • Loading branch information
Markus Grönlund committed Dec 6, 2023
1 parent 91ffdfb commit 75a7c19
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hotspot/share/jfr/periodic/sampling/jfrThreadSampler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/

#include "precompiled.hpp"
#include "classfile/javaThreadStatus.hpp"
#include "jfr/jfrEvents.hpp"
#include "jfr/recorder/jfrRecorder.hpp"
#include "jfr/periodic/sampling/jfrCallTrace.hpp"
Expand Down Expand Up @@ -200,7 +201,7 @@ void OSThreadSampler::protected_task(const SuspendedThreadTaskContext& context)
ev->set_starttime(_suspend_time);
ev->set_endtime(_suspend_time); // fake to not take an end time
ev->set_sampledThread(JfrThreadLocal::thread_id(jt));
ev->set_state(static_cast<u8>(java_lang_Thread::get_thread_status(_thread_oop)));
ev->set_state(static_cast<u8>(JavaThreadStatus::RUNNABLE));
}
}
}
Expand Down Expand Up @@ -230,7 +231,7 @@ static void write_native_event(JfrThreadSampleClosure& closure, JavaThread* jt,
EventNativeMethodSample *ev = closure.next_event_native();
ev->set_starttime(JfrTicks::now());
ev->set_sampledThread(JfrThreadLocal::thread_id(jt));
ev->set_state(static_cast<u8>(java_lang_Thread::get_thread_status(thread_oop)));
ev->set_state(static_cast<u8>(JavaThreadStatus::RUNNABLE));
}

void JfrNativeSamplerCallback::call() {
Expand Down

1 comment on commit 75a7c19

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.