Skip to content

Commit

Permalink
8340233: Missed ThreadWXEnable in jfrNativeLibraryLoadEvent.cpp
Browse files Browse the repository at this point in the history
Reviewed-by: mgronlun
  • Loading branch information
lmesnik committed Sep 18, 2024
1 parent ae39a66 commit 6ff287a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hotspot/share/jfr/support/jfrNativeLibraryLoadEvent.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2023, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -117,6 +117,7 @@ static void commit(const HelperType& helper) {
JavaThread* jt = JavaThread::cast(thread);
if (jt->thread_state() == _thread_in_native) {
// For a JavaThread to take a JFR stacktrace, it must be in _thread_in_vm. Can safepoint here.
MACOS_AARCH64_ONLY(ThreadWXEnable __wx(WXWrite, jt));
ThreadInVMfromNative transition(jt);
event.commit();
return;
Expand Down

0 comments on commit 6ff287a

Please sign in to comment.