OSDN Git Service

android-x86/dalvik.git
14 years agoMerge "Import outs scanning code. References discovered in the outs section are...
Carl Shapiro [Sun, 2 May 2010 06:35:15 +0000 (23:35 -0700)]
Merge "Import outs scanning code.  References discovered in the outs section are now pinned.  Also, correct dvmHeapSourceContains to return false when called with addresses outside the heap.  This had caused an assert to be tripped in the bitmap code.  This was a divergence in behavior from the original (mark sweep) implementation." into dalvik-dev

14 years agoImport outs scanning code. References discovered in the outs section
Carl Shapiro [Sun, 2 May 2010 05:27:56 +0000 (22:27 -0700)]
Import outs scanning code.  References discovered in the outs section
are now pinned.  Also, correct dvmHeapSourceContains to return false
when called with addresses outside the heap.  This had caused an
assert to be tripped in the bitmap code.  This was a divergence in
behavior from the original (mark sweep) implementation.

Change-Id: Ic735b2f894698ba4fdf26707a6f59c57ca4b0fa9

14 years agoMerge "Use a more meaningful condition to regulate the presence of "outs" scanning...
Carl Shapiro [Sun, 2 May 2010 05:10:08 +0000 (22:10 -0700)]
Merge "Use a more meaningful condition to regulate the presence of "outs" scanning." into dalvik-dev

14 years agoUse a more meaningful condition to regulate the presence of "outs"
Carl Shapiro [Sun, 2 May 2010 03:30:29 +0000 (20:30 -0700)]
Use a more meaningful condition to regulate the presence of "outs"
scanning.

Change-Id: Iabe25ccc1b8b487a66e4f9d30af144c2d1c95c8d

14 years agoInclude stddef.h instead of stdlib.h for size_t definition.
Carl Shapiro [Sun, 2 May 2010 03:08:57 +0000 (20:08 -0700)]
Include stddef.h instead of stdlib.h for size_t definition.

Change-Id: Id3fa2dff0279985ca865caf7e3dfa7b4e77ee345

14 years agoam 0323dfc6: am 385fcfb2: am f2b0c540: Adapt to new location of libcore
Jean-Baptiste Queru [Fri, 30 Apr 2010 22:11:19 +0000 (15:11 -0700)]
am 0323dfc6: am 385fcfb2: am f2b0c540: Adapt to new location of libcore

Merge commit '0323dfc60840dc7a37169892525d02a231344487' into dalvik-dev

* commit '0323dfc60840dc7a37169892525d02a231344487':
  Adapt to new location of libcore

14 years agoam 65975562: am 105dd144: am 0c041d22: Delete libcore, now in its own project
Jean-Baptiste Queru [Fri, 30 Apr 2010 22:11:17 +0000 (15:11 -0700)]
am 65975562: am 105dd144: am 0c041d22: Delete libcore, now in its own project

Merge commit '65975562fd2843fc4bc3d9acbca4d42301f867da' into dalvik-dev

* commit '65975562fd2843fc4bc3d9acbca4d42301f867da':
  Delete libcore, now in its own project

14 years agoam bda07e21: am 11998b33: Adapt to new location of libcore
Jean-Baptiste Queru [Fri, 30 Apr 2010 22:11:14 +0000 (15:11 -0700)]
am bda07e21: am 11998b33: Adapt to new location of libcore

Merge commit 'bda07e21fbc1b471fb077183b689312e0a91c02b' into dalvik-dev

* commit 'bda07e21fbc1b471fb077183b689312e0a91c02b':
  Adapt to new location of libcore

14 years agoam 2b7c1146: am a87b6301: Delete libcore, now in its own project
Jean-Baptiste Queru [Fri, 30 Apr 2010 22:11:12 +0000 (15:11 -0700)]
am 2b7c1146: am a87b6301: Delete libcore, now in its own project

Merge commit '2b7c114648c234baed89cea73d145d814677ccec' into dalvik-dev

* commit '2b7c114648c234baed89cea73d145d814677ccec':
  Delete libcore, now in its own project

14 years agoam 385fcfb2: am f2b0c540: Adapt to new location of libcore
Jean-Baptiste Queru [Fri, 30 Apr 2010 22:08:49 +0000 (15:08 -0700)]
am 385fcfb2: am f2b0c540: Adapt to new location of libcore

14 years agoam 105dd144: am 0c041d22: Delete libcore, now in its own project
Jean-Baptiste Queru [Fri, 30 Apr 2010 22:08:47 +0000 (15:08 -0700)]
am 105dd144: am 0c041d22: Delete libcore, now in its own project

14 years agoam 11998b33: Adapt to new location of libcore
Jean-Baptiste Queru [Fri, 30 Apr 2010 22:08:24 +0000 (15:08 -0700)]
am 11998b33: Adapt to new location of libcore

14 years agoam a87b6301: Delete libcore, now in its own project
Jean-Baptiste Queru [Fri, 30 Apr 2010 22:08:15 +0000 (15:08 -0700)]
am a87b6301: Delete libcore, now in its own project

