Avoid unnecessary copy of dex_gc_map.

Change-Id: I8a7209d92aeee853f6a4e9e9bb0e094c5acd5e05
A char array copy optimization (art).

- Based on measurements, copy char by char for arrays of length <= 64.
- With this change, the Ritz MemAllocBench got ~25% faster on Nexus 4
  and ~20% faster on host.
- This change only handles arraycopy calls in the core libraries and
  char arrays with the rest future work.

Bug: 7103825

Change-Id: If536f9ea68ecf277b604199130d2060c446f640c
Fix detection of art::Thread::Current()

Signed-off-by: Paul Beeler <pbeeler80@gmail.com>
Revert "Fix NewLocalRef, NewGlobalRef to handle cleared weak globals."

This reverts commit 1e3087318b009f218dd504df9434b652b7efa4d1.
Fix pthread support

Signed-off-by: Paul Beeler <pbeeler80@gmail.com>