Integrated: 8338929: Make Metaspace::deallocate space-aware
Thomas Stuefe
stuefe at openjdk.org
Tue Aug 27 15:49:11 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.
This pull request has now been integrated.
Changeset: daf26178
Author: Thomas Stuefe <stuefe at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/daf26178be07bfe4a46592bcde092ce297a092bb
Stats: 61 lines in 6 files changed: 37 ins; 7 del; 17 mod
8338929: Make Metaspace::deallocate space-aware
Reviewed-by: coleenp, adinn
-------------
PR: https://git.openjdk.org/jdk/pull/20701
More information about the hotspot-runtime-dev
mailing list