Skip to content

Commit 76f2a34

Browse files
changes to make better operation on windows XP 32 bit
1 parent 2c9539b commit 76f2a34

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

pom.xml

100644100755
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@
4343
<outputDirectory>target/classes</outputDirectory>
4444
<resources>
4545
<resource>
46-
<directory>resources</directory>
46+
<directory>shen</directory>
47+
<excludes>
48+
<exclude>benchmarks/</exclude>
49+
<exclude>src/</exclude>
50+
<exclude>Test Programs/</exclude>
51+
</excludes>
4752
</resource>
4853
</resources>
4954
<plugins>

resources/klambda

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/shen/Shen.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,15 @@ static <T> Class<T> compile(String file, Class<T> aClass) throws Throwable {
694694
} finally {
695695
lines.clear();
696696
try (OutputStream out = new FileOutputStream(classFile)) {
697-
out.write(compiler.bytes);
697+
if(compiler.bytes == null){
698+
out.close();
699+
classFile.delete();
700+
throw new Exception("Shen.compile : trying to write zero bytes out to the file " + file +
701+
".class. This has happened because a stackoverflow has taken place." +
702+
" Try increasing default stack size via the -Xss option.");
703+
}else{
704+
out.write(compiler.bytes);
705+
}
698706
}
699707
}
700708
}

0 commit comments

Comments
 (0)