Fix byte_cas to work on non-word aligned addresses

(cherry picked from commit 1279d12eb94b7664fc839d4ef7f30c7d6b20e603)

Change-Id: I307f65f20609bca8ec9c9f9a0ea4725c7ab8ad74
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
Fix host-run-test-jar to be legal for /bin/sh

At least on my machine, /bin/sh complains about the [[ line.
Rewrite as a standard shell 'if'

Change-Id: I68efc4ceab8e2eb5636fa04ce8877883a4d76998
Signed-off-by: Mark Mendell <mark.p.mendell@intel.com>
Fix SEGV when dumping MIR CFG

I turned on kDebugDumpCFG to try to dump the CFGs, and I found
that they caused a segmentation violation.  The problem was that
the orig_sreg was -1, and IsConst then blew up.

Change-Id: Ib9acda0b11ce486e878ef2ccfae3b1bc1f82fdfb
Signed-off-by: Mark Mendell <mark.p.mendell@intel.com>
Fix null argument handling during invoke from JDWP.

Fix a crash when passing null argument to a JDWP invoke.

Change-Id: I167f93f3a411f0de8458db3ba5bed3169d557ee9
Fix Mir2Lir::AllocFreeTemp() to return -1 on failure.

Change-Id: I190de54de347fe3f4c9bcd07b2117ad91ea5c9a3
Fix incorrect IsHeapAddress in jni entrypoints.

The behaviour of IsHeapAddress had changed in the compaction CL
to not include nullptr as a valid heap address.

Bug: 11982013
Change-Id: I2847f71ca6775210ea4de8ede8b9ee8c14c55228
Fix histogram test.

The test compares outputted strings for some reason. Forgot to run
it earlier.

Change-Id: I9eed08350d0122614cb2e18ca7195e5dc0832da6
Temporary fix for target tests.

Avoid a race in pthread_join which causes us to free the memmap
stack before it is done being used.

Bug: 11693195
Change-Id: Ic453359cebc7395e10e83319aa25528b8d1f3882
Fix clean-oat

Change-Id: I96ba59794e50f630aaa06d226b1048000b1b6188
4-byte align 64-bit values in Get/Set Double/Long for GCC 4.8.

Bug: 10837416
Change-Id: Ibb562407d81c2085666ae8824e7570f22e56eaa7
Include <algorithm> to have access to replace function

Change-Id: Ibd776ec954164e876797b73f0343d920ade46dea
Signed-off-by: zwliew <zhaoweiliew@gmail.com>