From 0b1c341d2d89a483142cd14bdeb4650ab00184f1 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Fri, 14 Jul 2017 18:23:25 -0700 Subject: Support class unloading in dex2oat for quicken multidex Support class unloading for the quicken compilation filter. This will be enabled in a follow up CL. Added a test that compares with and without unloading. The way that it tests this is by adding an output app image. Having an app image disables the unloading. This test also covers that app images don't change the odex (currently). Added a test for the assumed verified logic. Bug: 63467744 Test: test-art-host Test: test/testrunner/testrunner.py --interpreter --host -j40 Change-Id: I1e8a862c6f089c06c58aa0c846797e4c24bd072c --- runtime/compiler_callbacks.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'runtime/compiler_callbacks.h') diff --git a/runtime/compiler_callbacks.h b/runtime/compiler_callbacks.h index 806653a265..c51bb5e176 100644 --- a/runtime/compiler_callbacks.h +++ b/runtime/compiler_callbacks.h @@ -22,6 +22,8 @@ namespace art { +class CompilerDriver; + namespace verifier { class MethodVerifier; @@ -49,6 +51,13 @@ class CompilerCallbacks { virtual verifier::VerifierDeps* GetVerifierDeps() const = 0; virtual void SetVerifierDeps(verifier::VerifierDeps* deps ATTRIBUTE_UNUSED) {} + virtual bool CanAssumeVerified(ClassReference ref ATTRIBUTE_UNUSED) { + return false; + } + + virtual void SetDoesClassUnloading(bool does_class_unloading ATTRIBUTE_UNUSED, + CompilerDriver* compiler_driver ATTRIBUTE_UNUSED) {} + bool IsBootImage() { return mode_ == CallbackMode::kCompileBootImage; } -- cgit v1.2.3-59-g8ed1b