From 53fb3708e71d4a0572b1824f1a00cfb169db7ff2 Mon Sep 17 00:00:00 2001 From: Matt D'Souza Date: Tue, 24 Feb 2026 12:25:50 -0500 Subject: [PATCH 1/2] Fix PGenerator#handleResult assertion --- .../graal/python/builtins/objects/generator/PGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/generator/PGenerator.java b/graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/generator/PGenerator.java index d9513c3a3b..34ac4c604d 100644 --- a/graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/generator/PGenerator.java +++ b/graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/generator/PGenerator.java @@ -132,7 +132,7 @@ public BytecodeDSLState(PBytecodeDSLRootNode rootNode, Object[] arguments, Conti } public Object handleResult(PGenerator generator, ContinuationResult result) { - assert result.getContinuationRootNode() == null || result.getContinuationRootNode().getFrameDescriptor() == generator.frame.getFrameDescriptor(); + assert PBytecodeDSLRootNode.cast(result.getContinuationRootNode()).getFrameDescriptor() == generator.frame.getFrameDescriptor(); isStarted = true; // We must keep the previous root so that we can load its BytecodeNode to resolve BCI to // location, the next continuation node may have different BytecodeNode From efa868da8a32e7e40d36d3c15577a7eb825ae9a2 Mon Sep 17 00:00:00 2001 From: Matt D'Souza Date: Mon, 2 Mar 2026 16:38:51 -0500 Subject: [PATCH 2/2] Remove unnecessary SuppressWarnings --- .../graal/python/nodes/bytecode_dsl/PBytecodeDSLRootNode.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/bytecode_dsl/PBytecodeDSLRootNode.java b/graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/bytecode_dsl/PBytecodeDSLRootNode.java index ff1a55b2f1..ce78de3d03 100644 --- a/graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/bytecode_dsl/PBytecodeDSLRootNode.java +++ b/graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/bytecode_dsl/PBytecodeDSLRootNode.java @@ -1136,7 +1136,6 @@ public static Object doOther(Object ex) { * provides access to the generator frame even before the generator was started. */ @Yield - @SuppressWarnings("truffle-interpreted-performance") // blocked by GR-69979 public static final class YieldGenerator { @Specialization public static Object doYield( @@ -1199,7 +1198,6 @@ public static Object doObject(Object value, * Performs some clean-up steps before suspending execution, and updates the generator state. */ @Yield - @SuppressWarnings("truffle-interpreted-performance") // blocked by GR-69979 public static final class YieldValue { @Specialization public static Object doObject(Object value,