Synchronize calls to Matcher.closeImpl.

Bug: 7603088
Change-Id: I4ed42342438e4e74eecd2e4013be0c85e9b2ef29
Add detail messages to all remaining NullPointerExceptions.

I've left java.util.concurrent alone, since that's upstream code.

Change-Id: I349960aaddb78e55d4c336b58b637009db69ff98
Fix AbstractCollection.toArray.

ConcurrentHashMap.values().toArray() could throw if the map was being modified.
WeakHashMap had a workaround, but AbstractCollection is supposed to just do the
right thing.

Bug: http://code.google.com/p/android/issues/detail?id=36519
Bug: https://issues.apache.org/jira/browse/HARMONY-6681
Change-Id: I749fe615edbea6f8285bfe6804c972e8bdcf2530
Always throw a SocketException from isConnected.

Either a SocketTimeoutException if it's a timeout, or a ConnectException
otherwise.

Bug: 6819002
Change-Id: I06da843bd4dd9a3492f9f1ec3e6cb36fe86ae776
Add support for Libcore.os.exec*()

Add Libcore support for execv() and execve().
This allows java programs to execute other programs
without having to write jni wrappers.

Change-Id: I82ddc069b5812ebd40f06b7f65ce173d496e0597
Fix Method.equals.

The old Method.equals implementation was ridiculously slow, and
incorrect too if you have the same-named class loaded by different
ClassLoaders.

Bug: https://code.google.com/p/android/issues/detail?id=37380
Change-Id: Ife93f61b55391d9a7bcbe6492864776df88bbfd5
use longs instead of ints to store pointers in ExpatParser

This allows the class to be used on 64-bit VMs.  I've also changed
ExpatAttributes to match.

Change-Id: I4340040085b517b6f713623755f4647e190a68a9
Add Unsafe.allocateInstance.

At the moment, mockers are writing dalvik-specific code that pokes
around with our internals and breaks when we change stuff. They're
also supporting Unsafe so they can run on the RI. Everyone's better
off if we just implement the missing Unsafe call.

Bug: 8297640
Change-Id: Ib647e27d920be548009f26ced3b74bad7400a590
Revert "use longs instead of ints to store pointers in ExpatParser"

This reverts commit ac9c4c3676a85d103057a585bcc9dc04389a333e.
GC triggering performance optimizations

Copy the correct starting heap size at process init.
Interfaces to set GC/managed heap parameters.

Change-Id: If0b1637291e77f9781ae6249c5d0257f659253ca
Merge remote-tracking branch 'github/jellybean' into jellybean