libcore/luni: Use -fno-strict-aliasing for now

This will be reverted once we have a proper fix.

Change-Id: Iab4663a5f96ff9770371f54697aa872260037ac1
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Performance improvement in DiskLruCache.readJournalLine().

Speed up DiskLruCache.readJournalLine() by avoiding memory
allocations from String.split(). For non-CLEAN lines, we
avoid using String.split() altogether and find separators
explicitly, for CLEAN lines we defer to String.split() and
we optimize the underlying Splitter.fastSplit() overload to
avoid unnecessary allocations itself.

On a test journal with 7347 entries (1099 CLEAN) this saves
about 45-50% from ~250ms. On a test journal with 272 entries
(86 CLEAN) this saves about 35-40% from ~10ms. Measured
loadJournal on GN in a tight loop (file contents cached).

If used without the other DiskLruCache.readJournalLine()
improvements, the Splitter.fastSplit() optimization alone
would provide about 60% of the savings. It should also
speed up other code outside the DiskLruCache.

Change-Id: I1d6c6b13d54d8fcba3081f2bb9df701b58f5e143
Track redundant ops when opening the cache.

See https://github.com/JakeWharton/DiskLruCache/issues/28

Change-Id: I4815aed3b40f0d2599ff12a42853a4947feffbca
Manually update the libcore native code.

Cherry-picking all the individual tiny cleanups from the internal branch was
too hard.

Change-Id: Ib97643d3502295685390854c9edd97c93c4c2ecf
Merge remote-tracking branch 'aosp/jb-mr1.1-release' into jellybean
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
Fix BigInteger test failures.

Bug: 2943474
Change-Id: Ia06bcf3025f525a954d9b918669d09531631a266

Conflicts:
	harmony-tests/src/test/java/org/apache/harmony/tests/java/math/BigIntegerConstructorsTest.java
	harmony-tests/src/test/java/tests/api/java/math/BigIntegerTest.java
Some changes added to compile and run with Java 6 and Java 7.

  - correction of errors with Javac 6:
    - fields accessibility of type variable (jls 4.4).

Change-Id: I202b8767e9d4c6642e1e15e9a0570de764db0b4c
Signed-off-by: Jerome Pilliet <pilliet@univ-mlv.fr>
NativeCrypto: handle X.509 serial number 0

There is no need to try to convert numbers that are of zero length
because they'll be zero anyway. Returning NULL in this instance caused a
crash in X.509 code since it immediately tried to pass it to BigInteger
which through a NullPointerException.

(cherry picked from commit adadc611f606e693ed30b2e495326cb32968153d)

Bug: 9297758
Change-Id: I719ca7b8f086937ee25094bfe981987def855744
Fix zone.tab parsing.

Not every zone.tab line has a comment.

Bug: 9327819

(cherry picked from commit b2181542090a8ff8801331e6ad8f9afcb62da8b3)

Change-Id: I36d48321e91ed18d1434bda8c33a395349bf5608