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

Unified Diff: test/cctest/test-log.cc

Issue 3121009: [Isolates] Fix Linux build in Isolates branch. (Closed)
Patch Set: Fixed the crash due to incorrect usage of API in test. Created 10 years, 4 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 | « test/cctest/test-api.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-log.cc
diff --git a/test/cctest/test-log.cc b/test/cctest/test-log.cc
index e62bec03745feac9f94fa1948389baf96a85e14e..246bbea05e14ceeecea9316e3ed07ebe513de246 100644
--- a/test/cctest/test-log.cc
+++ b/test/cctest/test-log.cc
@@ -389,7 +389,7 @@ class LoopingJsThread : public LoopingThread {
void RunLoop() {
v8::Locker locker;
CHECK(i::Isolate::Current() != NULL);
- CHECK(i::Isolate::Current()->thread_manager()->HasId());
+ CHECK(i::Isolate::Current()->thread_manager()->CurrentId() > 0);
SetV8ThreadId();
while (IsRunning()) {
v8::HandleScope scope;
@@ -417,7 +417,7 @@ class LoopingNonJsThread : public LoopingThread {
v8::Unlocker unlocker;
// Now thread has V8's id, but will not run VM code.
CHECK(i::Isolate::Current() != NULL);
- CHECK(i::Isolate::Current()->thread_manager()->HasId());
+ CHECK(i::Isolate::Current()->thread_manager()->CurrentId() > 0);
double i = 10;
SignalRunning();
while (IsRunning()) {
« no previous file with comments | « test/cctest/test-api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698