Skip to content

Commit

Permalink
Merge 016f0e0 into 1cb7400
Browse files Browse the repository at this point in the history
  • Loading branch information
smarr committed Feb 3, 2020
2 parents 1cb7400 + 016f0e0 commit d396737
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .checkstyle_checks.xml
Expand Up @@ -33,9 +33,6 @@
<property name="format" value="^[A-Z][_a-zA-Z0-9]*$"/>
</module>
<module name="RedundantImport"/>
<module name="LineLength">
<property name="max" value="550"/>
</module>
<module name="MethodParamPad"/>
<module name="NoWhitespaceAfter">
<property name="tokens" value="ARRAY_INIT,BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS"/>
Expand Down Expand Up @@ -176,4 +173,7 @@
<property name="message" value="illegal Windows line ending"/>
</module>
<module name="Translation"/>
<module name="LineLength">
<property name="max" value="550"/>
</module>
</module>
1 change: 1 addition & 0 deletions .classpath
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry combineaccessrules="false" kind="src" path="/com.oracle.truffle.api.jdk8"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="tests/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
Expand Down
4 changes: 0 additions & 4 deletions .factorypath
@@ -1,7 +1,3 @@
<factorypath>
<factorypathentry kind="WKSPJAR" id="/TRUFFLE_API/truffle-api.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="WKSPJAR" id="/TRUFFLE_DSL_PROCESSOR/truffle-dsl-processor.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="WKSPJAR" id="/TRUFFLE_DSL_PROCESSOR_INTERNAL/truffle-dsl-processor-internal.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="WKSPJAR" id="/TRUFFLE_DSL_PROCESSOR_INTEROP_INTERNAL/truffle-dsl-processor-interop-internal.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="WKSPJAR" id="/GRAAL_SDK/graal-sdk.jar" enabled="true" runInBatchMode="false"/>
</factorypath>
2 changes: 1 addition & 1 deletion build.xml
Expand Up @@ -56,7 +56,7 @@
<property name="svm.build" location="${svm.dir}/mxbuild/dists/jdk1.8" />
<property name="truffle.build" location="${truffle.dir}/mxbuild/dists/jdk1.8" />
<property name="somns-deps.version" value="0.3.6" />
<property name="checkstyle.version" value="8.11" />
<property name="checkstyle.version" value="8.28" />
<property name="jacoco.version" value="0.8.5" />
<property name="jvmci.home" location="${lib.dir}/jvmci${home.ext}" />

Expand Down
3 changes: 0 additions & 3 deletions core-lib/TestSuite/extension/.factorypath
@@ -1,6 +1,3 @@
<factorypath>
<factorypathentry kind="WKSPJAR" id="/TRUFFLE_API/truffle-api.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="WKSPJAR" id="/TRUFFLE_DSL_PROCESSOR/truffle-dsl-processor.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="WKSPJAR" id="/TRUFFLE_DSL_PROCESSOR_INTERNAL/truffle-dsl-processor-internal.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="WKSPJAR" id="/TRUFFLE_DSL_PROCESSOR_INTEROP_INTERNAL/truffle-dsl-processor-interop-internal.jar" enabled="true" runInBatchMode="false"/>
</factorypath>
4 changes: 3 additions & 1 deletion src/som/interpreter/SomLanguage.java
Expand Up @@ -262,7 +262,9 @@ protected ShutdownContext(final SomLanguage lang) {

@Override
public Object execute(final VirtualFrame frame) {
vm.shutdown();
if (vm != null) {
vm.shutdown();
}
return true;
}
}
Expand Down
15 changes: 15 additions & 0 deletions src/som/vm/VmOptions.java
@@ -1,5 +1,6 @@
package som.vm;

import java.io.File;
import java.util.Arrays;

import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
Expand Down Expand Up @@ -93,6 +94,20 @@ private Object[] processVmArguments(final String[] arguments) {
}

public boolean isConfigUsable() {
boolean noPlatformFile = !(new File(platformFile)).exists();
if (noPlatformFile) {
Output.errorPrintln("The platformFile " + platformFile
+ " was not found. Please check the --platform setting.");
}
boolean noKernelFile = !(new File(kernelFile)).exists();
if (noKernelFile) {
Output.errorPrintln("The kernelFile " + kernelFile
+ " was not found. Please check the --kernel setting.");
}
if (noPlatformFile || noKernelFile) {
return false;
}

if (!showUsage) {
return true;
}
Expand Down

0 comments on commit d396737

Please sign in to comment.