RFR: 8345655: Move reservation code out of ReservedSpace [v2]

Johan Sjölen jsjolen at openjdk.org
Fri Dec 13 13:38:40 UTC 2024


On Fri, 13 Dec 2024 13:10:38 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

>> It seems like you've explicitly decided against this in the new API, is there a particular reason for that?
>
> My reasoning was that MemoryReserver does not have the ownership of the ReservedSpace instance, so I didn't want it to be the one clearing the members. If others feel the same way as you do, then I would prefer to add a function release_and_clear to make it clearer (:)) what's going on.

`release_and_clear`does sound clearer :)

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/22712#discussion_r1883947587


More information about the shenandoah-dev mailing list