Skip to content

Commit

Permalink
Merge PR #310: Fix termination in Launcher and of Fork/Join Pools
Browse files Browse the repository at this point in the history
  • Loading branch information
smarr authored Aug 7, 2019
2 parents db2922c + 132b20e commit 6fc630a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/som/Launcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static void main(final String[] args) {
exitCode = result.as(Integer.class);
} finally {
context.eval(SHUTDOWN);
context.close(true);
context.close();
finalizeExecution(exitCode);
}

Expand Down
2 changes: 1 addition & 1 deletion src/som/VM.java
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ private void shutdownPools() {
new ForkJoinPool[] {actorPool, processesPool, forkJoinPool, threadPool};

for (ForkJoinPool pool : pools) {
pool.shutdown();
pool.shutdownNow();
try {
pool.awaitTermination(10, TimeUnit.SECONDS);
} catch (InterruptedException e) {
Expand Down

0 comments on commit 6fc630a

Please sign in to comment.