OSDN Git Service

android-x86/dalvik.git
14 years agoam 1071056d: am a497359a: Fix a race condition in JIT state refresh under debugging...
Ben Cheng [Fri, 2 Apr 2010 22:59:26 +0000 (15:59 -0700)]
am 1071056d: am a497359a: Fix a race condition in JIT state refresh under debugging / misc code cleanup.

Merge commit '1071056dace973442293b718bf12e328935126f1' into dalvik-dev

* commit '1071056dace973442293b718bf12e328935126f1':
  Fix a race condition in JIT state refresh under debugging / misc code cleanup.

14 years agoam 3d82ade7: Merge "Have certimport.sh list certificates in BKS keystore after import...
Brian Carlstrom [Fri, 2 Apr 2010 22:59:22 +0000 (15:59 -0700)]
am 3d82ade7: Merge "Have certimport.sh list certificates in BKS keystore after importing for verification/debugging"

Merge commit '3d82ade7a9b764695bad89d2476a73441118411b' into dalvik-dev

* commit '3d82ade7a9b764695bad89d2476a73441118411b':
  Have certimport.sh list certificates in BKS keystore after importing for verification/debugging

14 years agoam d4b07831: Merge "Fix misuse of ALLOC_DONT_TRACK." into froyo
Andy McFadden [Fri, 2 Apr 2010 22:59:18 +0000 (15:59 -0700)]
am d4b07831: Merge "Fix misuse of ALLOC_DONT_TRACK." into froyo

Merge commit 'd4b078315ae7335c385f70b32810959bd228d976' into dalvik-dev

* commit 'd4b078315ae7335c385f70b32810959bd228d976':
  Fix misuse of ALLOC_DONT_TRACK.

14 years agoam ea527bc0: Remove debug message from OpenSSL JNI code
Brian Carlstrom [Fri, 2 Apr 2010 22:59:15 +0000 (15:59 -0700)]
am ea527bc0: Remove debug message from OpenSSL JNI code

Merge commit 'ea527bc08f4d7128eb9d927a16723d20b9d1d217' into dalvik-dev

* commit 'ea527bc08f4d7128eb9d927a16723d20b9d1d217':
  Remove debug message from OpenSSL JNI code

14 years agoam 6e138297: Add an @KnownFailure annotation.
Elliott Hughes [Fri, 2 Apr 2010 22:59:11 +0000 (15:59 -0700)]
am 6e138297: Add an @KnownFailure annotation.

Merge commit '6e138297538fb632944ae1a81f346aec75137399' into dalvik-dev

* commit '6e138297538fb632944ae1a81f346aec75137399':
  Add an @KnownFailure annotation.

14 years agoam 434bae64: Fix for 2542488 JIT codegen bug with overlapping wide operands
Bill Buzbee [Fri, 2 Apr 2010 22:59:07 +0000 (15:59 -0700)]
am 434bae64: Fix for 2542488 JIT codegen bug with overlapping wide operands

Merge commit '434bae646046871c334b95bd9123a78da66c27c3' into dalvik-dev

* commit '434bae646046871c334b95bd9123a78da66c27c3':
  Fix for 2542488 JIT codegen bug with overlapping wide operands

14 years agoam d5adae17: Improve JIT self verifier test coverage to follow single-step instructions.
Ben Cheng [Fri, 2 Apr 2010 22:58:56 +0000 (15:58 -0700)]
am d5adae17: Improve JIT self verifier test coverage to follow single-step instructions.

Merge commit 'd5adae17d71e86a1a5f3ae7825054e3249fb7879' into dalvik-dev

* commit 'd5adae17d71e86a1a5f3ae7825054e3249fb7879':
  Improve JIT self verifier test coverage to follow single-step instructions.

14 years agoAdd Java 6's java.util.ServiceLoader.
Elliott Hughes [Fri, 2 Apr 2010 18:47:56 +0000 (11:47 -0700)]
Add Java 6's java.util.ServiceLoader.

New implementation, documentation, and tests, very loosely based on the harmony
code.

We can't run the harmony or jtreg tests because we don't have the infrastructure.
My test just tests the most obvious use cases, on the assumption that at some
point we'll get the other test suites working; quite possibly before anyone ever
wants to use this stuff on Android.

