Skip to content

New strategy for safepoint invocation #2463

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

mshinwell
Copy link
Collaborator

This uses a load or store from a protected memory page to trigger entry into the runtime, instead of the existing safepoint mechanism. The code sequence is consequentially rather shorter. When waking up domains, we first wait, hoping that each domain will hit an allocation point (or some other means of entering the runtime, but not a safe point). If that fails, the memory protection is applied to the safepoint trigger page.

This is currently only a sketch and needs testing, not yet ready for review.

@mshinwell mshinwell marked this pull request as draft April 17, 2024 11:27
@mshinwell mshinwell force-pushed the safepoints-new-sequence branch from f8d07d0 to c43ee96 Compare April 17, 2024 12:05
@mshinwell
Copy link
Collaborator Author

Now based on #2464

@mshinwell mshinwell force-pushed the safepoints-new-sequence branch 2 times, most recently from 00c9251 to c6bbd9c Compare April 17, 2024 14:45
@mshinwell mshinwell marked this pull request as ready for review April 17, 2024 14:49
@mshinwell
Copy link
Collaborator Author

This might be in a working state...

@mshinwell
Copy link
Collaborator Author

I neglected to mention yesterday that some pieces of code here were taken from #2404 written by @xclerc

@mshinwell mshinwell force-pushed the safepoints-new-sequence branch 2 times, most recently from 8a73038 to 4ea4991 Compare June 7, 2024 12:17
@mshinwell mshinwell force-pushed the safepoints-new-sequence branch from ee7edeb to 96cea77 Compare June 7, 2024 14:40
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.

1 participant