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

Unified Diff: src/runtime.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/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index a1d70767881c1e77f6cf71108570d2f3e5640473..947eb193de74f6cf6d8bdfa05150d11265e223b7 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -10153,7 +10153,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetThreadDetails) {
isolate->heap()->true_value());
details->set(kThreadDetailsThreadIdIndex,
Smi::FromInt(
- isolate->thread_manager()->CurrentId()));
+ ThreadId::Current().ToInteger()));
Vitaly Repeshko 2011/04/11 19:28:52 Fits on the line above?
Dmitry Lomov 2011/04/11 21:41:14 Done.
} else {
// Find the thread with the requested index.
int n = 1;
@@ -10170,7 +10170,8 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetThreadDetails) {
// Fill the details.
details->set(kThreadDetailsCurrentThreadIndex,
isolate->heap()->false_value());
- details->set(kThreadDetailsThreadIdIndex, Smi::FromInt(thread->id()));
+ details->set(kThreadDetailsThreadIdIndex,
+ Smi::FromInt(thread->id().ToInteger()));
}
// Convert to JS array and return.

Powered by Google App Engine
This is Rietveld 408576698