1. 02 Dec, 2009 1 commit
    • Andy McFadden's avatar
      Enable CheckJNI on core tests. · 50c1c238
      Andy McFadden authored
      This adds -Xcheck:jni to the core test command line.  The tests will run
      a bit more slowly when native code is involved, but I don't think we're
      doing any performance testing in here, and the extra JNI testing is
      useful.
      50c1c238
  2. 01 Dec, 2009 4 commits
  3. 30 Nov, 2009 3 commits
    • Android (Google) Code Review's avatar
      Merge change I9d0bdb0b · 3c84db79
      Android (Google) Code Review authored
      * changes:
        Update docs for debugger change.
      3c84db79
    • Andy McFadden's avatar
      Update docs for debugger change. · 130a4b07
      Andy McFadden authored
      Update notes re: breakpoint implementation (changed Oct 28, 96516932).
      130a4b07
    • Elliott Hughes's avatar
      More java.io.File improvements. · c5c9c667
      Elliott Hughes authored
      Three themes to this change: not making unnecessary native calls (like the
      pointless "exists" check in canWrite), being consistent in our
      treatment of the empty path, and removing unnecessary cruft from the native
      code.
      
      I'm sure there must be a better implementation for handling the empty
      path (the few methods for which it *isn't* invalid should be the special
      cases, not every single method), but in this patch I'm just interested
      in correctness.
      
      With this patch, we pass the jtreg empty path test (which we previously
      failed) and we pass my more complete test (added to FileTest.java in this
      patch).
      
      Bug: 2281992
      c5c9c667
  4. 26 Nov, 2009 1 commit
    • Elliott Hughes's avatar
      Fix File.isHidden and File.listRoots. · 87415b15
      Elliott Hughes authored
      Not only were the old implementations of these methods over-complicated, they
      were both incorrect. We now pass all our existing tests plus the jtreg tests.
      
      Bug: 2281992
      87415b15
  5. 25 Nov, 2009 2 commits
  6. 24 Nov, 2009 17 commits
  7. 23 Nov, 2009 7 commits
    • Android (Google) Code Review's avatar
      Merge change I4bd6f817 · 820172a7
      Android (Google) Code Review authored
      * changes:
        Replaced primitive sorts with Iaroslavski, Bentley, and Bloch's Dual Pivot Quicksort. The originals were based on Bentley and McIlroy's "Engineering a Sort Function." The original floating point sorts suffered from poor performance due to the use of a naive comparison function.  In round numbers, the new version is 1.5x as fast as the old one on integers and twice as fast on floating point numbers (on the latest Android build running on Sholes).  On some data sets (e.g., nearly sorted data, the new version is substantially faster.
      820172a7
    • Joshua Bloch's avatar
      Replaced primitive sorts with Iaroslavski, Bentley, and Bloch's Dual Pivot Quicksort. · 2626284e
      Joshua Bloch authored
      The originals were based on Bentley and McIlroy's "Engineering a Sort Function."
      The original floating point sorts suffered from poor performance due to the use
      of a naive comparison function.  In round numbers, the new version is 1.5x as fast
      as the old one on integers and twice as fast on floating point numbers (on the
      latest Android build running on Sholes).  On some data sets (e.g., nearly sorted data,
      the new version is substantially faster.
      
      Now, with added performance tweaks from Jesse and Bob!! With these tweaks, the sort
      is 70% faster than the original sort on integers and over twice as fast on doubles.
      None of the optimizations are Dalvik-specific, and we may be able to make it even
      faster by adding Dalvik-specific optimizations.
      
      Also added beefier tests.
      2626284e
    • Elliott Hughes's avatar
      Add a comment. · b6317957
      Elliott Hughes authored
      b6317957
    • Elliott Hughes's avatar
      Explicitly ignore non-IPv4/IPv6 addresses from IFA_ADDRESS. · e097295a
      Elliott Hughes authored
      I don't think this can happen (some other calls return hardware addresses too,
      but I've never seen a hardware address in an IFA_ADDRESS message), but netlink
      is badly documented, and it's better to be safe than sorry.
      e097295a
    • Bill Buzbee's avatar
      2e77616c
    • Bill Buzbee's avatar
      Jit: Misc fixes, move_exception, blocking mode, self-cosim · 025848e3
      Bill Buzbee authored
      OP_MOVE_EXCEPTION handler was neglecting to reset.
      Blocking mode was failing to signal empty queue in some cases
      Self-cosim was including operations in traces that can't be done twice
      Added OP_MOVE_EXCEPTION to self cosim's no-replay ops (it has side effects)
      Restored threshold of 1 to self-cosim (now able to boot device with self-cosim)
      When threshold < 6, disable 2nd-level translation filter
      025848e3
    • Ben Cheng's avatar
      Restructure the codegen to make architectural depedency explicit. · ce0e2ad5
      Ben Cheng authored
      The original Codegen.c is broken into three components:
      
      - CodegenCommon.c (arch-independend)
      - CodegenFactory.c (Thumb1/2 dependent)
      - CodegenDriver.c (Dalvik dependent)
      
      For the Thumb/Thumb2 directories, each contain the followin three files:
      
      - Factory.c (low-level routines for instruction selections)
      - Gen.c     (invoke the ISA-specific instruction selection routines)
      - Ralloc.c  (arch-dependent register pools)
      
      The FP directory contains FP-specific codegen routines depending on
      Thumb/Thumb2/VFP/PortableFP:
      
      - Thumb2VFP.c
      - ThumbVFP.c
      - ThumbPortableFP.c
      
      Then the hierarchy is formed by stacking these files in the following top-down
      order:
      
      1 CodegenCommon.c
      2 Thumb[2]/Factory.c
      3 CodegenFactory.c
      4 Thumb[2]/Gen.c
      5 FP stuff
      6 Thumb[2]/Ralloc.c
      7 CodegenDriver.c
      ce0e2ad5
  8. 21 Nov, 2009 5 commits