14 years agoMerge "Merge xml module into luni" into dalvik-dev
Jesse Wilson [Fri, 30 Apr 2010 20:34:21 +0000 (13:34 -0700)]
Merge "Merge xml module into luni" into dalvik-dev

14 years agoam f2b0c540: Adapt to new location of libcore
Jean-Baptiste Queru [Fri, 30 Apr 2010 20:20:39 +0000 (13:20 -0700)]
am f2b0c540: Adapt to new location of libcore

14 years agoam 0c041d22: Delete libcore, now in its own project
Jean-Baptiste Queru [Fri, 30 Apr 2010 20:20:29 +0000 (13:20 -0700)]
am 0c041d22: Delete libcore, now in its own project

14 years agoAdapt to new location of libcore
Jean-Baptiste Queru [Fri, 30 Apr 2010 17:13:34 +0000 (10:13 -0700)]
Adapt to new location of libcore

Change-Id: I602be6c3a9df32b33526158d46b406e4196a577b

14 years agoAdapt to new location of libcore
Jean-Baptiste Queru [Fri, 30 Apr 2010 17:13:34 +0000 (10:13 -0700)]
Adapt to new location of libcore

Change-Id: Ic63de1ef810434dad7e07dcfd8452f1630ec70c5

14 years agoam 0f93168f: Adapt to new location of libcore
Jean-Baptiste Queru [Fri, 30 Apr 2010 19:50:55 +0000 (12:50 -0700)]
am 0f93168f: Adapt to new location of libcore

Merge commit '0f93168feebe941eeb5096a6dc0c7c08bfc1cda8' into dalvik-dev

* commit '0f93168feebe941eeb5096a6dc0c7c08bfc1cda8':
  Adapt to new location of libcore

14 years agoam 7da2e838: (-s ours) Delete libcore, now in its own project
Jean-Baptiste Queru [Fri, 30 Apr 2010 19:50:51 +0000 (12:50 -0700)]
am 7da2e838: (-s ours) Delete libcore, now in its own project

Merge commit '7da2e83857e3da7c1339e0ffdcb66e9e6f07a968' into dalvik-dev

* commit '7da2e83857e3da7c1339e0ffdcb66e9e6f07a968':
  Delete libcore, now in its own project

14 years agoMerge "Minor tweaks." into dalvik-dev
Andy McFadden [Fri, 30 Apr 2010 19:18:28 +0000 (12:18 -0700)]
Merge "Minor tweaks." into dalvik-dev

14 years agoAdapt to new location of libcore
Jean-Baptiste Queru [Fri, 30 Apr 2010 17:13:34 +0000 (10:13 -0700)]
Adapt to new location of libcore

Change-Id: I20885f385cfb325be18c33862b8e4f293a8a6146

14 years agoMerge xml module into luni
Peter Hallam [Fri, 30 Apr 2010 18:10:30 +0000 (11:10 -0700)]
Merge xml module into luni

Change-Id: Icf83d5ee1f7f62de1923a68af3926d311c27ca99

14 years agoMerge "Adapt to new location of libcore" into dalvik-dev
Jean-Baptiste Queru [Fri, 30 Apr 2010 17:22:43 +0000 (10:22 -0700)]
Merge "Adapt to new location of libcore" into dalvik-dev

14 years agoMerge "Delete libcore, now in its own project" into dalvik-dev
Jean-Baptiste Queru [Fri, 30 Apr 2010 17:22:23 +0000 (10:22 -0700)]
Merge "Delete libcore, now in its own project" into dalvik-dev

14 years agoAdapt to new location of libcore
Jean-Baptiste Queru [Fri, 30 Apr 2010 17:13:34 +0000 (10:13 -0700)]
Adapt to new location of libcore

Change-Id: I4ad03a41718d3c30ce4117114f71b07a3d023dde

14 years agoMinor tweaks.
Andy McFadden [Fri, 30 Apr 2010 17:08:55 +0000 (10:08 -0700)]
Minor tweaks.

Leftovers from https://android-git.corp.google.com/g/49613 .

Change-Id: Ife57a36e93a9d7f4d953a88b79ed1d58d6d490cb

14 years agoMerge "HOST_ARCH_VARIANT isn't ever defined, so just use HOST_ARCH as the variant...
Dan Bornstein [Fri, 30 Apr 2010 17:02:09 +0000 (10:02 -0700)]
Merge "HOST_ARCH_VARIANT isn't ever defined, so just use HOST_ARCH as the variant when building the vm for the host." into dalvik-dev

14 years agoDelete libcore, now in its own project
Jean-Baptiste Queru [Fri, 30 Apr 2010 15:13:22 +0000 (08:13 -0700)]
Delete libcore, now in its own project

Change-Id: I0183edc0b48920361a6ea0ffc36fbc4cefb03f5d

14 years agoDelete libcore, now in its own project
Jean-Baptiste Queru [Fri, 30 Apr 2010 15:12:32 +0000 (08:12 -0700)]
Delete libcore, now in its own project

