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

Unified Diff: base/thread_local_storage_win.cc

Issue 11207: Don't get the TLS for invalid TLS indexes. This... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/thread_local_storage_win.cc
===================================================================
--- base/thread_local_storage_win.cc (revision 5478)
+++ base/thread_local_storage_win.cc (working copy)
@@ -100,6 +100,9 @@
}
void ThreadLocalStorage::ThreadExit() {
+ if (tls_key_ == TLS_OUT_OF_INDEXES)
+ return;
+
void** tls_data = static_cast<void**>(TlsGetValue(tls_key_));
// Maybe we have never initialized TLS for this thread.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698