Skip to content

Commit 11b4850

Browse files
committed
[GR-71203] Transfer to interpreter in ByteArrayWasmMemory.trapOutOfBounds
PullRequest: graal/22634
2 parents 8ede3c7 + 79682c3 commit 11b4850

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wasm/src/org.graalvm.wasm/src/org/graalvm/wasm/memory/ByteArrayWasmMemory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ private void validateAddress(Node node, long address, long length) {
137137
}
138138

139139
private WasmException trapOutOfBounds(Node node, long address, long length) {
140+
CompilerDirectives.transferToInterpreterAndInvalidate();
140141
return trapOutOfBounds(node, address, length, byteSize());
141142
}
142143

0 commit comments

Comments
 (0)