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

Thomas Stuefe stuefe at openjdk.org
Sat Aug 24 10:49:21 UTC 2024


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 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.

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

Commit messages:
 - copyrights
 - fast is-in-class-space check

Changes: https://git.openjdk.org/jdk/pull/20701/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20701&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8338929
  Stats: 59 lines in 6 files changed: 35 ins; 7 del; 17 mod
  Patch: https://git.openjdk.org/jdk/pull/20701.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20701/head:pull/20701

PR: https://git.openjdk.org/jdk/pull/20701


More information about the hotspot-runtime-dev mailing list