RFR: 8338929: Make Metaspace::deallocate space-aware [v2]

Thomas Stuefe stuefe at openjdk.org
Mon Aug 26 14:15:28 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 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.

Thomas Stuefe has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:

 - improve comments
 - Merge branch 'master' into make-deallocate-space-aware
 - copyrights
 - fast is-in-class-space check

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/20701/files
  - new: https://git.openjdk.org/jdk/pull/20701/files/df8b43ce..5a38893e

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20701&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20701&range=00-01

  Stats: 601 lines in 110 files changed: 401 ins; 55 del; 145 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