Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable write permission before writing into CodeCache segment #18233

Merged

Conversation

Akira1Saitoh
Copy link
Contributor

allocateVirtualMemorySegmentInListInternal has been changed to write NULL into the code cache segment in #18212. The change does not include omrthread_jit_write_protect_disable and omrthread_jit_write_protect_enable calls before and after writing to the memory, which results in the crash on Apple Silicon Mac.
This commit inserts omrthread_jit_write_protect_disable and omrthread_jit_write_protect_enable appropriately.

`allocateVirtualMemorySegmentInListInternal` has been changed to
write NULL into the code cache segment in eclipse-openj9#18212. The change does not
include `omrthread_jit_write_protect_disable` and `omrthread_jit_write_protect_enable`
calls before and after writing to the memory, which results
in the crash on Apple Silicon Mac.
This commit inserts `omrthread_jit_write_protect_disable` and
`omrthread_jit_write_protect_enable` appropriately.

Signed-off-by: Akira Saitoh <[email protected]>
@knn-k
Copy link
Contributor

knn-k commented Oct 5, 2023

Jenkins test sanity alinux64,amac jdk17

@knn-k
Copy link
Contributor

knn-k commented Oct 5, 2023

FYI @mpirvu

@knn-k knn-k self-assigned this Oct 5, 2023
@knn-k knn-k merged commit 3970536 into eclipse-openj9:master Oct 5, 2023
@Akira1Saitoh Akira1Saitoh deleted the AMacVirtualMemoryPermission branch October 5, 2023 06:33
Copy link
Contributor

@mpirvu mpirvu left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants