mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
baa6894151
Summary: On Windows (haven't verified on other platforms), ThreadLocalPtr don't appear to be releasing resources when a thread die. This means that when the importer thread dies, the actual importer (hg.real) would still run and use resources, with no way of talking to it. To fix this, let's manually reset it when the main thread function returns, this forces the importer to be destroyed and therefore the various handles to hg.real to be released, effectively terminating it. I'm not sure if this is the proper fix, but delving into folly feels a bit daunting. Keeping a TODO for later to go back to it and fix it properly in folly. Reviewed By: chadaustin Differential Revision: D22012540 fbshipit-source-id: 99f994bb5128b38ccf8474031763b8a21055759a |
||
---|---|---|
.. | ||
benchharness | ||
benchmarks | ||
cli | ||
config | ||
docs | ||
fuse | ||
inodes | ||
journal | ||
model | ||
monitor | ||
notifications | ||
py | ||
rocksdb | ||
service | ||
sqlite | ||
store | ||
takeover | ||
telemetry | ||
testharness | ||
third-party | ||
utils | ||
win | ||
CMakeLists.txt |