RFR: 8366474: Rename MetaspaceObj::is_shared() to MetaspaceObj::in_aot_cache()
Vladimir Kozlov
kvn at openjdk.org
Sat Aug 30 14:03:47 UTC 2025
On Sat, 30 Aug 2025 02:13:20 GMT, Ioi Lam <iklam at openjdk.org> wrote:
> Rename `is_shared()` in `Metaspace` (and various other classes) to `in_aot_cache()` to reflect its true meaning:
> - tests if an object is inside the AOT cache's metaspace region.
>
> Also various forms of "shared metaspace" are updated to "aot metaspace"
>
> Please start your review with allocations.hpp
src/hotspot/share/include/cds.h line 38:
> 36: // Also, this is a C header file. Do not use C++ here.
> 37:
> 38: #define NUM_CDS_REGIONS 5 // this must be the same as AOTMetaspace::n_regions
This file changes seems belong to your other RFE JDK-8366475.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27016#discussion_r2311954464
More information about the hotspot-dev
mailing list