Skip to content

Commit 6ff287a

Browse files
committed
8340233: Missed ThreadWXEnable in jfrNativeLibraryLoadEvent.cpp
Reviewed-by: mgronlun
1 parent ae39a66 commit 6ff287a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hotspot/share/jfr/support/jfrNativeLibraryLoadEvent.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2023, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -117,6 +117,7 @@ static void commit(const HelperType& helper) {
117117
JavaThread* jt = JavaThread::cast(thread);
118118
if (jt->thread_state() == _thread_in_native) {
119119
// For a JavaThread to take a JFR stacktrace, it must be in _thread_in_vm. Can safepoint here.
120+
MACOS_AARCH64_ONLY(ThreadWXEnable __wx(WXWrite, jt));
120121
ThreadInVMfromNative transition(jt);
121122
event.commit();
122123
return;

0 commit comments

Comments
 (0)