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

Improve Arena doc and reduce visible code #17

Open
wants to merge 2 commits into
base: PR_20
Choose a base branch
from

Conversation

minborg
Copy link

@minborg minborg commented Nov 9, 2022

This PR proposes improved doc for Arena and moves code segments to the internals.

@@ -74,14 +75,18 @@
* can be {@linkplain MemorySession#isAccessibleBy(Thread) accessed} by multiple threads. This might be useful when
* multiple threads need to access the same memory segment concurrently (e.g. in the case of parallel processing).
* Moreover, a shared arena can be closed by any thread.
* @implSpec
Copy link
Owner

Choose a reason for hiding this comment

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

This is a good point - but is only true for allocate I think? For close we need to make sure that owner thread is respected. So perhaps more specific implSpec on these two methods might do the job?

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

Successfully merging this pull request may close these issues.

2 participants