changeset 21479:2405d3b983cc

PrintWriter needs to be flushed more often than PrintStream
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Mon, 25 May 2015 09:09:07 +0200
parents 2dad34a3d7b0
children c2b006c5e15f
files graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLContext.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLContext.java	Mon May 25 08:49:16 2015 +0200
+++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLContext.java	Mon May 25 09:09:07 2015 +0200
@@ -163,6 +163,7 @@
             throw new SLException("No function main() defined in SL source file.");
         }
         main.getCallTarget().call();
+        output.flush();
     }
 
     public DynamicObject createObject() {