OSDN Git Service

android-x86/dalvik.git
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.

14 years agoMerge "Fix Locale.getDisplayName for unlocalizable languages/countries/variants....
Elliott Hughes [Wed, 21 Apr 2010 19:53:02 +0000 (12:53 -0700)]
Merge "Fix Locale.getDisplayName for unlocalizable languages/countries/variants." into dalvik-dev

14 years agoFix NetworkInterface on sholes/ppp.
Elliott Hughes [Wed, 21 Apr 2010 19:48:25 +0000 (12:48 -0700)]
Fix NetworkInterface on sholes/ppp.

We need to use IFA_LOCAL to get the interface addresses; IFA_ADDRESS is the
remote address (which is usually the same as IFA_LOCAL, but not in the ppp
case).

Tested on sholes, where it fixes the test used in the bug; also tested on
passion, where it doesn't break the already-working test.

Bug: 2575983
Change-Id: Ib334a002dc099daeeb05cbc341fe233d4d11d2f7

14 years agoMerge "Add some .odex info to dexdump output." into dalvik-dev
Andy McFadden [Wed, 21 Apr 2010 17:33:56 +0000 (10:33 -0700)]
Merge "Add some .odex info to dexdump output." into dalvik-dev

14 years agoFix Locale.getDisplayName for unlocalizable languages/countries/variants.
Elliott Hughes [Wed, 21 Apr 2010 17:23:08 +0000 (10:23 -0700)]
Fix Locale.getDisplayName for unlocalizable languages/countries/variants.

This does not address the interpretation of script identifiers, but does bring us
in line with the RI's behavior. That's why the test doesn't use the example from
the bug.

Bug: 2611311
Change-Id: I54af89aaf418cd520dc6ebdb1e27dc1ac373f70f

14 years agoRewrite the HTTP connection pool used by HttpURLConnection.
Jesse Wilson [Wed, 21 Apr 2010 04:34:28 +0000 (21:34 -0700)]
Rewrite the HTTP connection pool used by HttpURLConnection.

This started off as incremental changes, but it ended up going
far enough that it earned the "rewrite" badge.

System.getProperty() is not called for every HTTP connection.
This is slightly controversial, but the old code had to bend
over backwards to support dynamic pool changes, and it didn't
even support the case when the pool shrank but not to 0.

The new code doesn't do I/O within static synchronized blocks.
This should reduce contention described here: http://b/issue?id=2606547

Also: simpify implementation, prettier names, more focused doc.

14 years agoam 0691c470: am 6f7ec8e6: am 28f4d74b: Merge "Remove dangerous logging code from...
Carl Shapiro [Tue, 20 Apr 2010 23:38:01 +0000 (16:38 -0700)]
am 0691c470: am 6f7ec8e6: am 28f4d74b: Merge "Remove dangerous logging code from unlockMonitor.  It is unsafe to dereference a potentially corrupt lock word to retrieve additional information about the lock state.  This code was added to debug a transient error and ha

Merge commit '0691c4701cf8cd32db1bc034dc5f544a807aeb3d' into dalvik-dev

* commit '0691c4701cf8cd32db1bc034dc5f544a807aeb3d':
  Remove dangerous logging code from unlockMonitor.  It is unsafe to

14 years agoam 7e3d5fcd: Merge "include emma into core library on conditional flag"
Guang Zhu [Tue, 20 Apr 2010 23:37:58 +0000 (16:37 -0700)]
am 7e3d5fcd: Merge "include emma into core library on conditional flag"

Merge commit '7e3d5fcddef15bf2dff71c2fe5ee794536819973' into dalvik-dev

* commit '7e3d5fcddef15bf2dff71c2fe5ee794536819973':
  include emma into core library on conditional flag

14 years agoam 91be9e67: am 9cfe27bd: am 8068ea8d: Update the ssl test so the client reads someth...
Huahui Wu [Tue, 20 Apr 2010 23:37:52 +0000 (16:37 -0700)]
am 91be9e67: am 9cfe27bd: am 8068ea8d: Update the ssl test so the client reads something from the server. This is needed when cut-through feature is needed as in b/2586347. Dr. No approved in b/issue?id=2511073 .

Merge commit '91be9e671d7db5444aa8fa5f0101867ba8a73075' into dalvik-dev

* commit '91be9e671d7db5444aa8fa5f0101867ba8a73075':
  Update the ssl test so the client reads something from the server.

14 years agoFixing TimeZone.setDefault() documentation.
Jesse Wilson [Mon, 19 Apr 2010 22:01:12 +0000 (15:01 -0700)]
Fixing TimeZone.setDefault() documentation.

Set expectations for date formatting to tolerate "GMT-07" in the
output. The alternative is to emit an ambigous date string.
Applications that want pretty date formatting should use the
proper facilities: SimpleDateFormat, etc.

This problem was detected by org.apache.harmony.luni.tests.java.util.DateTest.test_toString

