summaryrefslogtreecommitdiff
path: root/runtime/oat_file_assistant.h
diff options
context:
space:
mode:
author Calin Juravle <calin@google.com> 2017-08-03 17:07:13 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-08-03 17:07:13 +0000
commitcda934e3f8c24d76cc3b1b64e24dd9b865cb500f (patch)
treeab8b7b8539a7f3fafc56a42242bf88ac3653441a /runtime/oat_file_assistant.h
parent9a19be9c170e094c3e5ef991d018b476008112c5 (diff)
parent84f82b9972ec29bd05b1575ae6d638255be2f285 (diff)
Merge changes Iba4cb348,I51c43230,Iae90c4a1,Ica43ee8a
* changes: Stop using the runtime classpath in dex2oat Do not pass --runtime-arg -classpath in dex2oat_test Do not pass --runtime-arg -classpath to dex2oat in dex fuzz Pass the class loader context to dex2oat when optimizing at runtime
Diffstat (limited to 'runtime/oat_file_assistant.h')
-rw-r--r--runtime/oat_file_assistant.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/runtime/oat_file_assistant.h b/runtime/oat_file_assistant.h
index 320aa4f860..5eec943689 100644
--- a/runtime/oat_file_assistant.h
+++ b/runtime/oat_file_assistant.h
@@ -185,12 +185,17 @@ class OatFileAssistant {
// profile_changed should be true to indicate the profile has recently
// changed for this dex location.
//
+ // If the dex files need to be made up to date, class_loader_context will be
+ // passed to dex2oat.
+ //
// Returns the result of attempting to update the code.
//
// If the result is not kUpdateSucceeded, the value of error_msg will be set
// to a string describing why there was a failure or the update was not
// attempted. error_msg must not be null.
- ResultOfAttemptToUpdate MakeUpToDate(bool profile_changed, std::string* error_msg);
+ ResultOfAttemptToUpdate MakeUpToDate(bool profile_changed,
+ const std::string& class_loader_context,
+ std::string* error_msg);
// Returns an oat file that can be used for loading dex files.
// Returns null if no suitable oat file was found.
@@ -389,7 +394,8 @@ class OatFileAssistant {
};
// Generate the oat file for the given info from the dex file using the
- // current runtime compiler options and the specified filter.
+ // current runtime compiler options, the specified filter and class loader
+ // context.
// This does not check the current status before attempting to generate the
// oat file.
//
@@ -398,6 +404,7 @@ class OatFileAssistant {
// attempted. error_msg must not be null.
ResultOfAttemptToUpdate GenerateOatFileNoChecks(OatFileInfo& info,
CompilerFilter::Filter target,
+ const std::string& class_loader_context,
std::string* error_msg);
// Return info for the best oat file.