Change-Id: I459e5acceeafc5d60a6cb0ff0958a8080615904a

14 years agoDelete libcore, now in its own project
Jean-Baptiste Queru [Fri, 30 Apr 2010 15:11:17 +0000 (08:11 -0700)]
Delete libcore, now in its own project

Change-Id: I8fccab6d7c9197448a07f660d8b5cd1ee4005a58

14 years agoDelete libcore, now in its own project
Jean-Baptiste Queru [Fri, 30 Apr 2010 15:10:30 +0000 (08:10 -0700)]
Delete libcore, now in its own project

Change-Id: Ibea0a93049e4fe0ae376f5b7647a41e3d548d7a9

14 years agoMerge "Add native method arguments to GC scan." into dalvik-dev
Andy McFadden [Fri, 30 Apr 2010 14:35:20 +0000 (07:35 -0700)]
Merge "Add native method arguments to GC scan." into dalvik-dev

14 years agoHOST_ARCH_VARIANT isn't ever defined, so just use HOST_ARCH as the
Dan Bornstein [Fri, 30 Apr 2010 00:52:22 +0000 (17:52 -0700)]
HOST_ARCH_VARIANT isn't ever defined, so just use HOST_ARCH as the
variant when building the vm for the host.

Change-Id: Ib998772654a8943477249226d8d708f804fc25f3

14 years agoAdd native method arguments to GC scan.
Andy McFadden [Mon, 26 Apr 2010 19:49:23 +0000 (12:49 -0700)]
Add native method arguments to GC scan.

We want to identify arguments passed to native methods (internal native
or JNI) so that we can tell the GC to leave those blocks alone.  The
alternative is to add explicit "add to tracked ref list" calls to a
bunch of internal natives and to the JNI call bridge.

We walk through the shorty signature to make this a precise scan.

Since something is now looking at the method arguments, it was necessary
to actually set a value in the argument area on the stack for the "fake"
native method entry points used for the main thread and for externally-
created threads that are later attached to the VM.

(The implementation is currently #ifdefed-out, since there's nothing
for it to do yet.)

Change-Id: I2143ea541bc2fc50e81d36ad1c251b041553eaef

14 years agoUse unsigned comparison for stack pointers.
Ben Cheng [Thu, 29 Apr 2010 22:22:59 +0000 (15:22 -0700)]
Use unsigned comparison for stack pointers.

Bug: 2613607
Change-Id: I6a8abd69fbf9cb9f8ec9d9febf1ea42fd631fe9c

14 years agoMerge "Adding public API for cookies." into dalvik-dev
Jesse Wilson [Thu, 29 Apr 2010 22:19:25 +0000 (15:19 -0700)]
Merge "Adding public API for cookies." into dalvik-dev

14 years agoRework common_periodicChecks.
Andy McFadden [Thu, 29 Apr 2010 21:13:01 +0000 (14:13 -0700)]
Rework common_periodicChecks.

The function was rewritten to optimize the common path.  The control flow
now matches the C version, which tests for debugger/profiler even if the
previous test for suspension came up true.

This also adds a minor optimization on the test for debugger attachment,
allowing us to skip a load from memory if the process is simply not
debuggable.  (The optimization isn't yet enabled because a similar change
must be made to the x86 asm code.)

The VM apparently hadn't been built without debugging/profiling support
for a while, so this fixes those places (necessary to be able to test
all forms of the new code).

Bug 2634642.

Change-Id: I096b58c961bb73ee0d128ba776d68dbf29bba924

14 years agoAdding public API for cookies.
Jesse Wilson [Thu, 29 Apr 2010 18:42:00 +0000 (11:42 -0700)]
Adding public API for cookies.

We still need to wire this into the HTTP connection classes.
  http://b/issue?id=1608781

14 years agoMerge "Dalvik Zip rewrite." into dalvik-dev
Andy McFadden [Thu, 29 Apr 2010 17:50:30 +0000 (10:50 -0700)]
Merge "Dalvik Zip rewrite." into dalvik-dev

14 years agoDalvik Zip rewrite.
Andy McFadden [Fri, 23 Apr 2010 23:34:52 +0000 (16:34 -0700)]
Dalvik Zip rewrite.

Change the way zip archives are handled.  This is necessary to deal with
very large (~1GB) APK files, for which our current approach of mapping
the entire file falls over.

We now do the classic scavenger hunt for the End Of Central Directory magic
on a buffer of data read from the file, instead of a memory-mapped section.
We use what we find to create a map that covers the Central Directory only.
For most uses in the VM this is all we really need, since we just want
to check file attributes vs. the optimized DEX to see if we're out of date.

If the caller is interested in unpacking the file contents, we have to
do an additional file read to discover the size of the Local File Header
section so we can skip past it.  We also now do a file-to-file extraction
using read() calls instead of a buffer-to-file extraction on mmap()ed data.
No difference in performance (as measured by first-boot dexopt).