(We might want to switch over existing META-INF/services/ code to use
ServiceLoader. I've raised http://b/2567593 for this.)

Bug: 2497395
Change-Id: I62b0ac4748204555d3ba9356794a72aff4f4f01e

14 years agoMerge "New method-level granularity and output streaming for vogar." into dalvik-dev
Jesse Wilson [Thu, 1 Apr 2010 21:44:29 +0000 (14:44 -0700)]
Merge "New method-level granularity and output streaming for vogar." into dalvik-dev

14 years agoNew method-level granularity and output streaming for vogar.
Jesse Wilson [Thu, 1 Apr 2010 06:51:56 +0000 (23:51 -0700)]
New method-level granularity and output streaming for vogar.

14 years agoMerge "Tidy up our getAvailableLocales methods to actually ask ICU4C." into dalvik-dev
Elliott Hughes [Thu, 1 Apr 2010 21:31:56 +0000 (14:31 -0700)]
Merge "Tidy up our getAvailableLocales methods to actually ask ICU4C." into dalvik-dev

14 years agoTidy up our getAvailableLocales methods to actually ask ICU4C.
Elliott Hughes [Thu, 1 Apr 2010 20:56:32 +0000 (13:56 -0700)]
Tidy up our getAvailableLocales methods to actually ask ICU4C.

These specialized methods are little used, and in several cases ICU itself
just returns the list of locales, but that's ICU's business, not ours. As
long as ICU is in charge of our locale-specific data, it should be responsible
for answering questions about what locale-specific data is available...

Change-Id: Idc8a66bbf7fcbc6b06e30929e6a7af3fe30ab7d1

14 years agoMerge "Mark external alloc functions as deprecated." into dalvik-dev
Andy McFadden [Thu, 1 Apr 2010 20:06:00 +0000 (13:06 -0700)]
Merge "Mark external alloc functions as deprecated." into dalvik-dev

14 years agoMerge "Add Java 6's java.net.IDN." into dalvik-dev
Elliott Hughes [Thu, 1 Apr 2010 18:15:14 +0000 (11:15 -0700)]
Merge "Add Java 6's java.net.IDN." into dalvik-dev

14 years agoAdd Java 6's java.net.IDN.
Elliott Hughes [Wed, 31 Mar 2010 22:45:15 +0000 (15:45 -0700)]
Add Java 6's java.net.IDN.

harmony's tests and my code, though ICU4C does all the hard work.

I've added a test of my own to demonstrate some weird RI behavior (that I've
emulated in our implementation).

Bug: 2497395
Change-Id: I8146f72a8a3204449ee3d0d9065dadc1c1c77fcc

14 years agoFix an off-by-one error in fd range checking.
Elliott Hughes [Thu, 1 Apr 2010 01:34:53 +0000 (18:34 -0700)]
Fix an off-by-one error in fd range checking.

Change-Id: I15f932bc246ebc7fec9471a873bef8bd58ef15fc

14 years agoMerge "Add the ability to treat the zygote heap as a root collect just the forked...
Carl Shapiro [Wed, 31 Mar 2010 23:27:24 +0000 (16:27 -0700)]
Merge "Add the ability to treat the zygote heap as a root collect just the forked application heap." into dalvik-dev

14 years agoMerge "Add Java 6's ResourceBundle/Properties API." into dalvik-dev
Elliott Hughes [Wed, 31 Mar 2010 22:52:09 +0000 (15:52 -0700)]
Merge "Add Java 6's ResourceBundle/Properties API." into dalvik-dev

14 years agoMark external alloc functions as deprecated.
Andy McFadden [Wed, 31 Mar 2010 22:50:17 +0000 (15:50 -0700)]
Mark external alloc functions as deprecated.

First step toward disabling them.

Bug 2537379.

Change-Id: I8664a5f1d7dcff11ddeb97b5e700dad76bffc723

14 years agoam a497359a: Fix a race condition in JIT state refresh under debugging / misc code...
Ben Cheng [Wed, 31 Mar 2010 21:36:33 +0000 (14:36 -0700)]
am a497359a: Fix a race condition in JIT state refresh under debugging / misc code cleanup.

14 years agoAdd Java 6's ResourceBundle/Properties API.
Elliott Hughes [Wed, 31 Mar 2010 20:59:55 +0000 (13:59 -0700)]
Add Java 6's ResourceBundle/Properties API.

I've pretty much taken the upstream ResourceBundle implementations
as-is, putting back our string-to-locale conversion, removing a bit
of duplication and non-free, non-spec EBCDIC support, and hard-coding
the text of the MissingResourceExceptions (since harmony's changed
its message catalog from ours, so I had to touch those bits of the
code anyway).

(Why haven't I bothered to pay much attention to the resource bundle
implementations? Because I already rewrote our only code that was
using them to not use them, and third-party developers should be
using Android's resource system instead. There's very little chance
anyone needs Java resource bundles. I paid some attention to Properties,
because they're still somewhat useful.)

Also remove various unused messages, and update our tests. I've mostly
_not_ taken the upstream tests, because it would require a lot of work
that we'll be doing anyway when we switch to using their test suite
properly.

I ran the jtreg tests we're able to run, and the normal-case ones (plus
the stress test) seemed okay.

Bug: 2497395
Change-Id: I91606df0dc1a45e6974fbb27a0d334af87254f0b

14 years agoFix a race condition in JIT state refresh under debugging / misc code cleanup.
Ben Cheng [Wed, 31 Mar 2010 18:59:18 +0000 (11:59 -0700)]
Fix a race condition in JIT state refresh under debugging / misc code cleanup.

Bug: 2561283
Change-Id: I9fd94928f3e661de97098808340ea92b28cafa07

14 years agoMerge "Have certimport.sh list certificates in BKS keystore after importing for verif...
Brian Carlstrom [Wed, 31 Mar 2010 17:37:16 +0000 (10:37 -0700)]
Merge "Have certimport.sh list certificates in BKS keystore after importing for verification/debugging"

14 years agoHave certimport.sh list certificates in BKS keystore after importing for verification...
Brian Carlstrom [Wed, 31 Mar 2010 17:01:09 +0000 (10:01 -0700)]
Have certimport.sh list certificates in BKS keystore after importing for verification/debugging

Change-Id: Ic336f10d96bbf93b1dc5cfd8b64a4c9eaa4f3a68

14 years agoMerge "Add Java 6's Calendar API changes." into dalvik-dev
Elliott Hughes [Wed, 31 Mar 2010 15:55:17 +0000 (08:55 -0700)]
Merge "Add Java 6's Calendar API changes." into dalvik-dev

14 years agoAdd Java 6's Calendar API changes.
Elliott Hughes [Wed, 31 Mar 2010 00:47:11 +0000 (17:47 -0700)]
Add Java 6's Calendar API changes.

Also correct two javadoc mistakes I added, and bring back the latest harmony
java6 CalendarTest.

Bug: 2497395
Change-Id: If481390948ca93d5f709a8ed4585991889de9f8b

14 years agoMerge "Fix misuse of ALLOC_DONT_TRACK." into froyo
Andy McFadden [Wed, 31 Mar 2010 15:43:28 +0000 (08:43 -0700)]
Merge "Fix misuse of ALLOC_DONT_TRACK." into froyo

14 years agoMerge "Splitting TestRun into Action and Outcome." into dalvik-dev
Jesse Wilson [Wed, 31 Mar 2010 06:37:04 +0000 (23:37 -0700)]
Merge "Splitting TestRun into Action and Outcome." into dalvik-dev

14 years agoSplitting TestRun into Action and Outcome.
Jesse Wilson [Tue, 30 Mar 2010 22:53:36 +0000 (15:53 -0700)]
Splitting TestRun into Action and Outcome.

Changing Vogar to prefer the word "action" over "test" to avoid
deemphisizing benchmarks and main classes.

Moving expectation management out of TestRun and into Expectation
and the ExpectationStore. The parse method moved, but it is unchanged.
Renamed ExpectedResult to Expectation.

Currently outcome has 2 names: an outcome name and an action name.
At the moment these are always equal. In a follow up to this change
I intend to allow a single action to have multiple outcomes, which
will allow JUnit tests to be tracked at the right granularity when
executed by vogar.

14 years agoAdd the ability to treat the zygote heap as a root collect just the
Carl Shapiro [Fri, 12 Mar 2010 04:39:47 +0000 (20:39 -0800)]
Add the ability to treat the zygote heap as a root collect just the
forked application heap.

Change-Id: I8807897ae426f8274018d950fec44a2182a90525

14 years agoRemove debug message from OpenSSL JNI code
Brian Carlstrom [Tue, 30 Mar 2010 23:28:48 +0000 (16:28 -0700)]
Remove debug message from OpenSSL JNI code

Change-Id: I70c68087b7d109634eb3240dca1f27e6f20d3da6

14 years agoFix misuse of ALLOC_DONT_TRACK.
Andy McFadden [Tue, 30 Mar 2010 22:49:07 +0000 (15:49 -0700)]
Fix misuse of ALLOC_DONT_TRACK.

The internal String creation function doesn't allow ALLOC_DONT_TRACK.
This changes the call to use ALLOC_DEFAULT and then explicitly release
the tracked allocation.

For bug 2558142.

Change-Id: I57dfa4824578c3a3a33f6836b75f51391cc73746

14 years agoMerge "Trivial tidying up of networking code." into dalvik-dev
Elliott Hughes [Tue, 30 Mar 2010 22:19:23 +0000 (15:19 -0700)]
Merge "Trivial tidying up of networking code." into dalvik-dev

14 years agoAdd an @KnownFailure annotation.
Elliott Hughes [Tue, 30 Mar 2010 22:18:26 +0000 (15:18 -0700)]
Add an @KnownFailure annotation.

Bug: 2489458
Change-Id: Ib1121c6190b63baae8dbc6a8a598c3f5a510cfaf

14 years agoTrivial tidying up of networking code.
Elliott Hughes [Tue, 30 Mar 2010 21:21:19 +0000 (14:21 -0700)]
Trivial tidying up of networking code.

Removing cruft and renaming things.

Change-Id: I317726c40a1addf3a1ad9d905239438424082549

14 years agoMerge "Fixing vogar script to use the latest name" into dalvik-dev
Jesse Wilson [Tue, 30 Mar 2010 20:05:32 +0000 (13:05 -0700)]
Merge "Fixing vogar script to use the latest name" into dalvik-dev

14 years agoFixing vogar script to use the latest name
Jesse Wilson [Tue, 30 Mar 2010 20:05:09 +0000 (13:05 -0700)]
Fixing vogar script to use the latest name

14 years agoRenaming dalvik.runner to Vogar!
Jesse Wilson [Tue, 30 Mar 2010 01:09:29 +0000 (18:09 -0700)]
Renaming dalvik.runner to Vogar!

Also moving commands and target classes to their own directories. This is all
in preparation to move the code out to code.google.com

14 years agoFix a bug, and protect against an unrelated class of bugs.
Elliott Hughes [Tue, 30 Mar 2010 03:51:48 +0000 (20:51 -0700)]
Fix a bug, and protect against an unrelated class of bugs.

If the Java array allocation in InetAddress.cpp failed, we'd free NULL instead of the
previously-allocated structure. This is a new bug in froyo, but only happens in out of
memory situations, so doesn't seem worth fixing there.

Unrelatedly, let's disallow assignment and copying of all our RAII classes. This isn't
a mistake I've seen made, but it's easy to protect against, so we may as well do so
consistently.

Change-Id: I2433b31ff983d388788b09e59e08d661f1725ecd

14 years agoMerge "Add Java 6's exponent separator to DecimalFormatSymbols." into dalvik-dev
Elliott Hughes [Tue, 30 Mar 2010 01:35:30 +0000 (18:35 -0700)]
Merge "Add Java 6's exponent separator to DecimalFormatSymbols." into dalvik-dev

14 years agoAdd Java 6's exponent separator to DecimalFormatSymbols.
Elliott Hughes [Tue, 30 Mar 2010 00:39:51 +0000 (17:39 -0700)]
Add Java 6's exponent separator to DecimalFormatSymbols.

Bug: 2497395
Change-Id: Ic552fa828649bae882e508a62a44073d1038b5c0

14 years agoMerge "Tweak our test & runner so XPath tests can be executed on Hudson." into dalvik-dev
Jesse Wilson [Tue, 30 Mar 2010 00:21:31 +0000 (17:21 -0700)]
Merge "Tweak our test & runner so XPath tests can be executed on Hudson." into dalvik-dev

14 years agoTweak our test & runner so XPath tests can be executed on Hudson.
Jesse Wilson [Mon, 29 Mar 2010 23:13:48 +0000 (16:13 -0700)]
Tweak our test & runner so XPath tests can be executed on Hudson.

14 years agoFix build.
Elliott Hughes [Mon, 29 Mar 2010 22:20:01 +0000 (15:20 -0700)]
Fix build.

Rather than try to be clever with header files (which didn't work with glibc
for the sim build) let's make Math.copySign have the StrictMath behavior,
and have StrictMath call Math. (The other way round, though it might seem
more logical, wouldn't solve the problem. We already have numerous cases of
StrictMath calling Math anyway.)

Change-Id: Ifff065ddc8fbd5d5f8d4d5b67bc9ac07a719eb00

14 years agoMerge "Merge commit '8812fdd7' into manualmerge" into dalvik-dev
Jesse Wilson [Mon, 29 Mar 2010 20:52:59 +0000 (13:52 -0700)]
Merge "Merge commit '8812fdd7' into manualmerge" into dalvik-dev

14 years agoMerge commit '8812fdd7' into manualmerge
Jesse Wilson [Mon, 29 Mar 2010 20:52:17 +0000 (13:52 -0700)]
Merge commit '8812fdd7' into manualmerge

Conflicts:
libcore/xml/src/test/java/tests/api/javax/xml/parsers/SAXParserFactoryTest.java

14 years agoMerge "Fix StrictMath.copySign's behavior with NaN." into dalvik-dev
Elliott Hughes [Mon, 29 Mar 2010 20:43:29 +0000 (13:43 -0700)]
Merge "Fix StrictMath.copySign's behavior with NaN." into dalvik-dev

14 years agoFix for 2542488 JIT codegen bug with overlapping wide operands
Bill Buzbee [Sat, 27 Mar 2010 17:58:03 +0000 (10:58 -0700)]
Fix for 2542488 JIT codegen bug with overlapping wide operands

Change-Id: I2f31492f68cb753f76dd664cd6b0a52d7d32de4c

14 years agoFix StrictMath.copySign's behavior with NaN.
Elliott Hughes [Sat, 27 Mar 2010 06:23:38 +0000 (23:23 -0700)]
Fix StrictMath.copySign's behavior with NaN.

StrictMath's copySign method is defined to treat all NaNs as positive, regardless
of their sign bit. Rather than add yet more code on the Java side (which already
called down to native code three times), let's just make one call to native code.

This change fixes failures in already-committed StrictMath tests.

The only other potential instances of this class of error were in the
max and min methods, but they all handle NaNs before calling
(double|float)To(Raw)?LongBits, so the choice there really is arbitrary.

Change-Id: I439dbdff9068cb420b78a6330cde9d7d0d12c0ef

14 years agoFix all our java.text.Bidi failures.
Elliott Hughes [Sat, 27 Mar 2010 00:46:16 +0000 (17:46 -0700)]
Fix all our java.text.Bidi failures.

Two are invalid tests where we behave the same as the RI. The third reflects
a difference between ICU4C and the RI, so I've added code to recognize that
case and paper over the crack. I've also tidied up a bit more.

With any luck, I'll never see these files again...

Change-Id: I278502fbdea039e9a2318df830dc0b55851e96c0

14 years agoImprove JIT self verifier test coverage to follow single-step instructions.
Ben Cheng [Sat, 27 Mar 2010 00:45:28 +0000 (17:45 -0700)]
Improve JIT self verifier test coverage to follow single-step instructions.

Bug: 2549326
Change-Id: I01412d4aac1379b61c90fe6e59c534b33be93f66

14 years agoMerge "Java 6 changed CollationKey from final to abstract." into dalvik-dev
Elliott Hughes [Fri, 26 Mar 2010 23:16:30 +0000 (16:16 -0700)]
Merge "Java 6 changed CollationKey from final to abstract." into dalvik-dev

14 years agoam 2be0c815: (-s ours) Suppressing additional tests that fail in Froyo.
Jesse Wilson [Fri, 26 Mar 2010 23:08:43 +0000 (16:08 -0700)]
am 2be0c815: (-s ours) Suppressing additional tests that fail in Froyo.

Merge commit '2be0c815dda289b09f3bb26f751c124f30eaf612' into dalvik-dev

* commit '2be0c815dda289b09f3bb26f751c124f30eaf612':
  Suppressing additional tests that fail in Froyo.

14 years agoJava 6 changed CollationKey from final to abstract.
Elliott Hughes [Fri, 26 Mar 2010 21:46:11 +0000 (14:46 -0700)]
Java 6 changed CollationKey from final to abstract.

