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

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

Issue 2218033002: [cctest] Reducing recursion depth for asan tests. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index 2430cbef5d02d0b9e2d25a7651adf326d390ddd8..4108a090598a8811d22ef8bd13a29bd490201e98 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -2478,8 +2478,7 @@ THREADED_TEST(UndefinedIsNotEnumerable) {
v8::Local<Script> call_recursively_script;
-static const int kTargetRecursionDepth = 150; // near maximum
-
+static const int kTargetRecursionDepth = 100; // near maximum
static void CallScriptRecursivelyCall(
const v8::FunctionCallbackInfo<v8::Value>& args) {
@@ -13807,6 +13806,16 @@ void ApiTestFuzzer::TearDown() {
}
}
+void ApiTestFuzzer::CallTest() {
+ v8::Isolate::Scope scope(CcTest::isolate());
+ if (kLogThreading)
+ printf("Start test %s #%d\n",
+ RegisterThreadedTest::nth(test_number_)->name(), test_number_);
+ CallTestNumber(test_number_);
+ if (kLogThreading)
+ printf("End test %s #%d\n", RegisterThreadedTest::nth(test_number_)->name(),
+ test_number_);
+}
// Lets not be needlessly self-referential.
TEST(Threading1) {
@@ -13837,16 +13846,6 @@ TEST(Threading4) {
}
-void ApiTestFuzzer::CallTest() {
- v8::Isolate::Scope scope(CcTest::isolate());
- if (kLogThreading)
- printf("Start test %d\n", test_number_);
- CallTestNumber(test_number_);
- if (kLogThreading)
- printf("End test %d\n", test_number_);
-}
-
-
static void ThrowInJS(const v8::FunctionCallbackInfo<v8::Value>& args) {
v8::Isolate* isolate = args.GetIsolate();
CHECK(v8::Locker::IsLocked(isolate));
« 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