fix leak in MPMCQueueTest's use of boost::intrusive_ptr
authorNathan Bronson <ngbronson@fb.com>
Mon, 22 Sep 2014 18:33:28 +0000 (11:33 -0700)
committerAnton Likhtarov <alikhtarov@fb.com>
Fri, 26 Sep 2014 22:20:19 +0000 (15:20 -0700)
commit54ab6858b79c1bea35e5dcba593b60d4f92b58f3
treef312efc419ed3bdf914781302c56629d43ceb559
parent9f4a587cd1494371359adaf7f296c0d3a8ee3a2b
fix leak in MPMCQueueTest's use of boost::intrusive_ptr

Summary:
MPMCQueueTest's intrusive reference count test implementation was
incorrect, so it simultaneously didn't test what it should and had a leak.

Test Plan: tests, plus new __thread to track lifetimes

Reviewed By: meyering@fb.com

Subscribers: njormrod, soren, meyering

FB internal diff: D1569448
folly/test/MPMCQueueTest.cpp