I've also taken the opportunity to tidy up our implementation a little,
though my hands are tied by (a) the fact that our concrete classes are
in a separate package from our abstract classes and (b) frameworks/base
actually pokes about with our icu4jni collation code (http://b/2417080).

I've also tidied up a bunch of dead code. In particular, it's silly for
us to check parameters in Java that will be checked in native code (and
that one would assume will be valid most of the time anyway).

Bug: 1635883
Change-Id: I7db3c1ff1f0d23cb85604f9c8eb995e4488d7c0a

14 years agoMerge "Fixing tests to handle changes in our behaviour since DOM 3." into froyo
Jesse Wilson [Fri, 26 Mar 2010 22:21:11 +0000 (15:21 -0700)]
Merge "Fixing tests to handle changes in our behaviour since DOM 3." into froyo

14 years agoSuppressing additional tests that fail in Froyo.
Jesse Wilson [Fri, 26 Mar 2010 21:49:30 +0000 (14:49 -0700)]
Suppressing additional tests that fail in Froyo.

Our File class doesn't do SecurityManager checks at the same time as it
did previously.

We added a failing logging test but not the fix.

We moved the SQL drivers around, causing some SQL tests to fail.

A new logging test doesn't load its resources using the safe pattern.

Change-Id: I34ab81e4001969aa536f61a89c277ae2b879d49d

14 years agoFixing tests to handle changes in our behaviour since DOM 3.
Jesse Wilson [Fri, 26 Mar 2010 21:03:36 +0000 (14:03 -0700)]
Fixing tests to handle changes in our behaviour since DOM 3.

Our exception priority has changed for DOM attributes. We
previously used to throw DOMExceptions with namespace error
codes and now throw DOMExceptions with character error codes
when the attribute name is malformed. This caused changes to
many tests.

Another notable behaviour change is that we now supply the
qname (like the RI) where previously we did not. It is optional,
but we now include it for RI-consistency.

Yet another behaviour change is that we don't look at System
properties when choosing a SAX implementation. This simplifies
our internals significantly. End users who want an alternative
SAX implementation should construct it manually.

Also adding @KnownFailure tags for new tests that we have
never yet passed.

Change-Id: I6f81bedd7c2a0867086dc507b3220c2b07c4d3d3

14 years agoStart cleaning up the Charset implementation.
Elliott Hughes [Fri, 26 Mar 2010 18:30:00 +0000 (11:30 -0700)]
Start cleaning up the Charset implementation.

This was going to be https://issues.apache.org/jira/browse/HARMONY-6461,
but I couldn't resist cleaning up some of the surrounding code, and ended
up cleaning up some of our native code too. In the course of the afternoon
I spent on this, I lost my conviction that the upstream change makes
sense, so I reverted that, leaving this change just pure cleanup.

(Note that the cleanup work is incomplete. This is an improvement, but
there's plenty left to do. I just don't want to get too distracted until
all the Java 6 changes are done.)

Change-Id: I56841db5f6c038bbf7942e83a148dca546519269

14 years agoMerge "Use more idiomatic naming in test code." into dalvik-dev
Elliott Hughes [Fri, 26 Mar 2010 18:05:38 +0000 (11:05 -0700)]
Merge "Use more idiomatic naming in test code." into dalvik-dev

14 years agoUse more idiomatic naming in test code.
Elliott Hughes [Fri, 26 Mar 2010 17:51:48 +0000 (10:51 -0700)]
Use more idiomatic naming in test code.

(I introduced this in https://android-git.corp.google.com/g/46305.)

Change-Id: I100202fc18e246dd7b66870ce75543642505336d

14 years agoam 63868feb: Use correct resource flags for Dalvik ld/st instructions to enable code...
Ben Cheng [Thu, 25 Mar 2010 23:55:50 +0000 (16:55 -0700)]
am 63868feb: Use correct resource flags for Dalvik ld/st instructions to enable code motion.

Merge commit '63868feb2cc6a1fb1c76d7b54296ef4869f632be' into dalvik-dev

* commit '63868feb2cc6a1fb1c76d7b54296ef4869f632be':
  Use correct resource flags for Dalvik ld/st instructions to enable code motion.

14 years agoUse correct resource flags for Dalvik ld/st instructions to enable code motion.
Ben Cheng [Thu, 25 Mar 2010 23:16:02 +0000 (16:16 -0700)]
Use correct resource flags for Dalvik ld/st instructions to enable code motion.

Change-Id: I9b371af4150b6245c0ff59eea63d83406edbbcee

14 years agoam f2f7880a: Test and document our handling of nulls with getString().
Jesse Wilson [Thu, 25 Mar 2010 21:40:39 +0000 (14:40 -0700)]
am f2f7880a: Test and document our handling of nulls with getString().

Merge commit 'f2f7880a40aed1c8d9c27db49226e47396556aac' into dalvik-dev

* commit 'f2f7880a40aed1c8d9c27db49226e47396556aac':
  Test and document our handling of nulls with getString().

14 years agoTest and document our handling of nulls with getString().
Jesse Wilson [Thu, 25 Mar 2010 20:31:43 +0000 (13:31 -0700)]
Test and document our handling of nulls with getString().

Our behaviour is consistent with Crockford's.

The test confirms that the behaviour is consistent with the report
of that bug, which the submitter claims is not how it should behave.
http://code.google.com/p/android/issues/detail?id=7257

Change-Id: Ibace4bd995e3cbc8fb6c9dc509f8f4491865a647

14 years agoam d630700a: Merge "Jit: Fix for 2542488 JIT codegen bug with overlapping wide operands"
Bill Buzbee [Thu, 25 Mar 2010 20:11:50 +0000 (13:11 -0700)]
am d630700a: Merge "Jit: Fix for 2542488 JIT codegen bug with overlapping wide operands"

Merge commit 'd630700a9fbc6d317e0b4df73cbbc74a2c8fadaa' into dalvik-dev

* commit 'd630700a9fbc6d317e0b4df73cbbc74a2c8fadaa':
  Jit: Fix for 2542488 JIT codegen bug with overlapping wide operands

14 years agoMerge "Jit: Fix for 2542488 JIT codegen bug with overlapping wide operands"
Bill Buzbee [Thu, 25 Mar 2010 20:07:45 +0000 (13:07 -0700)]
Merge "Jit: Fix for 2542488 JIT codegen bug with overlapping wide operands"

14 years agoApply https://issues.apache.org/jira/browse/HARMONY-4307.
Elliott Hughes [Thu, 25 Mar 2010 18:30:13 +0000 (11:30 -0700)]
Apply https://issues.apache.org/jira/browse/HARMONY-4307.

They didn't add a test for this; supposedly it fixed a flaky AWT test. But
the change looks plausible.

Change-Id: I358849a20d5e38d01d6c77a4c335002bb7bba095

14 years agoClean up a few toStrings.
Elliott Hughes [Thu, 25 Mar 2010 17:39:48 +0000 (10:39 -0700)]
Clean up a few toStrings.

I couldn't find any more that were using getClass() rather than
getClass().getName().

Change-Id: I30b375748d36bc36d1e6999349fc472496456746

14 years agoJit: Fix for 2542488 JIT codegen bug with overlapping wide operands
Bill Buzbee [Thu, 25 Mar 2010 17:38:34 +0000 (10:38 -0700)]
Jit: Fix for 2542488 JIT codegen bug with overlapping wide operands

Change-Id: I7b922e223fe1f5242d1f3db1fa18f54aaed725af

14 years agoam ec7c8c98: Fix java.util.Random\'s constructors.
Elliott Hughes [Thu, 25 Mar 2010 17:25:17 +0000 (10:25 -0700)]
am ec7c8c98: Fix java.util.Random\'s constructors.

Merge commit 'ec7c8c98a4094580224eb9c400249c5c0984cf29' into dalvik-dev

* commit 'ec7c8c98a4094580224eb9c400249c5c0984cf29':
  Fix java.util.Random's constructors.

14 years agoFix java.util.Random's constructors.
Elliott Hughes [Thu, 25 Mar 2010 06:38:48 +0000 (23:38 -0700)]
Fix java.util.Random's constructors.

Subclasses rely on having their overridden setSeed called by Random's
constructors, and the RI actually documents this behavior. (The
documentation even changed between Java 5 and Java 6 to make it _more_
explicit.)

This patch keeps that part of I6239d93bb46876ef1c4a5e155a6dc1ac6fab4eae
that improved our randomness, but reverts the attempt to fix Random's
uncouth behavior.

Also a regression test so we don't try to fix Random again in future.

Bug: 2502231
Change-Id: Ieea1009145c74eac9475c0cd5066dabad20eb114

14 years agoam f87ab961: Merge "Don\'t leak memory on failed pipe or mutex init"
Kenny Root [Thu, 25 Mar 2010 02:40:12 +0000 (19:40 -0700)]
am f87ab961: Merge "Don\'t leak memory on failed pipe or mutex init"

Merge commit 'f87ab9616697b8bae08c5e8007cbdd0039a1f8ce' into dalvik-dev

* commit 'f87ab9616697b8bae08c5e8007cbdd0039a1f8ce':
  Don't leak memory on failed pipe or mutex init

14 years agoam 3d5d8736: Merge "Fix for the JIT blocking mode plus some code cleanup."
Ben Cheng [Thu, 25 Mar 2010 02:40:10 +0000 (19:40 -0700)]
am 3d5d8736: Merge "Fix for the JIT blocking mode plus some code cleanup."

Merge commit '3d5d87364d062734753bfd26336e96a7e8d03360' into dalvik-dev

* commit '3d5d87364d062734753bfd26336e96a7e8d03360':
  Fix for the JIT blocking mode plus some code cleanup.

14 years agoam c66affa4: Switch to VMWAIT while outputting trace data.
Andy McFadden [Thu, 25 Mar 2010 02:40:04 +0000 (19:40 -0700)]
am c66affa4: Switch to VMWAIT while outputting trace data.

Merge commit 'c66affa440de113df861928c528fcbbead2ead45' into dalvik-dev

* commit 'c66affa440de113df861928c528fcbbead2ead45':
  Switch to VMWAIT while outputting trace data.

14 years agoMerge "Don't leak memory on failed pipe or mutex init"
Kenny Root [Thu, 25 Mar 2010 00:07:15 +0000 (17:07 -0700)]
Merge "Don't leak memory on failed pipe or mutex init"

14 years agoDon't leak memory on failed pipe or mutex init
Kenny Root [Thu, 25 Mar 2010 00:01:22 +0000 (17:01 -0700)]
Don't leak memory on failed pipe or mutex init

SSL allocation might fail on pipe or mutex creation, so free allocated
memory when that happens.

Change-Id: Ibe3813cb652db1e880e3acf0dc1fa37fbe0ad455

14 years agoMerge "Add Java 6's getAvailableLocales/getInstance to DateFormatSymbols and DecimalF...
Elliott Hughes [Wed, 24 Mar 2010 23:23:29 +0000 (16:23 -0700)]
Merge "Add Java 6's getAvailableLocales/getInstance to DateFormatSymbols and DecimalFormatSymbols." into dalvik-dev

14 years agoAdd Java 6's getAvailableLocales/getInstance to DateFormatSymbols and DecimalFormatSy...
Elliott Hughes [Wed, 24 Mar 2010 21:04:55 +0000 (14:04 -0700)]
Add Java 6's getAvailableLocales/getInstance to DateFormatSymbols and DecimalFormatSymbols.

This patch also improves the documentation of all getAvailableLocales methods
to clarify exactly what "available" means. Note that at the moment, many of
our implementations just return Locale.getAvailableLocales. It turns out that
ICU does the same in most cases, but I'll come back in a separate patch and
add code so we just pass these down to ICU, and wash our hands of the matter.

I've rewritten DateFormatSymbols.equals, which was very wrong. The time zone
names comparison had an invalid optimization, and its slow-path loop was wrong
too: it only ever tested values against themselves, which isn't likely to have
been the author's intention.

I've added toString overrides to DateFormatSymbols and DecimalFormatSymbols,
because I need them every time I work on these classes.

I've made the constants in DecimalFormatSymbols static final, and given them
idiomatic names. (I still think we might benefit from breaking these into
separate fields, as in the serialized form, but that's a separate issue.)

Finally, and unrelatedly, I've added a comment to BreakIteratorProvider that
I missed in my last change to that file.

Change-Id: I5d6cb30f9afdb502d38353d8a624dc2f0fef41ac

14 years agoMerge "Fix for the JIT blocking mode plus some code cleanup."
Ben Cheng [Wed, 24 Mar 2010 22:49:50 +0000 (15:49 -0700)]
Merge "Fix for the JIT blocking mode plus some code cleanup."

14 years agoFix for the JIT blocking mode plus some code cleanup.
Ben Cheng [Wed, 24 Mar 2010 22:24:19 +0000 (15:24 -0700)]
Fix for the JIT blocking mode plus some code cleanup.

Bug: 2517606
Change-Id: I2b5aa92ceaf23d484329330ae20de5966704280b

14 years agoShow current values of mutexes in thread dump.
Andy McFadden [Wed, 24 Mar 2010 20:35:19 +0000 (13:35 -0700)]
Show current values of mutexes in thread dump.

Experimental feature; may or may not be useful.  Dump the current value
of half a dozen VM mutexes.  This will tell us if they're unlocked,
locked, or contended-for at the point somebody does a thread dump.  For
example, when the GC notices the HeapWorker watchdog has expired:

  I/dalvikvm( 2828): DALVIK THREADS:
  I/dalvikvm( 2828): (mutexes: tll=0 tsl=0 tscl=0 ghl=1 hwl=1 hwll=0)

In this case, gcHeapLock and heapWorkerLock are held, the rest are not.

If this turns out to be useful we can put more effort into the output
format.  The pthread lib doesn't insert the thread ID unless you're
using recursive or errorcheck mutexes, which (for performance reasons)
we try not to use.

Change-Id: I272534d8c9db6340cfc23bfdddb47beefc2efbfb

14 years agoSwitch to VMWAIT while outputting trace data.
Andy McFadden [Wed, 24 Mar 2010 20:03:08 +0000 (13:03 -0700)]
Switch to VMWAIT while outputting trace data.

One of the traces from a monkey run suggests we stalled out during the
open/write/close part of writing the trace data.  To reduce the chances
of spin-on-suspending here we now switch to VMWAIT during the I/O.

For bug 2541030.

Change-Id: Ice832988213741976917fdd36afa12a694a42e81

14 years agoImprove the ThreadGroup documentation.
Elliott Hughes [Wed, 24 Mar 2010 01:06:35 +0000 (18:06 -0700)]
Improve the ThreadGroup documentation.

(Because I was asked a question about ThreadGroup today, and the answer is
always "don't use ThreadGroup"...)

Change-Id: Ibaa2f1830e1fe435c9712f3b08506639b9521b9e

14 years agoMerge "Remove explicit 8192 arguments to BufferedReader and friends." into dalvik-dev
Elliott Hughes [Wed, 24 Mar 2010 00:41:53 +0000 (17:41 -0700)]
Merge "Remove explicit 8192 arguments to BufferedReader and friends." into dalvik-dev

14 years agoam b7b9be13: Merge "Improve java.net.InetAddress.getLocalHost documentation."
Elliott Hughes [Tue, 23 Mar 2010 23:31:13 +0000 (16:31 -0700)]
am b7b9be13: Merge "Improve java.net.InetAddress.getLocalHost documentation."

Merge commit 'b7b9be1343b59b429b6de9b28ffffbbbde8478c2' into dalvik-dev

* commit 'b7b9be1343b59b429b6de9b28ffffbbbde8478c2':
  Improve java.net.InetAddress.getLocalHost documentation.

14 years agoRemove explicit 8192 arguments to BufferedReader and friends.
Elliott Hughes [Tue, 23 Mar 2010 23:26:01 +0000 (16:26 -0700)]
Remove explicit 8192 arguments to BufferedReader and friends.

These were clearly added just to shut up our own warning, and are now
unnecessary and misleading to future maintainers.

There's one barely-related change: InputStreamReader and OutputStreamWriter
are very similar, and this patch makes them more similar, and adds a few
missing modifiers from their fields.

Change-Id: I959011f914ff215e92bbfa41c1bac66465803685

14 years agoMerge "Improve java.net.InetAddress.getLocalHost documentation."
Elliott Hughes [Tue, 23 Mar 2010 23:23:02 +0000 (16:23 -0700)]
Merge "Improve java.net.InetAddress.getLocalHost documentation."

14 years agoMerge "Fix --debug-port to --debug in vogar usage" into dalvik-dev
Brian Carlstrom [Tue, 23 Mar 2010 23:09:29 +0000 (16:09 -0700)]
Merge "Fix --debug-port to --debug in vogar usage" into dalvik-dev

14 years agoFix --debug-port to --debug in vogar usage
Brian Carlstrom [Tue, 23 Mar 2010 23:05:10 +0000 (16:05 -0700)]
Fix --debug-port to --debug in vogar usage

Change-Id: I012100578caa4f5768b7926b4fbe489c80f8d32b

14 years agoMerge "Remove the "default buffer size" warnings." into dalvik-dev
Elliott Hughes [Tue, 23 Mar 2010 22:45:12 +0000 (15:45 -0700)]
Merge "Remove the "default buffer size" warnings." into dalvik-dev

14 years agoRemove the "default buffer size" warnings.
Elliott Hughes [Tue, 23 Mar 2010 22:22:02 +0000 (15:22 -0700)]
Remove the "default buffer size" warnings.

Everyone seems to agree these have outlived their usefulness.

Change-Id: Ia2a53ffa1f9498333b4b2d51d5c1db488b89abaf

14 years agoam 02388cf1: Jit: disable for Sapphire.
Bill Buzbee [Tue, 23 Mar 2010 21:55:08 +0000 (14:55 -0700)]
am 02388cf1: Jit: disable for Sapphire.

Merge commit '02388cf18a87ba0243cddc6ccf3eaf8668118723' into dalvik-dev

* commit '02388cf18a87ba0243cddc6ccf3eaf8668118723':
  Jit: disable for Sapphire.

14 years agoJit: disable for Sapphire.
Bill Buzbee [Tue, 23 Mar 2010 21:34:11 +0000 (14:34 -0700)]
Jit: disable for Sapphire.

Change-Id: I3c48f239ef9a83fac1ef05d18ea1b00ab27879ff

14 years agoImprove java.net.InetAddress.getLocalHost documentation.
Elliott Hughes [Tue, 23 Mar 2010 21:21:27 +0000 (14:21 -0700)]
Improve java.net.InetAddress.getLocalHost documentation.

Bug: 1518707
Change-Id: I741a7a28325320949e84e997e6a49d3356c9a308

14 years agoam d4e0952b: Further refinements to "kill other thread".
Andy McFadden [Tue, 23 Mar 2010 20:01:33 +0000 (13:01 -0700)]
am d4e0952b: Further refinements to "kill other thread".

Merge commit 'd4e0952b73f9054adcc927a1c12699ba63f1672a' into dalvik-dev

* commit 'd4e0952b73f9054adcc927a1c12699ba63f1672a':
  Further refinements to "kill other thread".

14 years agoFurther refinements to "kill other thread".
Andy McFadden [Tue, 23 Mar 2010 19:34:43 +0000 (12:34 -0700)]
Further refinements to "kill other thread".

Switched from SIGSEGV to SIGSTKFLT.  Otherwise it looks like we're
seg-faulting in code that was actually executing just fine.

Ignore SIGSEGV before returning.  This avoids creating a second dump
when dvmAbort() is called.  (If the caller's stack trace were at all
interesting, we wouldn't be here, and we can do without the log spam.)

Added some more details to the logging.

For bug 2517042.

Change-Id: Ifff7fd75d6dbf7e3663152787f8921dda215fe40

14 years agoMerge "Revert the removal of java.nio.NIOAccess, which frameworks/base/ uses." into...
Elliott Hughes [Tue, 23 Mar 2010 00:56:03 +0000 (17:56 -0700)]
Merge "Revert the removal of java.nio.NIOAccess, which frameworks/base/ uses." into dalvik-dev

14 years agoRevert the removal of java.nio.NIOAccess, which frameworks/base/ uses.
Elliott Hughes [Tue, 23 Mar 2010 00:50:33 +0000 (17:50 -0700)]
Revert the removal of java.nio.NIOAccess, which frameworks/base/ uses.

This was removed in https://android-git.corp.google.com/g/45796, but turns
out to be used. I think we can do better in the long term, but right now
this just removes some of the duplication from the original, and adds
comments explaining where it's used.

Bug: 2535509
Change-Id: Ie8e717537b8b8c70c8689f2dbb2c3a38501ecc57

14 years agoMerge "Add the Java 6 java.text.spi and java.util.spi interfaces." into dalvik-dev
Elliott Hughes [Tue, 23 Mar 2010 00:00:55 +0000 (17:00 -0700)]
Merge "Add the Java 6 java.text.spi and java.util.spi interfaces." into dalvik-dev

14 years agoAdd the Java 6 java.text.spi and java.util.spi interfaces.
Elliott Hughes [Mon, 22 Mar 2010 23:36:58 +0000 (16:36 -0700)]
Add the Java 6 java.text.spi and java.util.spi interfaces.

We don't currently use these, and don't necessarily plan to. Full support
would have a run-time cost, and it's not obvious that it would be particularly
useful.

Code search can't actually find any users of this stuff in the wild outside
of the various VM implementations and their test suites.

Bug: 2497395
Change-Id: Ie25aef73ece6d1fd169fdcb7b2f847761d77914d