Skip to content

Commit

Permalink
8312293: SIGSEGV in jfr.internal.event.EventWriter.putUncheckedByte a…
Browse files Browse the repository at this point in the history
…fter JDK-8312086

Reviewed-by: egahlin
  • Loading branch information
Markus Grönlund committed Jul 21, 2023
1 parent 8cd43bf commit 59f66a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/hotspot/share/jfr/support/jfrIntrinsics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,15 @@ void* JfrIntrinsicSupport::write_checkpoint(JavaThread* jt) {
return JfrJavaEventWriter::event_writer(jt);
}

void JfrIntrinsicSupport::return_lease(JavaThread* jt) {
void* JfrIntrinsicSupport::return_lease(JavaThread* jt) {
DEBUG_ONLY(assert_precondition(jt);)
ThreadStateTransition::transition_from_java(jt, _thread_in_native);
assert(jt->jfr_thread_local()->has_java_event_writer(), "invariant");
assert(jt->jfr_thread_local()->shelved_buffer() != nullptr, "invariant");
JfrJavaEventWriter::flush(jt->jfr_thread_local()->java_event_writer(), 0, 0, jt);
assert(jt->jfr_thread_local()->shelved_buffer() == nullptr, "invariant");
ThreadStateTransition::transition_from_native(jt, _thread_in_Java);
return nullptr;
}

void JfrIntrinsicSupport::load_barrier(const Klass* klass) {
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/jfr/support/jfrIntrinsics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
class JfrIntrinsicSupport : AllStatic {
public:
static void* write_checkpoint(JavaThread* jt);
static void return_lease(JavaThread* jt);
static void* return_lease(JavaThread* jt);
static void load_barrier(const Klass* klass);
static address epoch_address();
static address signal_address();
Expand Down

1 comment on commit 59f66a3

@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.