14 years agoam 6f7ec8e6: am 28f4d74b: Merge "Remove dangerous logging code from unlockMonitor...
Carl Shapiro [Tue, 20 Apr 2010 23:06:27 +0000 (16:06 -0700)]
am 6f7ec8e6: am 28f4d74b: Merge "Remove dangerous logging code from unlockMonitor.  It is unsafe to dereference a potentially corrupt lock word to retrieve additional information about the lock state.  This code was added to debug a transient error and has since been

14 years agoam 28f4d74b: Merge "Remove dangerous logging code from unlockMonitor. It is unsafe...
Carl Shapiro [Tue, 20 Apr 2010 22:58:23 +0000 (15:58 -0700)]
am 28f4d74b: Merge "Remove dangerous logging code from unlockMonitor.  It is unsafe to dereference a potentially corrupt lock word to retrieve additional information about the lock state.  This code was added to debug a transient error and has since been removed from

Merge commit '28f4d74b59e9e40278c4f1fe797d8c75f51b5326' into kraken

* commit '28f4d74b59e9e40278c4f1fe797d8c75f51b5326':
  Remove dangerous logging code from unlockMonitor.  It is unsafe to

14 years agoMerge "Remove dangerous logging code from unlockMonitor. It is unsafe to dereference...
Carl Shapiro [Tue, 20 Apr 2010 22:51:47 +0000 (15:51 -0700)]
Merge "Remove dangerous logging code from unlockMonitor.  It is unsafe to dereference a potentially corrupt lock word to retrieve additional information about the lock state.  This code was added to debug a transient error and has since been removed from other branches." into froyo

14 years agoresolved conflicts for merge of ee25fc06 to dalvik-dev
Carl Shapiro [Tue, 20 Apr 2010 22:48:46 +0000 (15:48 -0700)]
resolved conflicts for merge of ee25fc06 to dalvik-dev

Change-Id: Ib8c3c62b3b791a8087d7e6298006a6221726cf78

14 years agoMerge "Fixing reset() on SAXParser and DocumentBuilder, and cleaning up nearby tests...
Jesse Wilson [Tue, 20 Apr 2010 22:32:27 +0000 (15:32 -0700)]
Merge "Fixing reset() on SAXParser and DocumentBuilder, and cleaning up nearby tests." into dalvik-dev

14 years agoAdd some .odex info to dexdump output.
Andy McFadden [Tue, 20 Apr 2010 21:18:59 +0000 (14:18 -0700)]
Add some .odex info to dexdump output.

"dexdump -f" will now show the contents of the optimized DEX header if
one is present.  A "table of contents" for the auxillary data is also
displayed.

As an added bonus, stop being lazy and sanitize the DEX magic before
printing it (it has an embedded newline and \0).

Change-Id: If9c5278785062cd0f44fc3d3ea0725ef0009932a

14 years agoMerge "include emma into core library on conditional flag"
Guang Zhu [Tue, 20 Apr 2010 21:53:41 +0000 (14:53 -0700)]
Merge "include emma into core library on conditional flag"

14 years agoFixing reset() on SAXParser and DocumentBuilder, and cleaning up nearby tests.
Jesse Wilson [Tue, 20 Apr 2010 21:16:25 +0000 (14:16 -0700)]
Fixing reset() on SAXParser and DocumentBuilder, and cleaning up nearby tests.

Also fixing vogar to support a directory of test expectations, so we
can group them by file rather than colocating failures we want to fix
with those that we don't.

14 years agoMerge "Fix a BigInteger(String) bug I introduced yesterday." into dalvik-dev
Elliott Hughes [Tue, 20 Apr 2010 21:02:19 +0000 (14:02 -0700)]
Merge "Fix a BigInteger(String) bug I introduced yesterday." into dalvik-dev

14 years agoMerge "Make plain "-Xint" work." into dalvik-dev
Andy McFadden [Tue, 20 Apr 2010 20:34:11 +0000 (13:34 -0700)]
Merge "Make plain "-Xint" work." into dalvik-dev

14 years agoFix a BigInteger(String) bug I introduced yesterday.
Elliott Hughes [Tue, 20 Apr 2010 20:22:03 +0000 (13:22 -0700)]
Fix a BigInteger(String) bug I introduced yesterday.

I broke parsing of integers in bases greater than 10.

Change-Id: I94c4a75c613a1cd8105b7477e68275a81d04d01b

14 years agoMake plain "-Xint" work.
Andy McFadden [Tue, 20 Apr 2010 20:17:52 +0000 (13:17 -0700)]
Make plain "-Xint" work.

Change-Id: I7a09a886df9722b60a861969f3e1a1a45988068a

14 years agoam 9cfe27bd: am 8068ea8d: Update the ssl test so the client reads something from...
Huahui Wu [Tue, 20 Apr 2010 19:51:07 +0000 (12:51 -0700)]
am 9cfe27bd: am 8068ea8d: Update the ssl test so the client reads something from the server. This is needed when cut-through feature is needed as in b/2586347. Dr. No approved in b/issue?id=2511073 .

14 years agoam 8068ea8d: Update the ssl test so the client reads something from the server. This...
Huahui Wu [Tue, 20 Apr 2010 19:43:39 +0000 (12:43 -0700)]
am 8068ea8d: Update the ssl test so the client reads something from the server. This is needed when cut-through feature is needed as in b/2586347. Dr. No approved in b/issue?id=2511073 .

