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
Merge remote-tracking branch 'origin/cm-10.1' into cm-10.1-linaro
Merge remote-tracking branch 'origin/cm-10.1' into cm-10.1-linaro
Merge remote-tracking branch 'origin/cm-10.1' into cm-10.1-linaro
Merge remote-tracking branch 'origin/cm-10.1' into cm-10.1-linaro
Improve java.nio.Buffer.toString.

Bug: https://code.google.com/p/android/issues/detail?id=53637
Change-Id: I823662b39cb48b5f4456f4c58269324dfcdc2fd1
Remove dead NioUtils.getDirectBufferAddress.

Change-Id: I764d86db1d74c5daf54cc925a9fc76db15a1107a
Fix BufferedReader.readLine to not read ahead after '\r'.

Bug: 8778372
Change-Id: I789d0ff5498cca48b16bb7b3b363014f7b6bcf95
Fix Derp

Change-Id: I6a9f7d8203c91f854fef64c9acd0e0b04459724b
Fix memory leaks in org_apache_harmony_xml_ExpatParser

The method expandInternedStringBucket(...) creates a new bucket
but the old bucket is never freed, even though the function doc
claims that it does. To solve this problem the old bucket is
freed when the new one has been created successfully.

Also this commit fixes two possible memory leaks when a
jniThrowOutOfMemoryError is thrown, where the internedString
also needs to be freed.

Change-Id: Ic80a35a2b4ec8f93ddc006aca5609a5ffe74d659
Merge remote-tracking branch 'liquid/jb2' into jb2

Conflicts:
	NativeCode.mk

Change-Id: I6e92929107375d20fb99afb182efb3ee0275d182