Since this is more of a rewrite than an update, I also took the opportunity
to change buffer size variables from "long" to "size_t", and normalized
return values to int (some were using bool, which is common in the VM but
was mixed in the zip code).  Failure messages are now all LOGW with the
word "Zip" up front (didn't want to change log tag away from "dalvikvm").

Also, removed a not-quite-right check in the "map part of a file" code,
and clarified that the file offset is absolute.

For bug 2620103.

Change-Id: I745fb15abb541376f467969ffe422222676f1e5f

14 years agoMerge "Fixing a few TreeMap bugs found by the latest Harmony tests." into dalvik-dev
Jesse Wilson [Thu, 29 Apr 2010 06:32:13 +0000 (23:32 -0700)]
Merge "Fixing a few TreeMap bugs found by the latest Harmony tests." into dalvik-dev

14 years agoMerge "Use unsigned compare for stack overflow." into dalvik-dev
Andy McFadden [Thu, 29 Apr 2010 05:02:06 +0000 (22:02 -0700)]
Merge "Use unsigned compare for stack overflow." into dalvik-dev

14 years agoFixing a few TreeMap bugs found by the latest Harmony tests.
Jesse Wilson [Thu, 29 Apr 2010 01:31:41 +0000 (18:31 -0700)]
Fixing a few TreeMap bugs found by the latest Harmony tests.

14 years agoOptimize rem-int/lit too.
Elliott Hughes [Wed, 28 Apr 2010 23:15:38 +0000 (16:15 -0700)]
Optimize rem-int/lit too.

Bryan hitting the bug in my div-int/lit optimization (that caused it to
try to rewrite rem-int/lit too) shows that I was wrong in assuming % wasn't
worth doing because it wouldn't be hot enough.

Before:

                     benchmark  ns logarithmic runtime
       RemainderIntByConstant2  44 XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    RemainderIntByConstant2048  34 XXXXXXXXXXXXXXXXXXXXXX|||||
       RemainderIntByConstant8  44 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
       RemainderIntByVariable2  40 XXXXXXXXXXXXXXXXXXXXXXXXXXX||

After:

                     benchmark  ns logarithmic runtime
       RemainderIntByConstant2  13 XXXXXXXXX|||||||||||
    RemainderIntByConstant2048  16 XXXXXXXXXXXX||||||||||
       RemainderIntByConstant8  16 XXXXXXXXXXXX||||||||||
       RemainderIntByVariable2  40 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Bug: 2614702
Change-Id: I719fc8765feececd5b73c3cb2e44dd3cf20c45ce

14 years agoUse unsigned compare for stack overflow.
Andy McFadden [Wed, 28 Apr 2010 22:46:16 +0000 (15:46 -0700)]
Use unsigned compare for stack overflow.

When checking for stack overflow we're using a comparison that is treating
the pointers as signed values.  If we manage to get a stack straddling
0x80000000, this will not work correctly.

Bug 2613607.

Change-Id: I5d178db86e93a3bb1e6a417e88d7cb1770d285bb

14 years agoDon't accidentally convert % into /...
Elliott Hughes [Wed, 28 Apr 2010 20:52:02 +0000 (13:52 -0700)]
Don't accidentally convert % into /...

Fix a JIT bug I introduced the other day by not paying attention to the exact
dalvik opcode being optimized.

Change-Id: Ic0518645a5436e2903c2a34ef46d0205f23d571b

14 years agoMerge "Add a regression test for http://code.google.com/p/android/issues/detail?id...
Elliott Hughes [Wed, 28 Apr 2010 20:40:04 +0000 (13:40 -0700)]
Merge "Add a regression test for code.google.com/p/android/issues/detail?id=7935." into dalvik-dev

14 years agoMerge "Filling out implementations of java.util." into dalvik-dev
Jesse Wilson [Wed, 28 Apr 2010 20:21:32 +0000 (13:21 -0700)]
Merge "Filling out implementations of java.util." into dalvik-dev

14 years agoFilling out implementations of java.util.
Jesse Wilson [Tue, 27 Apr 2010 22:56:39 +0000 (15:56 -0700)]
Filling out implementations of java.util.

The new code comes straight from Harmony. None of the below classes
were divergent from Harmony so the change was quite straightforward.

The changes have been tested against Harmony's test suite and jtreg.
I haven't added any new tests to our suite, but I don't need to.

14 years agoAdd a regression test for http://code.google.com/p/android/issues/detail?id=7935.
Elliott Hughes [Wed, 28 Apr 2010 20:18:24 +0000 (13:18 -0700)]
Add a regression test for code.google.com/p/android/issues/detail?id=7935.

Bug: http://code.google.com/p/android/issues/detail?id=7935
Change-Id: I5d1b46687f0f257e24870fe34f05b6e7dceed346

14 years agoAdd a regression test for another DST-less locale.
Elliott Hughes [Wed, 28 Apr 2010 20:05:11 +0000 (13:05 -0700)]
Add a regression test for another DST-less locale.

Bug: http://code.google.com/p/android/issues/detail?id=8016
Change-Id: I260760ebc37251ccff766b78d22853d961a2694f

14 years agoMerge "Remove almost all of the temporary allocations." into dalvik-dev
Elliott Hughes [Wed, 28 Apr 2010 19:56:39 +0000 (12:56 -0700)]
Merge "Remove almost all of the temporary allocations." into dalvik-dev

14 years agoam cfb71ee5: (-s ours) no emma instrumentation on core-test
Guang Zhu [Wed, 28 Apr 2010 19:48:45 +0000 (12:48 -0700)]
am cfb71ee5: (-s ours) no emma instrumentation on core-test

Merge commit 'cfb71ee5d72b7514d05b782c780d20cc5e6f73cb' into dalvik-dev

* commit 'cfb71ee5d72b7514d05b782c780d20cc5e6f73cb':
  no emma instrumentation on core-test

14 years agoRemove almost all of the temporary allocations.
Elliott Hughes [Wed, 28 Apr 2010 19:01:21 +0000 (12:01 -0700)]
Remove almost all of the temporary allocations.

The main source of garbage when running the tests is now
OutputStream.write(int)'s creation of temporary single-byte byte arrays, but
no performance-conscious caller should be using that. In sensible cases, we
now produce very little garbage.

Change-Id: I13b5c8aef9a48c6aca33b039af2b13d5613a5f05

14 years agono emma instrumentation on core-test
Guang Zhu [Wed, 28 Apr 2010 18:33:48 +0000 (11:33 -0700)]
no emma instrumentation on core-test

* applying emma instrumentation causes OOM in dx
* test packages don't need emma instrumentation anyway, it's the
  package under test that needs to be processed by emma

Change-Id: I8e65d3750aae716c52fb98d0b8cd41a748344516

14 years agoMerge "Fix HttpURLConnection.setFixedLengthStreamingMode." into dalvik-dev
Elliott Hughes [Wed, 28 Apr 2010 18:26:46 +0000 (11:26 -0700)]
Merge "Fix HttpURLConnection.setFixedLengthStreamingMode." into dalvik-dev

14 years agoFix HttpURLConnection.setFixedLengthStreamingMode.
Elliott Hughes [Wed, 28 Apr 2010 01:25:33 +0000 (18:25 -0700)]
Fix HttpURLConnection.setFixedLengthStreamingMode.

Add better testing of chunked and fixed-length modes, and fix fixed-length mode
so it doesn't try to buffer all the output (which is the last thing you want
because the only point of that mode is to explicitly disable as much buffering
as possible).

