File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -486,8 +486,10 @@ public void cleanup() {
486486 Collections .emptyList ());
487487 invokeStaticMethod ("com.oracle.truffle.api.impl.ThreadLocalHandshake" , "resetNativeImageState" ,
488488 Collections .emptyList ());
489- invokeStaticMethod ("com.oracle.truffle.api.library.LibraryFactory" , "resetNativeImageState" ,
490- Collections .singletonList (ClassLoader .class ), imageClassLoader );
489+ if (System .getProperty ("substratevm.svmtest" ) == null ) {
490+ invokeStaticMethod ("com.oracle.truffle.api.library.LibraryFactory" , "resetNativeImageState" ,
491+ Collections .singletonList (ClassLoader .class ), imageClassLoader );
492+ }
491493 invokeStaticMethod ("com.oracle.truffle.api.source.Source" , "resetNativeImageState" , Collections .emptyList ());
492494 }
493495
You can’t perform that action at this time.
0 commit comments