Integrated: 8356125: Interned strings are omitted from AOT cache

Ioi Lam iklam at openjdk.org
Thu May 8 17:58:00 UTC 2025


On Mon, 5 May 2025 00:10:38 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> When dumping the interned string table in the AOT cache, we try to include only the strings that are inside ConstantPool::reference_array(). The hope is to limit the size of the AOT cache by omitting interned strings that are not used by objects inside the AOT cache.
> 
> However, we have found two cases when the above scheme doesn't work. Please see the new test cases.
> 
> The fix is to always include all interned strings managed by stringTable.cpp. We might try to omit the truly unused strings in a separate RFE.

This pull request has now been integrated.

Changeset: 4379e2d2
Author:    Ioi Lam <iklam at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/4379e2d26bd445d3f303a5937d1e335885be9216
Stats:     328 lines in 12 files changed: 208 ins; 88 del; 32 mod

8356125: Interned strings are omitted from AOT cache

Reviewed-by: shade, ccheung

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

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


More information about the hotspot-dev mailing list