Bug: http://code.google.com/p/android/issues/detail?id=3164
Change-Id: Ie0adc374b9c8093ab55211222cec0eeab0e27e96

14 years agomerge more modules into luni
Peter Hallam [Mon, 26 Apr 2010 19:53:37 +0000 (12:53 -0700)]
merge more modules into luni

14 years agoMerge "Optimize idiv-int/lit for powers of 2." into dalvik-dev
Elliott Hughes [Tue, 27 Apr 2010 17:46:45 +0000 (10:46 -0700)]
Merge "Optimize idiv-int/lit for powers of 2." into dalvik-dev

14 years agoRestore test expectations inadvertently deleted with vogar.
Jesse Wilson [Tue, 27 Apr 2010 01:34:26 +0000 (18:34 -0700)]
Restore test expectations inadvertently deleted with vogar.

14 years agoOptimize idiv-int/lit for powers of 2.
Elliott Hughes [Tue, 27 Apr 2010 00:40:13 +0000 (17:40 -0700)]
Optimize idiv-int/lit for powers of 2.

before:

                   DivideIntByConstant10  32 XXXXXXXXXXXXXXXXXXXXXXXXXXXX|
                  DivideIntByConstant100  32 XXXXXXXXXXXXXXXXXXXXXXXXXXXX|
    DivideIntByConstant100_HandOptimized  34 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
                    DivideIntByConstant2  32 XXXXXXXXXXXXXXXXXXXXXXXXXXXX|
                 DivideIntByConstant2048  22 XXXXXXXXXXXXXXXXXXX|||||||
                    DivideIntByConstant8  20 XXXXXXXXXXXXXXXXX||||||||
                   DivideIntByVariable10  21 XXXXXXXXXXXXXXXXXX|||||||
                    DivideIntByVariable2  21 XXXXXXXXXXXXXXXXXX|||||||

after:

                               benchmark  ns logarithmic runtime
                   DivideIntByConstant10  32 XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
                  DivideIntByConstant100  32 XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    DivideIntByConstant100_HandOptimized  33 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
                    DivideIntByConstant2  11 XXXXXXXXX|||||||||||
                 DivideIntByConstant2048  13 XXXXXXXXXXX|||||||||||
                    DivideIntByConstant8  13 XXXXXXXXXXX|||||||||||
                   DivideIntByVariable10  21 XXXXXXXXXXXXXXXXXXX|||||||
                    DivideIntByVariable2  22 XXXXXXXXXXXXXXXXXXXX||||||

Bug: 2614702
Change-Id: I9dde73d80580446a362cdcc9b82959a4b6bfb384

