Fix ExtensionsRegistration cctest on ARM.
authordslomov@chromium.org <dslomov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 22 Nov 2011 18:51:53 +0000 (18:51 +0000)
committerdslomov@chromium.org <dslomov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 22 Nov 2011 18:51:53 +0000 (18:51 +0000)
Reduced the number of created threads on ARM.

Review URL: http://codereview.chromium.org/8639007

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10045 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

test/cctest/test-lockers.cc

index efa2e514af9d315619ac1f1b95ff4dbe0401e52a..77841b5a7fec28ecc7f2f97a9ea1de511bde25a6 100644 (file)
@@ -674,7 +674,11 @@ class IsolateGenesisThread : public JoinableThread {
 // Test installing extensions in separate isolates concurrently.
 // http://code.google.com/p/v8/issues/detail?id=1821
 TEST(ExtensionsRegistration) {
+#ifdef V8_TARGET_ARCH_ARM
+  const int kNThreads = 10;
+#else
   const int kNThreads = 40;
+#endif
   v8::RegisterExtension(new v8::Extension("test0",
                                           kSimpleExtensionSource));
   v8::RegisterExtension(new v8::Extension("test1",