Skip to content

Commit 0026244

Browse files
committed
Unset jdk.internal.lambda.disableEagerInitialization for wasm native tck
This fixes the Utils.isNonCapturingLambda assertion from the Vector API.
1 parent 312875d commit 0026244

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

vm/mx.vm/mx_vm_gate.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,11 @@ def gate_truffle_native_tck_wasm(tasks):
748748
mx.abort("Cannot resolve the `wasm:WASM` language distribution. To resolve this, import the wasm suite using `--dynamicimports /wasm`.")
749749
native_image_context, svm = graalvm_svm()
750750
with native_image_context(svm.IMAGE_ASSERTION_FLAGS) as native_image:
751-
_svm_truffle_tck(native_image, 'wasm', wasm_language)
751+
_svm_truffle_tck(native_image, 'wasm', wasm_language,
752+
# native-image sets -Djdk.internal.lambda.disableEagerInitialization=true by default,
753+
# which breaks Vector API's isNonCapturingLambda assertion. We override this property
754+
# for the GraalWasm Truffle Native TCK.
755+
additional_options=['-Djdk.internal.lambda.disableEagerInitialization=false'])
752756

753757
def gate_maven_downloader(tasks):
754758
with Task('Maven Downloader prepare maven repo', tasks, tags=[VmGateTasks.maven_downloader]) as t:

0 commit comments

Comments
 (0)