14 years agoMerge "Fix =/== bug." into dalvik-dev
Elliott Hughes [Mon, 26 Apr 2010 20:51:04 +0000 (13:51 -0700)]
Merge "Fix =/== bug." into dalvik-dev

14 years agoFix =/== bug.
Elliott Hughes [Mon, 26 Apr 2010 20:45:16 +0000 (13:45 -0700)]
Fix =/== bug.

Change-Id: I42c1ede0289334b7837d468763fecc61fc4a8bea

14 years agoMerge "More merging of nio into luni" into dalvik-dev
Jesse Wilson [Mon, 26 Apr 2010 18:20:40 +0000 (11:20 -0700)]
Merge "More merging of nio into luni" into dalvik-dev

14 years agoRemoving vogar from Dalvik's git tree; the source is now on code.google.com.
Jesse Wilson [Mon, 26 Apr 2010 17:31:19 +0000 (10:31 -0700)]
Removing vogar from Dalvik's git tree; the source is now on code.google.com.

http://code.google.com/p/vogar/

14 years agoam b59dd513: am 5793d439: am 3e557951: am 42452494: Fix dexdump to build in Windows...
Raphael [Mon, 26 Apr 2010 17:22:33 +0000 (10:22 -0700)]
am b59dd513: am 5793d439: am 3e557951: am 42452494: Fix dexdump to build in Windows SDK under Linux

Merge commit 'b59dd51399f17f60c5e2c9909331887417b0778c' into dalvik-dev

* commit 'b59dd51399f17f60c5e2c9909331887417b0778c':
  Fix dexdump to build in Windows SDK under Linux

14 years agoam 5793d439: am 3e557951: am 42452494: Fix dexdump to build in Windows SDK under...
Raphael [Mon, 26 Apr 2010 17:11:46 +0000 (10:11 -0700)]
am 5793d439: am 3e557951: am 42452494: Fix dexdump to build in Windows SDK under Linux

14 years agoam 3e557951: am 42452494: Fix dexdump to build in Windows SDK under Linux
Raphael [Sat, 24 Apr 2010 00:21:42 +0000 (17:21 -0700)]
am 3e557951: am 42452494: Fix dexdump to build in Windows SDK under Linux

Merge commit '3e557951fa772390551d50c85ddd584e4370fb15' into kraken

* commit '3e557951fa772390551d50c85ddd584e4370fb15':
  Fix dexdump to build in Windows SDK under Linux

14 years agoam 42452494: Fix dexdump to build in Windows SDK under Linux
Raphael [Sat, 24 Apr 2010 00:14:24 +0000 (17:14 -0700)]
am 42452494: Fix dexdump to build in Windows SDK under Linux

Merge commit '4245249472f7172de80874190559f6d2ef9c3803' into froyo-plus-aosp

* commit '4245249472f7172de80874190559f6d2ef9c3803':
  Fix dexdump to build in Windows SDK under Linux

14 years agoMerge "Dead code/cruft removal in the collation code." into dalvik-dev
Elliott Hughes [Fri, 23 Apr 2010 23:24:53 +0000 (16:24 -0700)]
Merge "Dead code/cruft removal in the collation code." into dalvik-dev

14 years agoDead code/cruft removal in the collation code.
Elliott Hughes [Fri, 23 Apr 2010 23:15:38 +0000 (16:15 -0700)]
Dead code/cruft removal in the collation code.

I've also renamed ScopedUtfChars::data to ScopedUtfChars::c_str, by analogy
with std::string (since this method has always been more like c_str than data).

This also fixes a few leaks on error paths.

The old code used to go all the way into native code to return a constant hash
code of 1, so I've removed all that and switched to the idiomatic bogo hash
code (with the idiomatic comment).

Change-Id: I25da8c422155860b5ab348786d369c6c7598135c

14 years agoMore merging of nio into luni
Peter Hallam [Fri, 23 Apr 2010 01:14:04 +0000 (18:14 -0700)]
More merging of nio into luni

Change-Id: Ib4356b3cd57490df8ff246ea6a4bc1c269ba848b

14 years agoFix dexdump to build in Windows SDK under Linux
Raphael [Tue, 13 Apr 2010 22:19:21 +0000 (15:19 -0700)]
Fix dexdump to build in Windows SDK under Linux

(Merged from master Change I0e57c81d)

14 years agoam 29af77bf: am ca88104b: am 770379e1: am 6efd4463: Fix a deadlock in the breakpoint...
Andy McFadden [Fri, 23 Apr 2010 20:17:36 +0000 (13:17 -0700)]
am 29af77bf: am ca88104b: am 770379e1: am 6efd4463: Fix a deadlock in the breakpoint code.

Merge commit '29af77bfa00ac560680dea99cf0893fccc257176' into dalvik-dev

* commit '29af77bfa00ac560680dea99cf0893fccc257176':
  Fix a deadlock in the breakpoint code.

14 years agoam ca88104b: am 770379e1: am 6efd4463: Fix a deadlock in the breakpoint code.
Andy McFadden [Fri, 23 Apr 2010 20:08:03 +0000 (13:08 -0700)]
am ca88104b: am 770379e1: am 6efd4463: Fix a deadlock in the breakpoint code.