Merge commit '8068ea8daa37ac1e4d55c2ebd15bf9dda3d7891e' into kraken

* commit '8068ea8daa37ac1e4d55c2ebd15bf9dda3d7891e':
  Update the ssl test so the client reads something from the server.

14 years agoUpdate the ssl test so the client reads something from the server.
Huahui Wu [Mon, 19 Apr 2010 22:05:17 +0000 (18:05 -0400)]
Update the ssl test so the client reads something from the server.
This is needed when cut-through feature is needed as in b/2586347.
Dr. No approved in http://b/issue?id=2511073 .

Change-Id: Id84724873522fe0435dbda342616da02783f7d6b

14 years agoMerge "Merge commit 'a0a3ad10' into manualmerge" into dalvik-dev
Brian Carlstrom [Tue, 20 Apr 2010 16:18:09 +0000 (09:18 -0700)]
Merge "Merge commit 'a0a3ad10' into manualmerge" into dalvik-dev

14 years agoRemove dangerous logging code from unlockMonitor. It is unsafe to
Carl Shapiro [Tue, 20 Apr 2010 07:53:13 +0000 (00:53 -0700)]
Remove dangerous logging code from unlockMonitor.  It is unsafe to
dereference a potentially corrupt lock word to retrieve additional
information about the lock state.  This code was added to debug a
transient error and has since been removed from other branches.

Change-Id: I5aabae531c52532929e8dbb71bdcc6cb7cee64f9

14 years agoam 831eec93: am b8fcf57f: Fix remaining small issues with the lock sampling.
Carl Shapiro [Tue, 20 Apr 2010 07:29:56 +0000 (00:29 -0700)]
am 831eec93: am b8fcf57f: Fix remaining small issues with the lock sampling.

14 years agoam b8fcf57f: Fix remaining small issues with the lock sampling.
Carl Shapiro [Tue, 20 Apr 2010 07:21:58 +0000 (00:21 -0700)]
am b8fcf57f: Fix remaining small issues with the lock sampling.

Merge commit 'b8fcf57f13b4d37950cfbd72a6af401941d7bdd8' into kraken

* commit 'b8fcf57f13b4d37950cfbd72a6af401941d7bdd8':
  Fix remaining small issues with the lock sampling.

14 years agoSince we no longer make use of formatted I/O in the unlock monitor
Carl Shapiro [Tue, 20 Apr 2010 03:10:35 +0000 (20:10 -0700)]
Since we no longer make use of formatted I/O in the unlock monitor
exception case, revert to using dvmThrowException which does not treat
the description string as an output format.

Change-Id: Ice1dc04cb6d1e887af718022cc0b03c6d90f9a19

14 years agoFix remaining small issues with the lock sampling.
Carl Shapiro [Sat, 17 Apr 2010 00:33:15 +0000 (17:33 -0700)]
Fix remaining small issues with the lock sampling.

* Eliminate the now unused lockprofsample flag.  The sample percentage
  has been a function of the wait time an threshold since the previous
  change.

* Eliminate some trailing whitespace that creeped into the previous
  change.

* Eliminate the trailing newline from the event buffer.  Because the
  buffer pointer was not incremented this character was not seen in
  the event log anyway.

* Document the lockProfThreshold global.

Change-Id: Ia1c1fcf862d76f5631601e05e7941e5171fab097

14 years agoMerge commit 'a0a3ad10' into manualmerge
Brian Carlstrom [Tue, 20 Apr 2010 00:30:47 +0000 (17:30 -0700)]
Merge commit 'a0a3ad10' into manualmerge

Conflicts:
libcore/x-net/src/main/native/org_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp

Change-Id: I23508e348c5de4103e9dda619ca230d0575f57ca

14 years agoam 5005a521: am 612fa566: am af69cf8d: Fix several issues with the lock sampling...
Carl Shapiro [Tue, 20 Apr 2010 00:01:40 +0000 (17:01 -0700)]
am 5005a521: am 612fa566: am af69cf8d: Fix several issues with the lock sampling code.  This change obsoletes the lockProfSample flag.

Merge commit '5005a5210b941d18b7742469ba622b1c8a754b1e' into dalvik-dev

* commit '5005a5210b941d18b7742469ba622b1c8a754b1e':
  Fix several issues with the lock sampling code.  This change obsoletes

14 years agoam bd4eaf95: am 54c9323e: am 6b4ba58e: Add a mechanism to long a sample of long runni...
Carl Shapiro [Tue, 20 Apr 2010 00:01:38 +0000 (17:01 -0700)]
am bd4eaf95: am 54c9323e: am 6b4ba58e: Add a mechanism to long a sample of long running lock acquisitions.

Merge commit 'bd4eaf959e21f3e048366141896ce262f22e0e2c' into dalvik-dev

* commit 'bd4eaf959e21f3e048366141896ce262f22e0e2c':
  Add a mechanism to long a sample of long running lock acquisitions.

