diff options
Diffstat (limited to 'runtime/oat_file_assistant.h')
| -rw-r--r-- | runtime/oat_file_assistant.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/runtime/oat_file_assistant.h b/runtime/oat_file_assistant.h index f781532b14..7b45bca946 100644 --- a/runtime/oat_file_assistant.h +++ b/runtime/oat_file_assistant.h @@ -30,6 +30,12 @@ namespace art { +namespace gc { +namespace space { +class ImageSpace; +} // namespace space +} // namespace gc + // Class for assisting with oat file management. // // This class collects common utilities for determining the status of an oat @@ -163,6 +169,9 @@ class OatFileAssistant { // the OatFileAssistant object. std::unique_ptr<OatFile> GetBestOatFile(); + // Open and returns an image space associated with the oat file. + gc::space::ImageSpace* OpenImageSpace(const OatFile* oat_file); + // Loads the dex files in the given oat file for the given dex location. // The oat file should be up to date for the given dex location. // This loads multiple dex files in the case of multidex. @@ -214,6 +223,9 @@ class OatFileAssistant { bool OatFileNeedsRelocation(); bool OatFileIsUpToDate(); + // Return image file name. Does not cache since it relies on the oat file. + std::string ArtFileName(const OatFile* oat_file) const; + // These methods return the status for a given opened oat file with respect // to the dex location. OatStatus GivenOatFileStatus(const OatFile& file); |