14 years agoam 770379e1: am 6efd4463: Fix a deadlock in the breakpoint code.
Andy McFadden [Fri, 23 Apr 2010 20:00:17 +0000 (13:00 -0700)]
am 770379e1: am 6efd4463: Fix a deadlock in the breakpoint code.

Merge commit '770379e17e694ec6e08f1edb690a5e33ab81c684' into kraken

* commit '770379e17e694ec6e08f1edb690a5e33ab81c684':
  Fix a deadlock in the breakpoint code.

14 years agoMerge "Import the copying collector." into dalvik-dev
Carl Shapiro [Fri, 23 Apr 2010 19:58:18 +0000 (12:58 -0700)]
Merge "Import the copying collector." into dalvik-dev

14 years agoImport the copying collector.
Carl Shapiro [Thu, 15 Apr 2010 23:10:00 +0000 (16:10 -0700)]
Import the copying collector.

Change-Id: I48ef17afd9e5e8453e560a96d307f4f949d4ab5e

14 years agoam 6efd4463: Fix a deadlock in the breakpoint code.
Andy McFadden [Fri, 23 Apr 2010 19:55:39 +0000 (12:55 -0700)]
am 6efd4463: Fix a deadlock in the breakpoint code.

Merge commit '6efd446399ba7a9bb68bf8ddb5a458072a1381b0' into froyo-plus-aosp

* commit '6efd446399ba7a9bb68bf8ddb5a458072a1381b0':
  Fix a deadlock in the breakpoint code.

14 years agoFix a deadlock in the breakpoint code.
Andy McFadden [Fri, 23 Apr 2010 00:08:11 +0000 (17:08 -0700)]
Fix a deadlock in the breakpoint code.

In froyo we started using "hard" breakpoints, where we replace the
existing opcodes with breakpoint instructions.  This requires some
coordination to avoid confusing the verifier.  The previous approach
allowed the breakpoints to be inserted, and "undid" them while the
verifier ran; this worked, but caused us to be holding a lock for
an extended period.

The new approach just avoids altering the bytecode of unverified
classes, and then "flushes" the breakpoint set out between the time
when verification completes and class initialization starts.  This
removes the possibility of blocking with the lock held, and makes
everything much simpler.

For bug 2615063.

(cherry-pick from dalvik-dev)

Change-Id: I75f19b0cc71fc0babb50ab299c6c5a865e06c919

14 years agoMerge "Fix a deadlock in the breakpoint code." into dalvik-dev
Andy McFadden [Fri, 23 Apr 2010 18:51:10 +0000 (11:51 -0700)]
Merge "Fix a deadlock in the breakpoint code." into dalvik-dev

14 years agoMerge "Fixing some logging tests, see http://b/issue?id=2487338" into dalvik-dev
Jesse Wilson [Fri, 23 Apr 2010 18:29:28 +0000 (11:29 -0700)]
Merge "Fixing some logging tests, see b/issue?id=2487338" into dalvik-dev

14 years agoFix a deadlock in the breakpoint code.
Andy McFadden [Fri, 23 Apr 2010 00:08:11 +0000 (17:08 -0700)]
Fix a deadlock in the breakpoint code.

In froyo we started using "hard" breakpoints, where we replace the
existing opcodes with breakpoint instructions.  This requires some
coordination to avoid confusing the verifier.  The previous approach
allowed the breakpoints to be inserted, and "undid" them while the
verifier ran; this worked, but caused us to be holding a lock for
an extended period.

The new approach just avoids altering the bytecode of unverified
classes, and then "flushes" the breakpoint set out between the time
when verification completes and class initialization starts.  This
removes the possibility of blocking with the lock held, and makes
everything much simpler.

For bug 2615063.

Change-Id: I7f43e09a755fba27b335454659b3f04e8b2179ac

14 years agoFixing some logging tests, see http://b/issue?id=2487338
Jesse Wilson [Fri, 23 Apr 2010 01:41:59 +0000 (18:41 -0700)]
Fixing some logging tests, see b/issue?id=2487338

14 years agoRemove unnecessary IPv6 and IPv4 parsing from URI.
Jesse Wilson [Thu, 22 Apr 2010 23:25:52 +0000 (16:25 -0700)]
Remove unnecessary IPv6 and IPv4 parsing from URI.

Cleanup URI and InetAddress exception localization.

14 years agoMerge "Fixing java.lang.NullPointerException at java.net.URI$Helper.isValidDomainName...
Jesse Wilson [Thu, 22 Apr 2010 22:28:47 +0000 (15:28 -0700)]
Merge "Fixing java.lang.NullPointerException at java.net.URI$Helper.isValidDomainName" into dalvik-dev

14 years agoFixing java.lang.NullPointerException at java.net.URI$Helper.isValidDomainName
Jesse Wilson [Thu, 22 Apr 2010 21:27:58 +0000 (14:27 -0700)]
Fixing java.lang.NullPointerException at java.net.URI$Helper.isValidDomainName

