Make default Eden threshold value optionalnightly-2019.09.05
commit04a15da417881a18c43b5967a6137e9ab29a307b
authorTatiana Racheva <[email protected]>
Thu, 5 Sep 2019 00:08:29 +0000 (4 17:08 -0700)
committerHhvm Bot <[email protected]>
Thu, 5 Sep 2019 00:14:27 +0000 (4 17:14 -0700)
tree86df9cf02950101c9af7cb079b193218d397c9d7
parenta6e682144e53979a5bad5b8f7005773074978ad8
Make default Eden threshold value optional

Summary:
Just to remove some confusion (mainly, my own), I'm making the remote scheduler env's Eden threshold an optional type, to distinguish it from being set to a specific value by the caller.

In the remote scheduler, the threshold is used to determine if the remote worker's checkout should be backed by Eden or not. It's backed by Eden if the number of files to type check is fewer than the threshold.

Note that I flipped the comparison and it's not identical, but it's more correct now, anyway (the behavior changes AT the threshold, not above it).

Differential Revision: D17186170

fbshipit-source-id: 123c940b02ae3d94f79ac1d431150352662fdb73
hphp/hack/src/stubs/remoteScheduler.ml
hphp/hack/src/typing/typing_remote_check_service.ml