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

Unified Diff: test/fuzzer/parser.cc

Issue 1927933002: Add GC request to libFuzzers in attempt to avoid parasitic coverage. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 | « test/fuzzer/json.cc ('k') | test/fuzzer/regexp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/fuzzer/parser.cc
diff --git a/test/fuzzer/parser.cc b/test/fuzzer/parser.cc
index be70b439efe45e76f01d663add1d103a4a1f75e6..4035adeaa3414ee020571a76d95368388e7fd6e2 100644
--- a/test/fuzzer/parser.cc
+++ b/test/fuzzer/parser.cc
@@ -38,5 +38,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
info.set_global();
v8::internal::Parser parser(&info);
parser.Parse(&info);
+ isolate->RequestGarbageCollectionForTesting(
+ v8::Isolate::kFullGarbageCollection);
return 0;
}
« no previous file with comments | « test/fuzzer/json.cc ('k') | test/fuzzer/regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698