Fix relocate in place to handle arbitrary app image layout
Previously the relocation had bugs where it would not work correctly
if the iftable was after the class since the object arrays would not
yet be updated to be the relocated address when we went through them
to fixup the ArtMethod pointers.
Also fixes a bug where the superclass of a class could not be
updated when we walk through it for visiting instance fields of
Changed RelocateInPlace to use a simplier single pass approach.
(cherry picked from commit 564289c753cbe3521f9523b350bd713c1fe2fbd4)
2 files changed