RFR: 8329088: Stack chunk thawing races with concurrent GC stack iteration [v2]

Inigo Mediavilla Saiz duke at openjdk.org
Thu May 2 07:46:57 UTC 2024


On Mon, 22 Apr 2024 09:39:44 GMT, Erik Österlund <eosterlund at openjdk.org> wrote:

>>> Unlike thawing, the freeze operation does not race with the GC by design.
>>>
>> Is this with the changes in the allocation code in this patch or even before those there was no race?
>
> Thanks for the detailed review @pchilano! I made the suggested updates.

Hello 👋, I wonder @fisk if you were able to reproduce the situation where a GC thread sees inconsistent values for `sp` and `argsize` and whether it would make sense to write a test forcing that situation to happen to prove that this PR fixes the issue and to avoid regressions ? I'm not super experienced with the hotspot code, but I'd be happy to try to write a test for that if you think that it makes sense.

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

PR Comment: https://git.openjdk.org/jdk/pull/18643#issuecomment-2089820311


More information about the hotspot-dev mailing list