RFR: 8338929: Make Metaspace::deallocate space-aware

Andrew Dinn adinn at openjdk.org
Mon Aug 26 08:20:03 UTC 2024


On Sat, 24 Aug 2024 07:18:09 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> For ucoming Lilliput changes, as well as to simplify [JDK-8338526](https://bugs.openjdk.org/browse/JDK-8338526), we should make Metaspace::deallocate space-aware (as in, instead of having to tell it where the pointed-to block resides, it should know it on its own). 
> 
> As of now, callers need to tell the function of the deallocated block is in class space or in non-class metaspace. That is unnecessary and won't work for TinyCP. The deallocation function can do this better on itself by doing a range check on the class space range.

Looks good

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

Marked as reviewed by adinn (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/20701#pullrequestreview-2260081526


More information about the hotspot-runtime-dev mailing list