summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2015-10-16 11:23:41 +0100
committer Vladimir Marko <vmarko@google.com> 2015-10-19 16:19:40 +0100
commit06d7aaa75f3d6d21fe904d54208b28e486673d97 (patch)
tree017a3bdea33e06e8b4356cdf419df9002ec2c01d /compiler
parent3ae313d9bc64eaa0c791452dd972654eae979496 (diff)
Clean up OatFile.
In Setup(), avoid reading beyond the end and use the %zu format specifier instead of %zd for size_t output. Make the .bss section pointers non-const. Change-Id: Ic8f066effe8037b552d8e911c6a5d17370d79ff4
Diffstat (limited to 'compiler')
-rw-r--r--compiler/oat_writer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/oat_writer.h b/compiler/oat_writer.h
index a82d09eedd..d6cb65bd64 100644
--- a/compiler/oat_writer.h
+++ b/compiler/oat_writer.h
@@ -281,7 +281,7 @@ class OatWriter {
// Offsets of the dex cache arrays for each app dex file. For the
// boot image, this information is provided by the ImageWriter.
- SafeMap<const DexFile*, size_t> dex_cache_arrays_offsets_;
+ SafeMap<const DexFile*, size_t> dex_cache_arrays_offsets_; // DexFiles not owned.
// Offset of the oat data from the start of the mmapped region of the elf file.
size_t oat_data_offset_;