OSDN Git Service

Filling hole between subclass and superclass.
authorFred Shih <ffred@google.com>
Tue, 26 Aug 2014 00:24:27 +0000 (17:24 -0700)
committerFred Shih <ffred@google.com>
Thu, 28 Aug 2014 19:00:07 +0000 (12:00 -0700)
commit381e4ca3cc9fc6405ff20e1de873a56d78d51923
treed526a0a141f6141c941cc6862be30f64eaa4735c
parenta0a0da29e7d4d5c1bd471c49f1a4b6ec98fb767a
Filling hole between subclass and superclass.

Subclasses no longer need to be 4-byte aligned at the end. Any gaps
between a superclass and its subclasses will be filled in by halfword
or byte fields if possible.

Refactored the alignment and shuffling methods to use a priority queue
in order to reduce the amount of logic when laying out objects.

Change-Id: Ifed71af534e0c5e77bb14555c44b973fe66df6da
runtime/class_linker.cc
runtime/class_linker.h
runtime/mirror/class-inl.h