Index: base/threading/thread_local_storage_unittest.cc |
diff --git a/base/threading/thread_local_storage_unittest.cc b/base/threading/thread_local_storage_unittest.cc |
index 322524b10e1e442284268323907165d69271dd61..ec75f7f8dd597207b7a09cc46834d26d960bb30c 100644 |
--- a/base/threading/thread_local_storage_unittest.cc |
+++ b/base/threading/thread_local_storage_unittest.cc |
@@ -127,4 +127,11 @@ TEST(ThreadLocalStorageTest, MAYBE_TLSDestructors) { |
tls_slot.Free(); // Stop doing callbacks to cleanup threads. |
} |
+TEST(ThreadLocalStorageTest, TLSReclaim) { |
+ // Creates and destroys many TLS slots. |
+ for (int i = 0; i < 1000; ++i) { |
+ ThreadLocalStorage::Slot slot(nullptr); |
+ } |
+} |
+ |
} // namespace base |