RFR: 8358680: AOT cache creation fails: no strings should have been added

Ioi Lam iklam at openjdk.org
Mon Jun 16 06:11:30 UTC 2025


On Mon, 16 Jun 2025 05:05:12 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

> Can something else add string to table between you get number and safe point? How you avoid that? I assume you can't get number at safepoint because you need to allocate object array not at safepoint. Right?

Not that I am aware of. In testing, I added `precond(THREAD->is_Java_thread()` into `StringTable::intern()` and it never failed. So I assume that this function can only be called by real Java threads or compiler threads.

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

PR Comment: https://git.openjdk.org/jdk/pull/25816#issuecomment-2975220245


More information about the hotspot-dev mailing list