Fix overrun bug in MapBootImageMethods
In the case an ArtMethod spanned across page_end, the logic would
corrupt the memory in the next section when calling
SetEntryPointFromQuickCompiledCode. This cause errors in the boot
image profile saving since that's one of the only places where boot
image ArtMethods are unconditionally visited.
Bug: 145686711
Bug: 139883463
Test: reboot the device 10+ times and validate there are no crashes for
Test: boot image profiling configuration.
Change-Id: I3a459d3b00b17f761ae703313f5c8f0c40ee3662
1 file changed