See http://b/issue?id=2604061

14 years agoMerge "java.text.RuleBasedCollator fixes." into dalvik-dev
Elliott Hughes [Thu, 22 Apr 2010 21:01:28 +0000 (14:01 -0700)]
Merge "java.text.RuleBasedCollator fixes." into dalvik-dev

14 years agojava.text.RuleBasedCollator fixes.
Elliott Hughes [Thu, 22 Apr 2010 20:38:42 +0000 (13:38 -0700)]
java.text.RuleBasedCollator fixes.

Add expectations for broken harmony tests, add our own equivalent (but correct)
tets, and fix the bug turned up by the correct tests: the icu4jni
RuleBasedCollator was using toString to convert a CharacterIterator to a
String, resulting in iteration over the result of Object.toString (the class
name and identity hash code) rather than the characters of interest.

Also shut javac up about non-ASCII characters in Locale.java.

Bug: 2608742
Bug: 2608750
Change-Id: I2171789058c8116eacd7e5815bd483f0bc07c69b

14 years agoam ed4035bc: am d2203aa0: am 1beb43af: merge from open-source master
The Android Open Source Project [Thu, 22 Apr 2010 20:49:06 +0000 (13:49 -0700)]
am ed4035bc: am d2203aa0: am 1beb43af: merge from open-source master

Merge commit 'ed4035bca3233c7a40c4d5679c3f7dfea9516c7e' into dalvik-dev

* commit 'ed4035bca3233c7a40c4d5679c3f7dfea9516c7e':
  Improve the implementation of countOnes function to use only 12 operations.

14 years agoam d2203aa0: am 1beb43af: merge from open-source master
The Android Open Source Project [Thu, 22 Apr 2010 20:39:14 +0000 (13:39 -0700)]
am d2203aa0: am 1beb43af: merge from open-source master

14 years agoam 1beb43af: merge from open-source master
The Android Open Source Project [Thu, 22 Apr 2010 20:25:29 +0000 (13:25 -0700)]
am 1beb43af: merge from open-source master

Merge commit '1beb43af9350d47016c0e3ec55c1b2d4230cae7e' into kraken

* commit '1beb43af9350d47016c0e3ec55c1b2d4230cae7e':
  Improve the implementation of countOnes function to use only 12 operations.

14 years agomerge from open-source master
The Android Open Source Project [Thu, 22 Apr 2010 19:44:36 +0000 (12:44 -0700)]
merge from open-source master

Change-Id: Ia08d4f55f5cdced2878777e0812c8cbbf26bb0d6

14 years agoUpdate to the latest upstream collator tests.
Elliott Hughes [Thu, 22 Apr 2010 00:34:53 +0000 (17:34 -0700)]
Update to the latest upstream collator tests.

I've pulled out the not-obviously-insane stuff we added, though I don't
know how useful it is. This change is mainly about reverting our broken
changes to these tests.

Bug: 2608750
Bug: 2608742
Change-Id: Ia4d0a7b12bfc5dfc3fad4b72254918acf74b418d

14 years agoMerge "Suppress all failures in setSecurityManager() with vogar." into dalvik-dev
Jesse Wilson [Wed, 21 Apr 2010 23:33:10 +0000 (16:33 -0700)]
Merge "Suppress all failures in setSecurityManager() with vogar." into dalvik-dev

14 years agoSuppress all failures in setSecurityManager() with vogar.
Jesse Wilson [Wed, 21 Apr 2010 21:36:15 +0000 (14:36 -0700)]
Suppress all failures in setSecurityManager() with vogar.

14 years agoam 3825d34f: am d4b6f6aa: am 1dd42bb9: Fix NetworkInterface on sholes/ppp.
Elliott Hughes [Wed, 21 Apr 2010 20:48:48 +0000 (13:48 -0700)]
am 3825d34f: am d4b6f6aa: am 1dd42bb9: Fix NetworkInterface on sholes/ppp.

Merge commit '3825d34f9cd5057504ced60962638ffb54f14e38' into dalvik-dev

* commit '3825d34f9cd5057504ced60962638ffb54f14e38':
  Fix NetworkInterface on sholes/ppp.

14 years agoam d4b6f6aa: am 1dd42bb9: Fix NetworkInterface on sholes/ppp.
Elliott Hughes [Wed, 21 Apr 2010 20:39:13 +0000 (13:39 -0700)]
am d4b6f6aa: am 1dd42bb9: Fix NetworkInterface on sholes/ppp.

14 years agoam 1dd42bb9: Fix NetworkInterface on sholes/ppp.
Elliott Hughes [Wed, 21 Apr 2010 20:29:59 +0000 (13:29 -0700)]
am 1dd42bb9: Fix NetworkInterface on sholes/ppp.

Merge commit '1dd42bb9da388c55191449b848f9d82dc4673229' into kraken

* commit '1dd42bb9da388c55191449b848f9d82dc4673229':
  Fix NetworkInterface on sholes/ppp.