summaryrefslogtreecommitdiff
path: root/runtime/class_linker.h
diff options
context:
space:
mode:
author Ioana-Teodora Isar <ioanaisar@google.com> 2024-09-03 15:37:49 +0000
committer Ioana-Teodora Isar <ioanaisar@google.com> 2024-09-17 13:32:04 +0000
commit3424f3e76b09ce7d81dd9d1126d8d69a3e26cd1e (patch)
treef77ff2b15ed2069e5e44550244e4f607483fe8ff /runtime/class_linker.h
parent4dad0f3614093667a140963535df5780fec7480b (diff)
Improve the GC strategy for the class verification fuzzer
Run the GC once every 100 iterations on the device and on host. The number of executions per second has increased by over 3 times in both cases. Test: Build the fuzzer for host and device. Run with the same “-seed=2” flag and for the same time. Bug: 352721437 Change-Id: I57ad7d7a660ad1a5db0058db042e917d805b273e
Diffstat (limited to 'runtime/class_linker.h')
-rw-r--r--runtime/class_linker.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/class_linker.h b/runtime/class_linker.h
index bcc0986d18..a60bafd939 100644
--- a/runtime/class_linker.h
+++ b/runtime/class_linker.h
@@ -1518,6 +1518,7 @@ class ClassLinker {
friend class linker::ImageWriter; // for GetClassRoots
friend class JniCompilerTest; // for GetRuntimeQuickGenericJniStub
friend class JniInternalTest; // for GetRuntimeQuickGenericJniStub
+ friend class VerifyClassesFuzzerHelper; // for FindDexCacheDataLocked.
friend class VMClassLoader; // for LookupClass and FindClassInBaseDexClassLoader.
ART_FRIEND_TEST(ClassLinkerTest, RegisterDexFileName); // for DexLock, and RegisterDexFileLocked
ART_FRIEND_TEST(mirror::DexCacheMethodHandlesTest, Open); // for AllocDexCache