Add missing TCK-8 suspension tests and exnref EXEC-5 coverage#13
Merged
Conversation
- withTimeout around deep guest recursion (fib) poisons the store - cancellation while parked in WaitingForFuel, Paused, and InHostImport - cancellation bypasses guest try_table catch_all handlers - try_table catch_all cannot catch host exceptions, mirroring the legacy-EH test for the standardized instruction set Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The §8.5 suite had three gaps against
[TCK-8]/[EXEC-5]: nowithTimeouttest around deep recursion, no cancellation tests at the parked states (WaitingForFuel/Paused/InHostImport), and the guest-can't-catch-host-exceptions test only covered legacy EH, nottry_table.New tests in
SuspensionSemanticsTest:withTimeoutaround recursivefib(40):TimeoutCancellationExceptionescapes, store is poisoned, next call fails fast withPoisonedStoreExceptionWaitingForFuel,Paused, andInHostImport— each poisons the store per[EXEC-6]try_table catch_allbypasses the guest handlerNew test in
GcEhExecutionTest:try_table catch_allcannot catch a host exception — same identity assertion as the existing legacy-EH test, for the standardized instruction setNo runtime changes; behavior already matched
[EXEC-6], these tests pin it.Tested:
:core:jvmTestand:core:macosArm64Test, both green (SuspensionSemanticsTest 6/6, GcEhExecutionTest 11/11).🤖 Generated with Claude Code