Skip to content

Commit

Permalink
Revert 39d3f13 on the JVM backend
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jan 29, 2021
1 parent 7be4f5e commit d53d030
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core.c/ThreadPoolScheduler.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,12 @@ my class ThreadPoolScheduler does Scheduler {

submethod BUILD(
Int :$!initial_threads = 0,
Int :$!max_threads = nqp::ifnull(nqp::atkey($ENV,'RAKUDO_MAX_THREADS'),64).Int
#?if jvm
Int :$!max_threads = (%*ENV<RAKUDO_MAX_THREADS> // 64).Int
#?endif
#?if !jvm
Int :$!max_threads = nqp::ifnull(nqp::atkey($ENV,'RAKUDO_MAX_THREADS'),64)
#?endif
--> Nil
) {
die "Initial thread pool threads ($!initial_threads) must be less than or equal to maximum threads ($!max_threads)"
Expand Down

0 comments on commit d53d030

Please sign in to comment.