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

Unified Diff: src/isolate.h

Issue 6696112: Fast TLS support.
Patch Set: Created 9 years, 9 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
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index 13ffc1353b4bd34b94526686ec1b34c7ef2f64ca..90fce61ecdad3aa8361e8a69afe87931b382a321 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -402,7 +402,8 @@ class Isolate {
// Returns the isolate inside which the current thread is running.
INLINE(static Isolate* Current()) {
- Isolate* isolate = UncheckedCurrent();
+ Isolate* isolate = reinterpret_cast<Isolate*>(
+ Thread::GetExistingThreadLocal(isolate_key_));
ASSERT(isolate != NULL);
return isolate;
}

Powered by Google App Engine
This is Rietveld 408576698