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

Unified Diff: src/top.cc

Issue 6816038: Do not rely on uniquiness of pthread_t Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: ThreadRef -> ThreadId Created 9 years, 8 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/top.cc
diff --git a/src/top.cc b/src/top.cc
index 7a1ce1bf7168a1dbd1a65cc6adca893117984ca4..69b296f76bb7682e8649c5ce2f7fc088b2853426 100644
--- a/src/top.cc
+++ b/src/top.cc
@@ -69,8 +69,7 @@ void ThreadLocalTop::Initialize() {
#endif
try_catch_handler_address_ = NULL;
context_ = NULL;
- int id = Isolate::Current()->thread_manager()->CurrentId();
- thread_id_ = (id == 0) ? ThreadManager::kInvalidId : id;
+ thread_id_ = ThreadId::Current();
external_caught_exception_ = false;
in_exception_reporting_ = false;
failed_access_check_callback_ = NULL;

Powered by Google App Engine
This is Rietveld 408576698