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

Side by Side Diff: test/cctest/test-threads.cc

Issue 24220003: Remove default isolate usage from almost all tests (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 break; 122 break;
123 } 123 }
124 } 124 }
125 125
126 Thread::YieldCPU(); 126 Thread::YieldCPU();
127 } while (true); 127 } while (true);
128 } 128 }
129 }; 129 };
130 130
131 131
132 TEST(JSFunctionResultCachesInTwoThreads) { 132 UNINITIALIZED_TEST(JSFunctionResultCachesInTwoThreads) {
133 v8::V8::Initialize(); 133 v8::V8::Initialize();
134 134
135 ThreadA threadA; 135 ThreadA threadA;
136 ThreadB threadB; 136 ThreadB threadB;
137 137
138 threadA.Start(); 138 threadA.Start();
139 threadB.Start(); 139 threadB.Start();
140 140
141 threadA.Join(); 141 threadA.Join();
142 threadB.Join(); 142 threadB.Join();
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 Join(); 206 Join();
207 } 207 }
208 }; 208 };
209 209
210 210
211 TEST(ThreadJoinSelf) { 211 TEST(ThreadJoinSelf) {
212 ThreadC thread; 212 ThreadC thread;
213 thread.Start(); 213 thread.Start();
214 thread.Join(); 214 thread.Join();
215 } 215 }
OLDNEW
« test/cctest/test-debug.cc ('K') | « test/cctest/test-thread-termination.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698