Add two more GC parameter interfaces

One is to set idealHeapFree and the other is to set concurrentStart

Change-Id: I12056f5ffc8e7e633114be3f90d40223619b5d0b
Merge branch 'jb-release' of https://android.googlesource.com/platform/libcore into aosp
Improve HttpResponseCache performance.

Avoid writing to HttpResponseCache.CacheRequestImpl.cacheOut
one byte at a time via inefficient FilterOutputStream write.

Mirrored ics commit from: http://review.cyanogenmod.com/#/c/19565/

Change-Id: Id72e54ca54776af0598b4b952dd40304418c1c50
Performance improvements: DiskLruCache, HttpResponseCache.

Add StrictLineReader for efficient reading of lines
consistent with Streams.readAsciiLine(). Use this to improve
DiskLruCache.readJournal() and initialization of
HttpResponseCache$Entry from InputStream.

Change-Id: I1fa1fdd4f2d89d508b0b3a625b27b496aab33d7f
See: https://android-review.googlesource.com/#/c/41348/
Merge branch 'jb-release' of https://android.googlesource.com/platform/libcore into aosp
Fix a native memory leak in SimpleDateFormat cloning.

We didn't use the regular finalization idiom in NativeDecimalFormat because
Formatter used to create a lot of these objects, and we wanted to be able to
close them manually rather than clogging up the GC. We've since rewritten
the Formatter code so this is no longer relevant, but we left the finalization
in the wrong class.

Tested with a "while (true) sdf.clone();" loop and ps(1).

Bug: http://code.google.com/p/android/issues/detail?id=37607
Change-Id: I0c435edf8c1bced00ebf04bd7187883344e971e7
Manually inline StrictMath.min(JJ) and StrictMath.max(JJ).

Also add new intrinsic tests.

Bug: 7146208
Change-Id: Ic454c8c5b218c51ce1c21f0c11163455392b4e72
Increment OpenSSLKey EVP_PKEY reference when it is selected for use with SSL_use_PrivateKey

Bug: 6866852
Bug: http://code.google.com/p/android/issues/detail?id=35326

(cherry-picked from 1f9fe21b93f1d1ee44a325629a05ee4f476e5f6a)

Change-Id: I4e995de38414a7841bca0e0bba7d15b01c3bffd9
Merge "Increment OpenSSLKey EVP_PKEY reference when it is selected for use with SSL_use_PrivateKey" into jellybean
Merge branch 'jb-mr0-release' of https://android.googlesource.com/platform/libcore into aosp-merge
Revert "Add two more GC parameter interfaces"

This reverts commit ebeb9f27c92843caa75b3efdcea091516521c9a0.
Merge branch 'jb-mr1-release' of https://android.googlesource.com/platform/libcore into mr1

Change-Id: I19ebeda37b4c3efa42f91ceb5d366ddccd699249
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
Use EmptyArray.STRING in Splitter.fastSplit().

This is a minor cleanup after
  https://android-review.googlesource.com/47964

Change-Id: Id8de6c09f3397b044082c275095ff7a7a43185f9
Fix compilation of Enum on JDK 7

Change-Id: I2e58b6a527e4ef1fc7ed3359b8aea88d01a031fb
Merge remote-tracking branch 'origin/cm-10.1' into cm-10.1-linaro
Merge tag 'android-4.2.2_r1' of https://android.googlesource.com/platform/libcore into 1.1

Android 4.2.2 release 1
Merge remote-tracking branch 'origin/cm-10.1' into cm-10.1-linaro