File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2020, 2021 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2020, 2022 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -72,6 +72,10 @@ JavaThread* UpcallLinker::on_entry(UpcallStub::FrameData* context) {
72
72
// clear any pending exception in thread (native calls start with no exception pending)
73
73
thread->clear_pending_exception ();
74
74
75
+ // The call to transition_from_native below contains a safepoint check
76
+ // which needs the code cache to be writable.
77
+ MACOS_AARCH64_ONLY (ThreadWXEnable wx (WXWrite, thread));
78
+
75
79
// After this, we are officially in Java Code. This needs to be done before we change any of the thread local
76
80
// info, since we cannot find oops before the new information is set up completely.
77
81
ThreadStateTransition::transition_from_native (thread, _thread_in_Java, true /* check_asyncs */ );
You can’t perform that action at this time.
0 commit comments