14 years agoam a731357c: (-s ours) am a8984fe8: (-s ours) am ddc0d4c2: (-s ours) DO NOT MERGE...
Jesse Wilson [Tue, 20 Apr 2010 00:01:34 +0000 (17:01 -0700)]
am a731357c: (-s ours) am a8984fe8: (-s ours) am ddc0d4c2: (-s ours) DO NOT MERGE. Suppressing tests that fail in CTS\' test runner.

Merge commit 'a731357c0cadaca3863f6fd0de1b8ffb39464220' into dalvik-dev

* commit 'a731357c0cadaca3863f6fd0de1b8ffb39464220':
  DO NOT MERGE. Suppressing tests that fail in CTS' test runner.

14 years agoFix U_FILE_ACCESS_ERROR RuntimeException in String.getBytes("GB18030").
Elliott Hughes [Mon, 19 Apr 2010 22:28:23 +0000 (15:28 -0700)]
Fix U_FILE_ACCESS_ERROR RuntimeException in String.getBytes("GB18030").

Bug: 2606807
Change-Id: Ie639ce6380e42e0eed2a7e360504f86a22f1fed8

14 years agoFix several BigInteger failures.
Elliott Hughes [Mon, 19 Apr 2010 21:29:52 +0000 (14:29 -0700)]
Fix several BigInteger failures.

From Java 7 on, BigInteger also accepts a leading "+" in its string
constructors.

BigInteger has always claimed to accept non-ASCII digits, but our
implementation never has.

