Skip to content

Conversation

@minborg
Copy link

@minborg minborg commented Nov 9, 2022

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

* 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