Skip to content

Commit

Permalink
fix init bug
Browse files Browse the repository at this point in the history
  • Loading branch information
typerSniper committed Jun 23, 2022
1 parent 43d6006 commit e0c3efb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions basis-library/schedulers/shh/Scheduler.sml
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ struct
if HH.getDepth originalThread = 0 then ()
else die (fn _ => "scheduler bug: root depth <> 0")
val _ = HH.setDepth (originalThread, 1)
val _ = HH.forceLeftHeap (myWorkerId (), originalThread)

(* implicitly attaches worker child heaps *)
val _ = MLton.Parallel.initializeProcessors ()
Expand Down

0 comments on commit e0c3efb

Please sign in to comment.