BigInteger.isProbablePrime is defined to return true for certainty <= 0,
but OpenSSL (on which we're based) takes the opposite stance.

Change-Id: I00bfc591a4d583460f71b7eec3de91bf6b03cd87

14 years agoMerge "Speed up %d for locales with non-ASCII digits." into dalvik-dev
Elliott Hughes [Mon, 19 Apr 2010 21:11:56 +0000 (14:11 -0700)]
Merge "Speed up %d for locales with non-ASCII digits." into dalvik-dev

14 years agoSpeed up %d for locales with non-ASCII digits.
Elliott Hughes [Mon, 19 Apr 2010 18:10:41 +0000 (11:10 -0700)]
Speed up %d for locales with non-ASCII digits.

The small "localizeDigits" part of this change is the big speedup. It takes
%d in the "ar" Locale from 5x more expensive than "en_US", to just a small
percentage more expensive.

The big part of this change: removing the useless Transformer and FloatUtils
classes touches many lines (mostly just changing the level of indentation),
and only has a small percentage effect on performance. The motivation for
this is actually primarily that it makes the code easier to read, and makes
it easier to share code.

Change-Id: I07e86a3ee448510d9ae36579a9af283349f777f1

14 years agoMerge "openssl-1.0.0 upgrade"
Brian Carlstrom [Mon, 19 Apr 2010 20:58:57 +0000 (13:58 -0700)]
Merge "openssl-1.0.0 upgrade"

14 years agoTidying up the error reporting.
Jesse Wilson [Mon, 19 Apr 2010 02:55:45 +0000 (19:55 -0700)]
Tidying up the error reporting.

We were spamming our logs with a bunch of redundant messages,
particularly surrounding timeouts. This should reduce the log
output to only the useful stuff when a test takes too long
to complete.

Also not blowing away the full XML report when a few tests
get lost along the way.

14 years agoRemove a dangling import, and another unused Messages.java.
Elliott Hughes [Sun, 18 Apr 2010 17:38:03 +0000 (10:38 -0700)]
Remove a dangling import, and another unused Messages.java.

Also tidy up our two awt.font classes.

Change-Id: I931d348eef7265190f76c31f74c9a5d9ec5d6597

14 years agoMerge "Remove the nio Messages.java I missed, and the three now-unused imports."...
Elliott Hughes [Sun, 18 Apr 2010 17:17:46 +0000 (10:17 -0700)]
Merge "Remove the nio Messages.java I missed, and the three now-unused imports." into dalvik-dev

14 years agoRemove the nio Messages.java I missed, and the three now-unused imports.
Elliott Hughes [Sun, 18 Apr 2010 17:00:54 +0000 (10:00 -0700)]
Remove the nio Messages.java I missed, and the three now-unused imports.

I seem to be having trouble deleting files lately...

Change-Id: I019acd19aa61acdeeee1ab6f7fb8a063a41a5534

14 years agoSmall vogar changes in response to the review for change 49052.
Jesse Wilson [Sat, 17 Apr 2010 22:05:08 +0000 (15:05 -0700)]
Small vogar changes in response to the review for change 49052.

14 years agoMerge "Teaching vogar to run prebuilt .jar files." into dalvik-dev
Brian Carlstrom [Sat, 17 Apr 2010 18:45:39 +0000 (11:45 -0700)]
Merge "Teaching vogar to run prebuilt .jar files." into dalvik-dev

14 years agoMerge "Remove "messages" from the logging, math, and nio_char modules." into dalvik-dev
Elliott Hughes [Sat, 17 Apr 2010 16:14:48 +0000 (09:14 -0700)]
Merge "Remove "messages" from the logging, math, and nio_char modules." into dalvik-dev

14 years agoRemove two dead files.
Elliott Hughes [Sat, 17 Apr 2010 06:49:40 +0000 (23:49 -0700)]
Remove two dead files.

java_lang_Character.cpp has long been dead; I killed AndroidSystemNatives.h
this afternoon. I'm not sure how their "git rm"s didn't get included in my
earlier patch.

Change-Id: Iaa73935846a474dbd25792ed0176ccea092e9f7c

14 years agoRemove "messages" from the logging, math, and nio_char modules.
Elliott Hughes [Sat, 17 Apr 2010 01:08:47 +0000 (18:08 -0700)]
Remove "messages" from the logging, math, and nio_char modules.

Change-Id: Ib61b132ce17fdd37956889e855bda35956f8ae62

14 years agoTeaching vogar to run prebuilt .jar files.
Jesse Wilson [Sat, 17 Apr 2010 02:33:37 +0000 (19:33 -0700)]
Teaching vogar to run prebuilt .jar files.

Also trying to simplify some internals. We always build to
intermediate .jar files now.

I've renamed TestFinder to RunnerSpec and fixed its users.

14 years agoMerge "Move the libcore registration out of libnativehelpers and into libcore." into...
Elliott Hughes [Sat, 17 Apr 2010 01:32:04 +0000 (18:32 -0700)]
Merge "Move the libcore registration out of libnativehelpers and into libcore." into dalvik-dev

14 years agoam 612fa566: am af69cf8d: Fix several issues with the lock sampling code. This chang...
Carl Shapiro [Sat, 17 Apr 2010 01:27:51 +0000 (18:27 -0700)]
am 612fa566: am af69cf8d: Fix several issues with the lock sampling code.  This change obsoletes the lockProfSample flag.

14 years agoam af69cf8d: Fix several issues with the lock sampling code. This change obsoletes...
Carl Shapiro [Sat, 17 Apr 2010 01:19:00 +0000 (18:19 -0700)]
am af69cf8d: Fix several issues with the lock sampling code.  This change obsoletes the lockProfSample flag.

Merge commit 'af69cf8d062a42300852ddee6bcb9f189f5a1b83' into kraken

* commit 'af69cf8d062a42300852ddee6bcb9f189f5a1b83':
  Fix several issues with the lock sampling code.  This change obsoletes

14 years agoMerge "Refinements to array and class object size computation." into dalvik-dev
Carl Shapiro [Sat, 17 Apr 2010 01:11:44 +0000 (18:11 -0700)]
Merge "Refinements to array and class object size computation." into dalvik-dev

14 years agoRefinements to array and class object size computation.
Carl Shapiro [Sat, 17 Apr 2010 00:55:27 +0000 (17:55 -0700)]
Refinements to array and class object size computation.

* Rename dvmArrayObjectLength to dvmArrayObjectSize.  In the context
  of arrays length may refer to the length of the array data and not
  the size of the array object instance.

* Add a new method dvmClassObjectSize which computes the total size of
  a class object including its static fields.

Change-Id: I693ec8e66dfa5df35c9f35474c80411ea917c899

14 years agoMove the libcore registration out of libnativehelpers and into libcore.
Elliott Hughes [Sat, 17 Apr 2010 00:44:12 +0000 (17:44 -0700)]
Move the libcore registration out of libnativehelpers and into libcore.

Bug: 754114
Change-Id: Iaa03def509c10cbaa12fd2128584b93d4be4a6b7

14 years agoFix several issues with the lock sampling code. This change obsoletes
Carl Shapiro [Sat, 17 Apr 2010 00:33:15 +0000 (17:33 -0700)]
Fix several issues with the lock sampling code.  This change obsoletes
the lockProfSample flag.

Change-Id: Idb1846fc3db4ff73678a0dae46aabbb5dbb8b957

14 years agoMerge "Remove an unused enum." into dalvik-dev
Carl Shapiro [Sat, 17 Apr 2010 00:31:59 +0000 (17:31 -0700)]
Merge "Remove an unused enum." into dalvik-dev

14 years agoRemove an unused enum.
Carl Shapiro [Fri, 16 Apr 2010 22:44:09 +0000 (15:44 -0700)]
Remove an unused enum.

Change-Id: I792a5a6b890ac37b3e1fa1f3e4a6413b7621d115

14 years agoMerge LocaleData and Resources, rename Resources to ICU.
Elliott Hughes [Fri, 16 Apr 2010 21:14:28 +0000 (14:14 -0700)]
Merge LocaleData and Resources, rename Resources to ICU.

Also move our ICU tests into our little tree of tests.

Bug: 2596471
Change-Id: I73b53d74c26ef9bf670f12cac58b51ba61eefead

14 years agomerging FRF15 for dalvik-dev
Brian Carlstrom [Fri, 16 Apr 2010 18:55:48 +0000 (11:55 -0700)]
merging FRF15 for dalvik-dev

Change-Id: Ic8c9dea280d38cba8e55f962f0d8df843aea8e35

14 years agoMerge "Fixing TreeMap serialization issues." into dalvik-dev
Jesse Wilson [Fri, 16 Apr 2010 18:32:30 +0000 (11:32 -0700)]
Merge "Fixing TreeMap serialization issues." into dalvik-dev

14 years agoChange DecimalFormatSymbols to have a field per symbol.
Elliott Hughes [Fri, 16 Apr 2010 18:06:58 +0000 (11:06 -0700)]
Change DecimalFormatSymbols to have a field per symbol.

I'd been wanting to do this for some time, but cleaning up the recent
performance changes I made to Formatter was the final straw.

Change-Id: I6d516de66a0bed5e759bca590b4cc124ce2eb712

14 years agoFixing TreeMap serialization issues.
Jesse Wilson [Fri, 16 Apr 2010 00:32:27 +0000 (17:32 -0700)]
Fixing TreeMap serialization issues.

When I was testing this on the JDK I had my own TreeMap on
the classpath, which caused my tests to pass even when they
shouldn't have.

The new serialization data was generated by the JDK's
collections, both v5 and v6. The tests pass on both Dalvik
and the JDK.

14 years agoam 54c9323e: am 6b4ba58e: Add a mechanism to long a sample of long running lock acqui...
Carl Shapiro [Thu, 15 Apr 2010 23:59:59 +0000 (16:59 -0700)]
am 54c9323e: am 6b4ba58e: Add a mechanism to long a sample of long running lock acquisitions.

14 years agoMerge "java.util.Formatter: fix localization of numbers." into dalvik-dev
Elliott Hughes [Thu, 15 Apr 2010 23:31:51 +0000 (16:31 -0700)]
Merge "java.util.Formatter: fix localization of numbers." into dalvik-dev

14 years agojava.util.Formatter: fix localization of numbers.
Elliott Hughes [Thu, 15 Apr 2010 21:16:58 +0000 (14:16 -0700)]
java.util.Formatter: fix localization of numbers.

Bug: 2301911
Change-Id: Ic594702a80bdef2e8fd97e52fd5fa301def19cac

14 years agoopenssl-1.0.0 upgrade
Brian Carlstrom [Thu, 15 Apr 2010 21:00:03 +0000 (14:00 -0700)]
openssl-1.0.0 upgrade

external/openssl

    Updated version to 1.0.0
openssl.version

    Updated small records patch for 1.0.0. This is probably the most significant change.
patches/small_records.patch

    Removed bad_version.patch since fix is included in 0.9.8n and beyond
patches/README
patches/bad_version.patch
openssl.config

    Changed import_openssl.sh to generate armv4 asm with the 1.0.0
    scripts, not our backported 0.9.9-dev backported version in
    patches/arm-asm.patch.
import_openssl.sh
openssl.config
patches/README
patches/arm-asm.patch

    Added -DOPENSSL_NO_STORE to match ./Configure output
    Added -DOPENSSL_NO_WHIRLPOOL (no-whrlpool) to skip new optional cipher
android-config.mk
openssl.config

    Fixed import to remove include directory during import like other
    imported directories (apps, ssl, crypto)
import_openssl.sh

    Updated UNNEEDED_SOURCES. Pruned Makefiles which we don't use.
openssl.config

    Updated to build newly required files
patches/apps_Android.mk
patches/crypto_Android.mk

    Disable some new openssl tools
patches/progs.patch

    Automatically imported
android.testssl/
apps/
crypto/
e_os.h
e_os2.h
include/
ssl/

dalvik

   Change makeCipherList to skip SSLv2 ciphers that 1.0.0 now returns
   so there are not duplicate ciphersuite names in getEnabledCipherSuites.
libcore/x-net/src/main/native/org_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp

   Updated OpenSSLSocketImpl_cipherauthenticationmethod for new
   SSL_CIPHER algorithms -> algorithm_auth (and const-ness)
libcore/x-net/src/main/native/org_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp

   Update to const SSL_CIPHER in OpenSSLSessionImpl_getCipherSuite (and cipherauthenticationmethod)
libcore/x-net/src/main/native/org_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp

   test_EnabledCipherSuites on both SSLSocketTest and
   SSLServerSocketTest caught the makeCipherList problem. However the
   asserts where a bit out of sync and didn't give good messages
   because they didn't actually show what was going on. As part of
   debugging the issue they found, I tried to make align the asserts
   and improve their output for the future.

libcore/x-net/src/test/java/tests/api/javax/net/ssl/SSLServerSocketTest.java
libcore/x-net/src/test/java/tests/api/javax/net/ssl/SSLSocketTest.java

vendor/google

    Add const to X509V3_EXT_METHOD* for 1.0.0 compatibility
libraries/libjingle/talk/base/openssladapter.cc

Change-Id: I9e848c79772211d3956f8561ec526339b30e24a4

14 years agoam 6b4ba58e: Add a mechanism to long a sample of long running lock acquisitions.
Carl Shapiro [Thu, 15 Apr 2010 22:32:07 +0000 (15:32 -0700)]
am 6b4ba58e: Add a mechanism to long a sample of long running lock acquisitions.

Merge commit '6b4ba58ec937bfacba626112c46ebd003efbed21' into kraken

* commit '6b4ba58ec937bfacba626112c46ebd003efbed21':
  Add a mechanism to long a sample of long running lock acquisitions.

14 years agoMerge "From scratch implementation of a Navigable TreeMap." into dalvik-dev
Jesse Wilson [Thu, 15 Apr 2010 21:51:44 +0000 (14:51 -0700)]
Merge "From scratch implementation of a Navigable TreeMap." into dalvik-dev

14 years agoMerge commit 'da18d995' into manualmerge
Jesse Wilson [Thu, 15 Apr 2010 21:26:42 +0000 (14:26 -0700)]
Merge commit 'da18d995' into manualmerge

Conflicts:
libcore/luni/src/test/java/tests/api/java/io/PipedInputStreamTest.java

14 years agoam d9b87a91: Fix dexdump to build in Windows SDK under Linux
Raphael [Thu, 15 Apr 2010 21:07:15 +0000 (14:07 -0700)]
am d9b87a91: Fix dexdump to build in Windows SDK under Linux

Merge commit 'd9b87a918dfe98793faa08cb59012f652b4b8561' into dalvik-dev

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

14 years agoFrom scratch implementation of a Navigable TreeMap.
Jesse Wilson [Tue, 6 Apr 2010 06:27:51 +0000 (23:27 -0700)]
From scratch implementation of a Navigable TreeMap.

Between Java 5 and Java 6, Harmony's implementation ballooned
from ~2400 lines to ~5900 lines. This implementation is a more
compact ~1700 lines.

This implementation and its views have been rigorously tested
using Google Collections' test framework in addition to the
tests of our own suite.

14 years agoam a8984fe8: (-s ours) am ddc0d4c2: (-s ours) DO NOT MERGE. Suppressing tests that...
Jesse Wilson [Thu, 15 Apr 2010 19:34:29 +0000 (12:34 -0700)]
am a8984fe8: (-s ours) am ddc0d4c2: (-s ours) DO NOT MERGE. Suppressing tests that fail in CTS\' test runner.

14 years agoam e09ba122: Fixing PipedInputStreamTest to fill the buffer before dying on a dead...
Jesse Wilson [Thu, 15 Apr 2010 13:36:55 +0000 (06:36 -0700)]
am e09ba122: Fixing PipedInputStreamTest to fill the buffer before dying on a dead reader.

14 years agoAdd a mechanism to long a sample of long running lock acquisitions.
Carl Shapiro [Fri, 9 Apr 2010 22:03:33 +0000 (15:03 -0700)]
Add a mechanism to long a sample of long running lock acquisitions.

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

Change-Id: I0e57c81dcfc53d7065d420129d75ac32cda040e2

14 years agoam ddc0d4c2: (-s ours) DO NOT MERGE. Suppressing tests that fail in CTS\' test runner.
Jesse Wilson [Thu, 15 Apr 2010 00:08:44 +0000 (17:08 -0700)]
am ddc0d4c2: (-s ours) DO NOT MERGE. Suppressing tests that fail in CTS\' test runner.

Merge commit 'ddc0d4c2f8d3fea4ddaf6e611ffd73a1169447e8' into kraken

* commit 'ddc0d4c2f8d3fea4ddaf6e611ffd73a1169447e8':
  DO NOT MERGE. Suppressing tests that fail in CTS' test runner.

14 years agoDO NOT MERGE. Suppressing tests that fail in CTS' test runner.
Jesse Wilson [Wed, 14 Apr 2010 21:43:12 +0000 (14:43 -0700)]
DO NOT MERGE. Suppressing tests that fail in CTS' test runner.

These tests have been verified to work successfully in run-core-tests.
We plan on unifying CTS and Dalvik's test running infrastructure in this
quarter so that we don't need such unfortunate hacks.

Test failures: http://b/issue?id=2564250
Fix test runner: http://b/issue?id=2215226

Change-Id: I3df2f4de10705dc470e397da2d0f014141573da1

14 years agoMerge "Remove "Messages" from the nio, prefs, sql, text, and x-net modules." into...
Elliott Hughes [Wed, 14 Apr 2010 19:31:23 +0000 (12:31 -0700)]
Merge "Remove "Messages" from the nio, prefs, sql, text, and x-net modules." into dalvik-dev

14 years agoRemove "Messages" from the nio, prefs, sql, text, and x-net modules.
Elliott Hughes [Tue, 13 Apr 2010 23:05:10 +0000 (16:05 -0700)]
Remove "Messages" from the nio, prefs, sql, text, and x-net modules.

Also remove an file of unused messages from luni, and inline one of luni's
other files. (There are plenty more.)

Also remove some German translations of bouncycastle messages (that are
actually in English anyway).

Change-Id: I9c565f6f2201a5d877eba5bf0af4ffad7b769984

14 years agoFixing PipedInputStreamTest to fill the buffer before dying on a dead reader.
Jesse Wilson [Wed, 14 Apr 2010 01:02:47 +0000 (18:02 -0700)]
Fixing PipedInputStreamTest to fill the buffer before dying on a dead reader.

Change-Id: Ie34a8bec7b2a34d2933225d6d4e04e0643dbcf99

14 years agoFix a typo and unbreak the build.
Carl Shapiro [Tue, 13 Apr 2010 23:48:27 +0000 (16:48 -0700)]
Fix a typo and unbreak the build.

Change-Id: Ib05e4d7602f3614e9eb792bd29ff7288de574e84

14 years agoresolved conflicts for merge of f0c514ce to dalvik-dev
Carl Shapiro [Tue, 13 Apr 2010 23:34:33 +0000 (16:34 -0700)]
resolved conflicts for merge of f0c514ce to dalvik-dev

Change-Id: Ie9274ee7a4e767e197f53bd350c835fedbca3ae9

14 years agoUse the same documentation in all the methods that take a format string.
Elliott Hughes [Tue, 13 Apr 2010 22:30:18 +0000 (15:30 -0700)]
Use the same documentation in all the methods that take a format string.

Change-Id: I8e7d06df72a7b8db9edd17aa2748800329e837fa

14 years agoRemove "Messages" from the annotation module.
Elliott Hughes [Tue, 13 Apr 2010 22:23:01 +0000 (15:23 -0700)]
Remove "Messages" from the annotation module.

Change-Id: I6253fa192bb45fc06db99937aca30ee4dd0bb201

14 years agoImprove documentation about the user's default locale.
Elliott Hughes [Tue, 13 Apr 2010 21:28:42 +0000 (14:28 -0700)]
Improve documentation about the user's default locale.

Add a bit of text to Locale's class documentation, and include a link from
every method that uses Locale.getDefault(). Also try to consistently say
"user's default locale", as a subliminal hint that this isn't necessarily
the developer's locale, nor en_US.

Bug: 2593000
Change-Id: Ieebe864ed6b9fecbfef5d5415269299739cedd1b

14 years agoAdd a mechanism to long a sample of long running lock acquisitions.
Carl Shapiro [Fri, 9 Apr 2010 22:03:33 +0000 (15:03 -0700)]
Add a mechanism to long a sample of long running lock acquisitions.

Change-Id: Ic91c5f213bcfd72c6f630ef5102da2c6c7cc8ce4

14 years agoFix String.toLowerCase and toUpperCase.
Elliott Hughes [Tue, 13 Apr 2010 01:32:50 +0000 (18:32 -0700)]
Fix String.toLowerCase and toUpperCase.

Rather than try to cope with Lithuanian, let's just hand that one to ICU4C.
I've removed my hand-crafted Azeri/Turkish lowercasing too, in favor of ICU.
Presence of a high surrogate (which implies a supplemental character) is a
good reason to hand over to ICU too.

On the uppercasing side, I've kept our existing hard-coded table and just
added code to defer to ICU for Azeri, Lithuanian, and Turkish (plus
supplemental characters). I don't like the tables, but I don't have proof
that they're incorrect.

Bug: 2340628
Change-Id: I36b556b0444623a5aacc1afc58ebb4d84211d3dc

14 years agoFix supplementary character support.
Elliott Hughes [Mon, 12 Apr 2010 21:29:37 +0000 (14:29 -0700)]
Fix supplementary character support.

Fixes all known bugs in our handling of supplementary characters. This change
introduces a performance regression on the assumption that it won't be released
without a corresponding JIT change to enable the code to be inlined back to
pretty much what it used to be.

Bug: 2587122
Change-Id: I3449c9718bbe32ebe53b6c10454ae1dc82105b59

14 years agoMerge "Throw the same exceptions as the RI from String methods." into dalvik-dev
Elliott Hughes [Mon, 12 Apr 2010 17:29:14 +0000 (10:29 -0700)]
Merge "Throw the same exceptions as the RI from String methods." into dalvik-dev

14 years agoMerge commit '7dbf57f6' into manualmerge
Brian Carlstrom [Sat, 10 Apr 2010 23:07:24 +0000 (16:07 -0700)]
Merge commit '7dbf57f6' into manualmerge

Conflicts:
libcore/x-net/src/main/native/org_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp

Change-Id: I7cf63f6a1ca7c7604301cb8bb947633ad704a2c0

14 years agoThrow the same exceptions as the RI from String methods.
Elliott Hughes [Sat, 10 Apr 2010 19:01:10 +0000 (12:01 -0700)]
Throw the same exceptions as the RI from String methods.

String has its own StringIndexOutOfBoundsException subclass of
IndexOutOfBoundsException. We can run more tests if we behave
the same.

The RI only admits to IndexOutOfBoundsException, though,
so our documentation and throws clause shouldn't change.

Change-Id: Ib87777f8a42d4bcac21e8f8f00f4dcbc0ada4201

14 years agoam 5fdfbeff: Fix SSL_shutdown error reporting to print a proper error instead of...
Brian Carlstrom [Sat, 10 Apr 2010 18:54:58 +0000 (11:54 -0700)]
am 5fdfbeff: Fix SSL_shutdown error reporting to print a proper error instead of "Ok"

14 years agoMerge "Fix build by turning a comment into a doc comment. Clarify logic." into dalvik-dev
Elliott Hughes [Sat, 10 Apr 2010 17:22:05 +0000 (10:22 -0700)]
Merge "Fix build by turning a comment into a doc comment. Clarify logic." into dalvik-dev