diff options
Diffstat (limited to 'compiler/image_writer.h')
-rw-r--r-- | compiler/image_writer.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/compiler/image_writer.h b/compiler/image_writer.h index f204b28380..0cb6aea9b2 100644 --- a/compiler/image_writer.h +++ b/compiler/image_writer.h @@ -149,16 +149,17 @@ class ImageWriter FINAL { void RecordImageAllocations() SHARED_REQUIRES(Locks::mutator_lock_); // Classify different kinds of bins that objects end up getting packed into during image writing. + // Ordered from dirtiest to cleanest (until ArtMethods). enum Bin { - // Likely-clean: - kBinString, // [String] Almost always immutable (except for obj header). + kBinMiscDirty, // Dex caches, object locks, etc... + kBinClassVerified, // Class verified, but initializers haven't been run // Unknown mix of clean/dirty: kBinRegular, - // Likely-dirty: + kBinClassInitialized, // Class initializers have been run // All classes get their own bins since their fields often dirty kBinClassInitializedFinalStatics, // Class initializers have been run, no non-final statics - kBinClassInitialized, // Class initializers have been run - kBinClassVerified, // Class verified, but initializers haven't been run + // Likely-clean: + kBinString, // [String] Almost always immutable (except for obj header). // Add more bins here if we add more segregation code. // Non mirror fields must be below. // ArtFields should be always clean. |