On Mon, 3 Aug 2026 15:11:16 GMT, Patricio Chilano Mateo 
<[email protected]> wrote:

> `VerifyStackChunkFrameClosure` calls `StackChunkFrameStream::frame_size` to 
> compute the sizes of frames stored in the `stackChunk`, but that method 
> incorrectly uses `cb()->frame_size()` for extended compiled frames. The 
> actual frame size has to be read from the frame metadata recorded when the 
> frame was extended.
> 
> Thanks to @TobiHartmann for the small reproducer which I included in the PR. 
> I also tested the fix running `TestVirtualThreads.java` and `Fuzz.java` with 
> `-XX:+VerifyContinuations` which also triggered the same assert before this 
> fix.
> 
> Thanks,
> Patricio
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 993f7b35
Author:    Patricio Chilano Mateo <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/993f7b35cfcbaf97f60b3957564752f9d049f7ec
Stats:     122 lines in 10 files changed: 107 ins; 0 del; 15 mod

8389187: -XX:+VerifyContinuations triggers assert(max_thawing_size() == 
calculated_max_size)

Co-authored-by: Tobias Hartmann <[email protected]>
Reviewed-by: fbredberg, fparain

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

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

Reply via email to