OSDN Git Service

Fix string compression, add tests.
authorVladimir Marko <vmarko@google.com>
Mon, 17 Oct 2016 13:45:29 +0000 (14:45 +0100)
committerVladimir Marko <vmarko@google.com>
Wed, 19 Oct 2016 09:47:51 +0000 (10:47 +0100)
commit9c9883bb03de05783d3e24dfc00dee4d03786fe3
treed765d341d46ad88c9bb8effdcfad9493dc9adb27
parentfc7798ba8201ae44c5c11384232be7c51afd3727
Fix string compression, add tests.

Fix String.compareTo() for interpreter; memcmp() does not
return the required result (only the right sign).
Fix x86-64 stub where the assembler silently accepted and
generated bad code for out-of-range JECXZ.
Add extensive tests for String.equals(), String.compareTo()
and String.indexOf().

Bug: 31040547
Test: Run ART test suite including interpreter tests on host and Nexus 9.
Test: Ditto with string compression enabled.
Change-Id: I21b7a74da8a577c8fbaf8d9225f048550236d414
runtime/arch/x86_64/quick_entrypoints_x86_64.S
runtime/mirror/string.cc
test/021-string2/src/Main.java