Make sure we can't access LocalData when destroying it
authorAndrii Grynenko <andrii@fb.com>
Wed, 15 Apr 2015 22:26:35 +0000 (15:26 -0700)
committerAlecs King <int@fb.com>
Mon, 27 Apr 2015 23:41:11 +0000 (16:41 -0700)
commit2355eee3c3dc8c7c7be50084bd6c3f1ae4d2917e
treeb310f342a23a3d566be2bca35337a524e89a0740
parentd3ceb2322e5e08df5150b531f550d54d650ab47c
Make sure we can't access LocalData when destroying it

Summary: We can access LocalData while currentFiber is set. We should make sure it's set to null when LocalData::reset is called.

Test Plan: unit test

Reviewed By: alikhtarov@fb.com

Subscribers: folly-diffs@, yfeldblum, chalfant, bwatling

FB internal diff: D1996071

Tasks: 6725667

Signature: t1:1996071:1429135408:d549d577e140ce2867aff4130e73be3884dbd2ed
folly/experimental/fibers/FiberManager-inl.h
folly/experimental/fibers/test/FibersTest.cpp