Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Unified Diff: base/threading/thread_local_storage.h

Issue 2383833004: Ensure Freed TLS Slots Contain nullptr on Reallocation (Closed)
Patch Set: Add Banner Doc Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/threading/thread_local_storage.cc » ('j') | base/threading/thread_local_storage.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/thread_local_storage.h
diff --git a/base/threading/thread_local_storage.h b/base/threading/thread_local_storage.h
index bc956a73bc058f51498ef733a4bc45aecbd53e9b..2444ac9efdc08318b26e5f6736e60d61491ffed1 100644
--- a/base/threading/thread_local_storage.h
+++ b/base/threading/thread_local_storage.h
@@ -5,6 +5,8 @@
#ifndef BASE_THREADING_THREAD_LOCAL_STORAGE_H_
#define BASE_THREADING_THREAD_LOCAL_STORAGE_H_
+#include <stdint.h>
+
#include "base/atomicops.h"
#include "base/base_export.h"
#include "base/macros.h"
@@ -123,6 +125,7 @@ class BASE_EXPORT ThreadLocalStorage {
// The internals of this struct should be considered private.
base::subtle::Atomic32 initialized_;
int slot_;
+ uint32_t version_;
};
// A convenience wrapper around StaticSlot with a constructor. Can be used
« no previous file with comments | « no previous file | base/threading/thread_local_storage.cc » ('j') | base/threading/thread_local_storage.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698