summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/test-lockers.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/test-lockers.cc')
-rw-r--r--deps/v8/test/cctest/test-lockers.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/deps/v8/test/cctest/test-lockers.cc b/deps/v8/test/cctest/test-lockers.cc
index 57f7178493..5035f87642 100644
--- a/deps/v8/test/cctest/test-lockers.cc
+++ b/deps/v8/test/cctest/test-lockers.cc
@@ -59,9 +59,9 @@ using ::v8::V8;
class KangarooThread : public v8::internal::Thread {
public:
KangarooThread(v8::Isolate* isolate,
- v8::Handle<v8::Context> context)
+ v8::Handle<v8::Context> context, int value)
: Thread("KangarooThread"),
- isolate_(isolate), context_(context) {
+ isolate_(isolate), context_(context), value_(value) {
}
void Run() {
@@ -90,6 +90,7 @@ class KangarooThread : public v8::internal::Thread {
private:
v8::Isolate* isolate_;
Persistent<v8::Context> context_;
+ int value_;
};
// Migrates an isolate from one thread to another
@@ -105,7 +106,7 @@ TEST(KangarooIsolates) {
CHECK_EQ(isolate, v8::internal::Isolate::Current());
CompileRun("function getValue() { return 30; }");
}
- KangarooThread thread1(isolate, context);
+ KangarooThread thread1(isolate, context, 1);
thread1.Start();
thread1.Join();
}