summaryrefslogtreecommitdiff
path: root/dex2oat/driver/compiler_driver.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2025-02-18 14:04:56 +0000
committer Vladimir Marko <vmarko@google.com> 2025-02-19 08:23:11 +0000
commit0c35b6b7b0f9cd98220f0b291071733e44c97a54 (patch)
tree0d5c7bd51a6458185549032b3b16f11f2d9d9310 /dex2oat/driver/compiler_driver.h
parent0921300b49063fbf49cc8af18a9b1aaff28a3f2e (diff)
dex2oat: Faster .bss and *.rel.ro data collection.
Make this short phase almost 3x faster (36ms -> 13ms), measured for boot image compilation with `--dump-timings` on a test device. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: I270f7712b3fb1982ab561241a1519aa6c461b90b
Diffstat (limited to 'dex2oat/driver/compiler_driver.h')
-rw-r--r--dex2oat/driver/compiler_driver.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/dex2oat/driver/compiler_driver.h b/dex2oat/driver/compiler_driver.h
index db03ab672e..06c81fb7b7 100644
--- a/dex2oat/driver/compiler_driver.h
+++ b/dex2oat/driver/compiler_driver.h
@@ -135,7 +135,11 @@ class CompilerDriver {
ClassStatus GetClassStatus(const ClassReference& ref) const;
bool GetCompiledClass(const ClassReference& ref, ClassStatus* status) const;
+ using CompiledMethodArray = dchecked_vector<Atomic<CompiledMethod*>>;
+ const CompiledMethodArray* GetCompiledMethods(const DexFile* dex_file) const;
+
CompiledMethod* GetCompiledMethod(MethodReference ref) const;
+
// Add a compiled method.
void AddCompiledMethod(const MethodReference& method_ref, CompiledMethod* const compiled_method);
CompiledMethod* RemoveCompiledMethod(const MethodReference& method_ref);