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

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

Issue 8662003: Decrease number of threads in ExtensionRegistration tests for mips, current number is causing OOMs. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2007-2011 the V8 project authors. All rights reserved. 1 // Copyright 2007-2011 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 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 isolate->Dispose(); 667 isolate->Dispose();
668 } 668 }
669 private: 669 private:
670 int count_; 670 int count_;
671 const char** extension_names_; 671 const char** extension_names_;
672 }; 672 };
673 673
674 // Test installing extensions in separate isolates concurrently. 674 // Test installing extensions in separate isolates concurrently.
675 // http://code.google.com/p/v8/issues/detail?id=1821 675 // http://code.google.com/p/v8/issues/detail?id=1821
676 TEST(ExtensionsRegistration) { 676 TEST(ExtensionsRegistration) {
677 #ifdef V8_TARGET_ARCH_ARM 677 #if defined V8_TARGET_ARCH_ARM || defined V8_HOST_ARCH_MIPS
678 const int kNThreads = 10; 678 const int kNThreads = 10;
679 #else 679 #else
680 const int kNThreads = 40; 680 const int kNThreads = 40;
681 #endif 681 #endif
682 v8::RegisterExtension(new v8::Extension("test0", 682 v8::RegisterExtension(new v8::Extension("test0",
683 kSimpleExtensionSource)); 683 kSimpleExtensionSource));
684 v8::RegisterExtension(new v8::Extension("test1", 684 v8::RegisterExtension(new v8::Extension("test1",
685 kSimpleExtensionSource)); 685 kSimpleExtensionSource));
686 v8::RegisterExtension(new v8::Extension("test2", 686 v8::RegisterExtension(new v8::Extension("test2",
687 kSimpleExtensionSource)); 687 kSimpleExtensionSource));
688 v8::RegisterExtension(new v8::Extension("test3", 688 v8::RegisterExtension(new v8::Extension("test3",
689 kSimpleExtensionSource)); 689 kSimpleExtensionSource));
690 v8::RegisterExtension(new v8::Extension("test4", 690 v8::RegisterExtension(new v8::Extension("test4",
691 kSimpleExtensionSource)); 691 kSimpleExtensionSource));
692 v8::RegisterExtension(new v8::Extension("test5", 692 v8::RegisterExtension(new v8::Extension("test5",
693 kSimpleExtensionSource)); 693 kSimpleExtensionSource));
694 v8::RegisterExtension(new v8::Extension("test6", 694 v8::RegisterExtension(new v8::Extension("test6",
695 kSimpleExtensionSource)); 695 kSimpleExtensionSource));
696 v8::RegisterExtension(new v8::Extension("test7", 696 v8::RegisterExtension(new v8::Extension("test7",
697 kSimpleExtensionSource)); 697 kSimpleExtensionSource));
698 const char* extension_names[] = { "test0", "test1", 698 const char* extension_names[] = { "test0", "test1",
699 "test2", "test3", "test4", 699 "test2", "test3", "test4",
700 "test5", "test6", "test7" }; 700 "test5", "test6", "test7" };
701 i::List<JoinableThread*> threads(kNThreads); 701 i::List<JoinableThread*> threads(kNThreads);
702 for (int i = 0; i < kNThreads; i++) { 702 for (int i = 0; i < kNThreads; i++) {
703 threads.Add(new IsolateGenesisThread(8, extension_names)); 703 threads.Add(new IsolateGenesisThread(8, extension_names));
704 } 704 }
705 StartJoinAndDeleteThreads(threads); 705 StartJoinAndDeleteThreads(threads);
706 } 706 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698