RFR: 8350621: Code cache stops scheduling GC

Thomas Schatzl tschatzl at openjdk.org
Tue Jul 8 07:50:45 UTC 2025


On Mon, 7 Jul 2025 18:54:55 GMT, Alexandre Jacob <duke at openjdk.org> wrote:

> Hello, I'm sorry I didn't get back to you sooner on this PR.
> 

No worries, it should be rather me to not get to this earlier....

> Indeed I considered the first option (do not try to prevent calls to `Universe::heap()->collect(...)`) but wanted to have something more elaborated instead.
> 
> @tschatzl I like your proposal of fixing the GC implementation directly, as mentioned in my PR description it was my favorite option but because I found that this bug existed for at least Parallel GC and G1 I wanted to have something in CodeCache directly to ensure we never have an issue related to GC implementation. I had a look at your commit and feel like it is the good direction for G1. Thank you for having a look at it

First, I assume you verified my change ;)

How do we proceed from here? Do you want to reuse this PR or should we (I, you?) open a new one for the new suggestion?

What do you prefer? I am fine with either option.

Thanks,
  Thomas

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

PR Comment: https://git.openjdk.org/jdk/pull/23656#issuecomment-3047757426


More information about the hotspot-compiler-dev mailing list