Update ElfWriterMclinker for klp

(cherry picked from commit a6263af9aea65c65744bdd845fed68c4814e9514)

Change-Id: I3eb9fee8afb1ef12aae4c87770882afee637971d

Conflicts:
	runtime/Android.mk
Fix X86Mir2Lir::LoadBaseIndexedDisp causing SEGV

If you are loading an 'array' long/double value, the generated code
could cause a SEGV, because the destination for the first load is the
same as the index register.  The case for the base register being the
same as the destination was handled, but not the index register.

With this change, Calculator properly runs on the emulator.

Change-Id: Ib7e652938cdc9e127fb80ee2f541a4225a5e9ab7
Signed-off-by: Mark Mendell <mark.p.mendell@intel.com>
Fix test-art-host to work with latest build project that does not set LOCAL_MODULE_PATH

Change-Id: I75034005d77c6e6a901ca327d7b5ea348cff23dc

Conflicts:
	test/Android.mk
Disable LOCAL_DEX_PREOPT for non-default LOCAL_DEX_PREOPT_IMAGE

Change-Id: Id5634250422138195218463e731b2d3772cba48f
art: PRODUCT_DEX_PREOPT_IMAGE_IN_DATA

(cherry picked from commit 483236b6662f6671e4fd31279500af4f196e0ad3)

Change-Id: I0f668dd8e3193f7d00618ff3d4535f39f5744dfd

Conflicts:
	build/Android.oat.mk

Conflicts:
	build/Android.oat.mk
Remove boot.art phony target

Change-Id: Idb1e22828567fa2c89c2e0057d5bc65a70ba2f32

Conflicts:
	build/Android.oat.mk

Conflicts:
	build/Android.oat.mk
Bump oat file version due to apparent recent code/runtime interface change

Change-Id: I1fe5a9ce388eed8f2e7ae6fdaa47473223a33f1c

Conflicts:
	runtime/oat.cc

Conflicts:
	runtime/oat.cc
Fix a large object space issue with the GSS collector.

Objects in the large object space weren't properly collected because
large objects on the allocation stack weren't copied from the live set
to the marked set.

(Cherrypick commit c7c9fdff117cd53a12aaefb0f5bc9b3245de6a02 from master.)

Bug: 12553120
Bug: 11650816
Change-Id: Ib67394eb6de0520fe215c9e6e6988a7dd59cdd48

Conflicts:
	runtime/gc/collector/semi_space.cc
Remove jdwpspy.

Change-Id: Ic9814dadcf1ccf46e280bddde0dffbef8438e48d

Conflicts:
	Android.mk
	tools/Android.mk
Bionic has <sys/ucontext.h> now.

Change-Id: I7b97df04204b22e8976b64bf93af72a311ddb0e9
Add property to disable sampling profiler.

This is to enable power measurements to be performed without
the profiler running.  The default is off (no profiler).

To enable the profiler:

adb shell setprop dalvik.vm.profiler 1

Change-Id: I983f2ffcf6c2c7bb8e29f0610fe259f3d56a4b1d

Conflicts:
	runtime/profiler.cc
Enable debug build of dex2oatd on host

ART_BUILD_DEBUG is being ignored by the host build of dex2oatd.
This commit simple fixes what looks like a copy & paste error.

Change-Id: Ifb256df2c1f2be42032d1687e1740470f7cf5144
Signed-off-by: Stuart Monteith <Stuart.Monteith@arm.com>
Fix dump-oat-boot to work with new build location by supplying explict host-prefix

Change-Id: I6b44dbae63dc8fbc26473da5ee1649d725e44d57

Conflicts:
	Android.mk
Fix a race condition in RosAlloc.

Fix a race condition in RosAlloc between RosAlloc::BulkFree() and
RosAlloc::RevokeThreadLocalRuns() with regard to bulk_free_bit_map.

Change-Id: I128917d5bdfe2dab604174ca4cbe228282578b8a
Signed-off-by: Serguei Katkov <serguei.i.katkov@intel.com>
Bug: 12592026

Conflicts:
	runtime/gc/allocator/rosalloc.cc
	runtime/gc/allocator/rosalloc.h
Add missing SIRT to CreateArrayClass.

component_type was not guarded by a SIRT. This meant that it could
point to a stale object if AllocClass caused a GC.

Bug: 12875306
Change-Id: I387aa53cf461349b183360c37ff69bffbfe54041
Fix --compiler-backend usage example

Change-Id: I2ebefe57e94d6a8103c71e86f7c6a302b7107fc4
Add intrinsics for Memory peek/poke.

Add intrinsics for single memory access (non-array)
peek/poke methods in libcore.io.Memory.

Change-Id: I5d66a5b14ea89875d8afb8252eb293f7d637b83f
Fix unaligned Memory peek/poke intrinsics.

Change-Id: Id454464d0b28aa37f5239f1c6589ceb0b3bbbdea
Fix typo in duplicate condition

Bug: https://code.google.com/p/android/issues/detail?id=61768
Change-Id: I65b85de1d942c5bd0dfd6a8f7b67e157c066b9f6
Update ART tests to handle new System.gc behavior

Changed calls from System.gc to Runtime.getRuntime.gc where it was
necessary.

Required for:
https://android-review.googlesource.com/#/c/80253/

Change-Id: I2b0622585da54229a6248e95d40134b6d18598a9