Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix app-lifetime thread regression on JVM backend.
The thread pool scheduler wants its threads to be background ones, but
they were not marked as such. This caused hangs at process end.
  • Loading branch information
jnthn committed Mar 31, 2014
1 parent 08e997a commit cf3bdf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java
Expand Up @@ -4197,6 +4197,7 @@ public void run() {
public static SixModelObject newthread(SixModelObject code, long appLifetime, ThreadContext tc) {
SixModelObject thread = tc.gc.Thread.st.REPR.allocate(tc, tc.gc.Thread.st);
((VMThreadInstance)thread).thread = new Thread(new CodeRunnable(tc.gc, thread, code));
((VMThreadInstance)thread).thread.setDaemon(appLifetime != 0);
return thread;
}

Expand Down

0 comments on commit cf3bdf1

Please sign in to comment.