OSDN Git Service

android-x86/dalvik.git
15 years agoam 96e0f60: Merge change 1369 into donut
Android (Google) Code Review [Mon, 11 May 2009 17:47:31 +0000 (10:47 -0700)]
am 96e0f60: Merge change 1369 into donut

Merge commit '96e0f600a6a52aa1424c1e8787fc40c1b3b3f79a'

* commit '96e0f600a6a52aa1424c1e8787fc40c1b3b3f79a':
  Updated a comment.

15 years agoMerge change 1369 into donut
Android (Google) Code Review [Mon, 11 May 2009 17:46:25 +0000 (10:46 -0700)]
Merge change 1369 into donut

* changes:
  Updated a comment.

15 years agoUpdated a comment.
Andy McFadden [Mon, 11 May 2009 17:44:52 +0000 (10:44 -0700)]
Updated a comment.

15 years agoam ac02d18: am 2de2459: AI 148670: More tests that need to be marked bro
Jorg Pleumann [Mon, 11 May 2009 17:16:41 +0000 (10:16 -0700)]
am ac02d18: am 2de2459: AI 148670: More tests that need to be marked bro

Merge commit 'ac02d185cf7f5b494c621ca67a4d786348deac3a'

* commit 'ac02d185cf7f5b494c621ca67a4d786348deac3a':
  AI 148670: More tests that need to be marked broken, since

15 years agoam 2de2459: AI 148670: More tests that need to be marked broken, since
Jorg Pleumann [Mon, 11 May 2009 17:12:32 +0000 (10:12 -0700)]
am 2de2459: AI 148670: More tests that need to be marked broken, since

Merge commit '2de2459caf88698400b7bcadaf87b5767b22f81e' into donut

* commit '2de2459caf88698400b7bcadaf87b5767b22f81e':
  AI 148670: More tests that need to be marked broken, since

15 years agoAI 148670: More tests that need to be marked broken, since
Jorg Pleumann [Mon, 11 May 2009 17:10:42 +0000 (10:10 -0700)]
AI 148670: More tests that need to be marked broken, since
  they behave differently in CTS and plain VM.
  Hopefully the last ones...
  BUG=1285921

Automated import of CL 148670

15 years agoam 99647fb: Pull the useful part of p9-132414 over to "donut".
Andy McFadden [Mon, 11 May 2009 14:46:27 +0000 (07:46 -0700)]
am 99647fb: Pull the useful part of p9-132414 over to "donut".

Merge commit '99647fbab2aee5730d277ddb2247709ccd4c95fa'

* commit '99647fbab2aee5730d277ddb2247709ccd4c95fa':
  Pull the useful part of p9-132414 over to "donut".

15 years agoPull the useful part of p9-132414 over to "donut".
Andy McFadden [Fri, 8 May 2009 22:26:33 +0000 (15:26 -0700)]
Pull the useful part of p9-132414 over to "donut".

This was inspired by some valgrind complaints marcone noticed.  The change
is already part of "master".

(I just noticed that the comment isn't quite right, but hopefully if I leave
it alone it'll merge trivially and I can fix it up in a subsequent change.)

15 years agoIncrease size of LinearAlloc region, and warn about massive Mirandizing.
Andy McFadden [Fri, 8 May 2009 18:25:35 +0000 (11:25 -0700)]
Increase size of LinearAlloc region, and warn about massive Mirandizing.

15 years agoMerge change 1170
Android (Google) Code Review [Thu, 7 May 2009 21:21:34 +0000 (14:21 -0700)]
Merge change 1170

* changes:
  Added throw-verification-error instruction.

15 years agoAdded throw-verification-error instruction.
Andy McFadden [Thu, 7 May 2009 20:30:23 +0000 (13:30 -0700)]
Added throw-verification-error instruction.

This is for the deferred verifier error reporting.  It replaces OP_UNUSED_ED.
The instructions aren't actually used yet, which is good since the x86
version hasn't been written yet.

The mterp regen also pushed out some recent-ish changes that hadn't
propagated to the armv4t sources.

15 years agoam dbd5c90: am c423b40: AI 148447: Marking some more tests as broken, be
Jorg Pleumann [Thu, 7 May 2009 16:29:25 +0000 (09:29 -0700)]
am dbd5c90: am c423b40: AI 148447: Marking some more tests as broken, be

Merge commit 'dbd5c902c3cca79e22d0f38539cc195ef7395647'

* commit 'dbd5c902c3cca79e22d0f38539cc195ef7395647':
  AI 148447: Marking some more tests as broken, because they

15 years agoam c423b40: AI 148447: Marking some more tests as broken, because they
Jorg Pleumann [Thu, 7 May 2009 16:25:18 +0000 (09:25 -0700)]
am c423b40: AI 148447: Marking some more tests as broken, because they

Merge commit 'c423b4096a09b1c1eae05b8ef37e7e3c428e0b92' into donut

* commit 'c423b4096a09b1c1eae05b8ef37e7e3c428e0b92':
  AI 148447: Marking some more tests as broken, because they

15 years agoAI 148447: Marking some more tests as broken, because they
Jorg Pleumann [Thu, 7 May 2009 16:22:59 +0000 (09:22 -0700)]
AI 148447: Marking some more tests as broken, because they
  don't work properly in the CTS environment for
  some reason.
  BUG=1285921

Automated import of CL 148447

15 years agoam 61df6ac: am 2f563a4: AI 148431: Marking as broken a couple of tests
Jorg Pleumann [Thu, 7 May 2009 08:41:22 +0000 (01:41 -0700)]
am 61df6ac: am 2f563a4: AI 148431: Marking as broken a couple of tests

Merge commit '61df6ac69e6614cb9986bf4ce3626dda914e0c6a'

* commit '61df6ac69e6614cb9986bf4ce3626dda914e0c6a':
  AI 148431: Marking as broken a couple of tests

15 years agoam 2f563a4: AI 148431: Marking as broken a couple of tests
Jorg Pleumann [Thu, 7 May 2009 08:36:27 +0000 (01:36 -0700)]
am 2f563a4: AI 148431: Marking as broken a couple of tests

Merge commit '2f563a4590c4a0e54177906c47d50f4ef454eba5' into donut

* commit '2f563a4590c4a0e54177906c47d50f4ef454eba5':
  AI 148431: Marking as broken a couple of tests

15 years agoAI 148431: Marking as broken a couple of tests
Jorg Pleumann [Thu, 7 May 2009 08:35:52 +0000 (01:35 -0700)]
AI 148431: Marking as broken a couple of tests
  that tend to fail in the CTS host.
  BUG=1285921

Automated import of CL 148431

15 years agoMerge change 1112
Android (Google) Code Review [Wed, 6 May 2009 23:50:09 +0000 (16:50 -0700)]
Merge change 1112

* changes:
  Say a few words about the virtues of IsSameObject.

15 years agoSay a few words about the virtues of IsSameObject.
Andy McFadden [Wed, 6 May 2009 23:48:33 +0000 (16:48 -0700)]
Say a few words about the virtues of IsSameObject.

15 years agoam 619309e: Merge change 1003 into donut
Android (Google) Code Review [Wed, 6 May 2009 23:40:19 +0000 (16:40 -0700)]
am 619309e: Merge change 1003 into donut

Merge commit '619309e6a11b623b48b7231de712eaed3d469531'

* commit '619309e6a11b623b48b7231de712eaed3d469531':
  Add support for tracing Java method entry/exit in emulator.

15 years agoMerge change 1003 into donut
Android (Google) Code Review [Wed, 6 May 2009 23:38:16 +0000 (16:38 -0700)]
Merge change 1003 into donut

* changes:
  Add support for tracing Java method entry/exit in emulator.

15 years agoAdd support for tracing Java method entry/exit in emulator.
Jack Veenstra [Tue, 5 May 2009 18:29:51 +0000 (11:29 -0700)]
Add support for tracing Java method entry/exit in emulator.

This is part of a larger change and depends on changes to the
kernel and the emulator tracing code.  The code used to work by
by writing to a "magic page" which the emulator would notice
because it watches every load and store.  But the emulator lost
the ability to watch every load and store with the latest update
to qemu.  So the new code sets up a memory-mapped page that the
emulator watches.  This is cleaner and more efficient anyway.

15 years agoam 921d947: Merge change 1055 into donut
Android (Google) Code Review [Wed, 6 May 2009 18:41:48 +0000 (11:41 -0700)]
am 921d947: Merge change 1055 into donut

Merge commit '921d9479afef6d6df1ed9c60ef8f3110e4ad7fde'

* commit '921d9479afef6d6df1ed9c60ef8f3110e4ad7fde':
  Fix issue 1687880.

15 years agoMerge change 1055 into donut
Android (Google) Code Review [Wed, 6 May 2009 18:41:05 +0000 (11:41 -0700)]
Merge change 1055 into donut

* changes:
  Fix issue 1687880.

15 years agomerge a2ee53b and resolved conflicts...
Andy McFadden [Wed, 6 May 2009 17:19:16 +0000 (10:19 -0700)]
merge a2ee53b and resolved conflicts...

15 years agoFix issue 1687880.
Jing Yu [Wed, 6 May 2009 03:34:38 +0000 (20:34 -0700)]
Fix issue 1687880.

Change argument va_list to a standard representation.

15 years agoAdded XML output mode for dexdump.
Andy McFadden [Tue, 5 May 2009 23:52:10 +0000 (16:52 -0700)]
Added XML output mode for dexdump.

This adds an output mode that looks similar to the "current.xml" we
generate for our public APIs.  There are a number of differences in
content.  The original ("plain") output has not been altered.

I pulled in the bad checksum handling change (internal 142686) since
it's small, has turned out to be useful, and might make the merge of
this to master slightly easier.

This also renames a buffer in the ongoing temp file variable saga.

15 years agoMerge change 996
Android (Google) Code Review [Tue, 5 May 2009 20:12:21 +0000 (13:12 -0700)]
Merge change 996

* changes:
  A foolish consistency is the hobgoblin of little minds.     -- Ralph Waldo Emerson

15 years agoA foolish consistency is the hobgoblin of little minds.
Dan Bornstein [Tue, 5 May 2009 18:15:23 +0000 (11:15 -0700)]
A foolish consistency is the hobgoblin of little minds.
    -- Ralph Waldo Emerson

15 years agoam 6d874d2: Merge change 993 into donut
Android (Google) Code Review [Tue, 5 May 2009 18:19:16 +0000 (11:19 -0700)]
am 6d874d2: Merge change 993 into donut

Merge commit '6d874d2bda563ada1034d2b3219b35d800fc6860'

* commit '6d874d2bda563ada1034d2b3219b35d800fc6860':
  Pull fix from master branch, and correct filename juggling.

15 years agoMerge change 993 into donut
Android (Google) Code Review [Tue, 5 May 2009 18:15:46 +0000 (11:15 -0700)]
Merge change 993 into donut

* changes:
  Pull fix from master branch, and correct filename juggling.

15 years agoPull fix from master branch, and correct filename juggling.
Andy McFadden [Tue, 5 May 2009 17:45:51 +0000 (10:45 -0700)]
Pull fix from master branch, and correct filename juggling.

The original fix was in p4 144906.  This also corrects some problems that
arise when the temp file is specified.

15 years agoMerge change 948
Android (Google) Code Review [Tue, 5 May 2009 16:56:10 +0000 (09:56 -0700)]
Merge change 948

* changes:
  Tweaks, Mostly grep-based, to better conform to the coding guidelines.

15 years agoTweaks, Mostly grep-based, to better conform to the coding guidelines.
Dan Bornstein [Mon, 4 May 2009 21:03:49 +0000 (14:03 -0700)]
Tweaks, Mostly grep-based, to better conform to the coding guidelines.

15 years agoam 1444f86: Merge change 945 into donut
Android (Google) Code Review [Mon, 4 May 2009 20:33:04 +0000 (13:33 -0700)]
am 1444f86: Merge change 945 into donut

Merge commit '1444f86148b2844800044b4776e2a35d362f3fa9'

* commit '1444f86148b2844800044b4776e2a35d362f3fa9':
  Moved the context class loader init down a bit to ensure proper init.

15 years agoMerge change 945 into donut
Android (Google) Code Review [Mon, 4 May 2009 20:32:58 +0000 (13:32 -0700)]
Merge change 945 into donut

* changes:
  Moved the context class loader init down a bit to ensure proper init.

15 years agoMoved the context class loader init down a bit to ensure proper init.
Andy McFadden [Mon, 4 May 2009 20:29:30 +0000 (13:29 -0700)]
Moved the context class loader init down a bit to ensure proper init.

Since we're executing interpreted code it's best if we set the context
class loader as late as possible in this function.  I also updated a few
comments while I was in there.

15 years agoam 8bad31e: Merge change 944 into donut
Android (Google) Code Review [Mon, 4 May 2009 19:59:36 +0000 (12:59 -0700)]
am 8bad31e: Merge change 944 into donut

Merge commit '8bad31ef86b3179b5725ac6e0ca9f615025b35b9'

* commit '8bad31ef86b3179b5725ac6e0ca9f615025b35b9':
  Set the main thread's context class loader to the system class loader.

15 years agoMerge change 944 into donut
Android (Google) Code Review [Mon, 4 May 2009 19:58:07 +0000 (12:58 -0700)]
Merge change 944 into donut

* changes:
  Set the main thread's context class loader to the system class loader.

15 years agoSet the main thread's context class loader to the system class loader.
Andy McFadden [Mon, 4 May 2009 19:52:57 +0000 (12:52 -0700)]
Set the main thread's context class loader to the system class loader.

15 years agoam 1cf3b27: Test for null object in the Get<Type>Field and Set<Type>Fiel
Andy McFadden [Mon, 4 May 2009 19:45:48 +0000 (12:45 -0700)]
am 1cf3b27: Test for null object in the Get<Type>Field and Set<Type>Fiel

Merge commit '1cf3b27e857824af08bab76489b6e25a213edc8d'

* commit '1cf3b27e857824af08bab76489b6e25a213edc8d':
  Test for null object in the Get<Type>Field and Set<Type>Field JNI functions.

15 years agoTest for null object in the Get<Type>Field and Set<Type>Field JNI functions.
Andy McFadden [Mon, 4 May 2009 19:28:51 +0000 (12:28 -0700)]
Test for null object in the Get<Type>Field and Set<Type>Field JNI functions.

Also adds some "return" calls after abortMaybe(), since it won't actually
abort if "warnonly" is set.

15 years agoClean up a couple more files.
Dan Bornstein [Fri, 1 May 2009 23:11:08 +0000 (16:11 -0700)]
Clean up a couple more files.

As usual, I did this while browsing the SSA code in an attempt to
understand what's going on with the weird local register assignment
issue.

15 years agoam 8eeeefc: Merge change 891 into donut
Android (Google) Code Review [Fri, 1 May 2009 19:41:35 +0000 (12:41 -0700)]
am 8eeeefc: Merge change 891 into donut

Merge commit '8eeeefccffb5e06107cd444436cc229f282a2b72'

* commit '8eeeefccffb5e06107cd444436cc229f282a2b72':
  Corrected behavior of Constructor.newInstance on abstract classes.

15 years agoMerge change 891 into donut
Android (Google) Code Review [Fri, 1 May 2009 19:27:34 +0000 (12:27 -0700)]
Merge change 891 into donut

* changes:
  Corrected behavior of Constructor.newInstance on abstract classes.

15 years agoCorrected behavior of Constructor.newInstance on abstract classes.
Andy McFadden [Fri, 1 May 2009 00:47:50 +0000 (17:47 -0700)]
Corrected behavior of Constructor.newInstance on abstract classes.

The VM now throws an exception when somebody tries to create an instance
of an abstract class through a Constructor object.  It also ensures that
the class is initialized before attempting to create an instance.

This change adds some Constructor tests to the 042-new-instance VM test.
(It also pulls in some additions that were made to the 042 test back
in March, on the p4 master branch.)

15 years agoMerge change 849
Android (Google) Code Review [Fri, 1 May 2009 19:03:49 +0000 (12:03 -0700)]
Merge change 849

* changes:
  Corrected behavior of Constructor.newInstance on abstract classes.

15 years agoam 399fbc0: Merge change 818 into donut
Android (Google) Code Review [Fri, 1 May 2009 18:58:58 +0000 (11:58 -0700)]
am 399fbc0: Merge change 818 into donut

Merge commit '399fbc0d87bbe4f2808cb582dc23f932432ea846'

* commit '399fbc0d87bbe4f2808cb582dc23f932432ea846':
  Changed the way we check the magic number in guard pages.

15 years agoMerge change 818 into donut
Android (Google) Code Review [Fri, 1 May 2009 18:31:23 +0000 (11:31 -0700)]
Merge change 818 into donut

* changes:
  Changed the way we check the magic number in guard pages.

15 years agoCorrected behavior of Constructor.newInstance on abstract classes.
Andy McFadden [Fri, 1 May 2009 00:47:50 +0000 (17:47 -0700)]
Corrected behavior of Constructor.newInstance on abstract classes.

The VM now throws an exception when somebody tries to create an instance
of an abstract class through a Constructor object.  It also ensures that
the class is initialized before attempting to create an instance.

This change adds some Constructor tests to the 042-new-instance VM test.

15 years agoDrop a copyright notice in at the end.
Andy McFadden [Thu, 30 Apr 2009 21:12:27 +0000 (14:12 -0700)]
Drop a copyright notice in at the end.

15 years agoChanged the way we check the magic number in guard pages.
Andy McFadden [Thu, 30 Apr 2009 20:25:59 +0000 (13:25 -0700)]
Changed the way we check the magic number in guard pages.

Use memcmp instead of "==" so that, if the pointer is unaligned on a
platform where alignment matters, we fail with a nice warning instead
of a bus error.

Found while tracking down bug 1823434.

15 years agoMerge branch 'master' of ssh://android-git.corp.google.com:29418/platform/dalvik
Joe Onorato [Thu, 30 Apr 2009 04:20:29 +0000 (21:20 -0700)]
Merge branch 'master' of ssh://android-git.corp.google.com:29418/platform/dalvik

15 years agoMerge change 764
Android (Google) Code Review [Wed, 29 Apr 2009 23:09:27 +0000 (16:09 -0700)]
Merge change 764

* changes:
  Script that formats dvm_gc_info lines.

15 years agoScript that formats dvm_gc_info lines.
Andy McFadden [Wed, 29 Apr 2009 22:55:28 +0000 (15:55 -0700)]
Script that formats dvm_gc_info lines.

Simple (?) script that parses the dvm_gc_info lines out of the event log
and parses the contents.  Mostly useful for displaying the external
allocation "limit" and "allocated" values, which don't really show up
anywhere else.

15 years agoam 2c98747: Improve zygote heap sharing.
Barry Hayes [Wed, 29 Apr 2009 20:10:13 +0000 (13:10 -0700)]
am 2c98747: Improve zygote heap sharing.

Merge commit '2c98747b403970ef4b3352e271633f93935b9825'

* commit '2c98747b403970ef4b3352e271633f93935b9825':
  Improve zygote heap sharing.

15 years agoam 50f46fd: am 14da4cc: AI 147896: Some more fixes for tests that failed
Jorg Pleumann [Wed, 29 Apr 2009 19:06:37 +0000 (12:06 -0700)]
am 50f46fd: am 14da4cc: AI 147896: Some more fixes for tests that failed

Merge commit '50f46fdcf99609da579d08668fe4d3d05aaf6c0c'

* commit '50f46fdcf99609da579d08668fe4d3d05aaf6c0c':
  AI 147896: Some more fixes for tests that failed in

15 years agoam 8073bbc: am ef71222: AI 147838: A couple of fixes for making the
Jorg Pleumann [Wed, 29 Apr 2009 19:06:36 +0000 (12:06 -0700)]
am 8073bbc: am ef71222: AI 147838: A couple of fixes for making the

Merge commit '8073bbcc99d6a66f49497915ee12ce13f5b2ef85'

* commit '8073bbcc99d6a66f49497915ee12ce13f5b2ef85':
  AI 147838: A couple of fixes for making the

15 years agoam 4e3cc66: am 4645b7c: AI 147732: fix broken links
Scott Main [Wed, 29 Apr 2009 19:06:36 +0000 (12:06 -0700)]
am 4e3cc66: am 4645b7c: AI 147732: fix broken links

Merge commit '4e3cc66298b8e6d97670d3ed0b4170fb161d36f3'

* commit '4e3cc66298b8e6d97670d3ed0b4170fb161d36f3':
  AI 147732: fix broken links

15 years agoam 8c5029b: am 210c512: AI 147726: Getting rid of tests.luni.AllTests an
Jorg Pleumann [Wed, 29 Apr 2009 19:06:35 +0000 (12:06 -0700)]
am 8c5029b: am 210c512: AI 147726: Getting rid of tests.luni.AllTests an

Merge commit '8c5029b6aeb814facb790f4a460d85637401ede3'

* commit '8c5029b6aeb814facb790f4a460d85637401ede3':
  AI 147726: Getting rid of tests.luni.AllTests and

15 years agoam 28352aa: am 7cc0301: AI 147723: This should have been deleted a while
Jorg Pleumann [Wed, 29 Apr 2009 19:06:35 +0000 (12:06 -0700)]
am 28352aa: am 7cc0301: AI 147723: This should have been deleted a while

Merge commit '28352aafc2dba4e0f2c507649706389e1bea327e'

* commit '28352aafc2dba4e0f2c507649706389e1bea327e':
  AI 147723: This should have been deleted a while ago, since

15 years agoam d26d3fc: am 3fb3946: AI 147687: Several fixes for failing tests in th
Urs Grob [Wed, 29 Apr 2009 19:06:34 +0000 (12:06 -0700)]
am d26d3fc: am 3fb3946: AI 147687: Several fixes for failing tests in th

Merge commit 'd26d3fc95151c78102bc7bff12bb4b099424fd3f'

* commit 'd26d3fc95151c78102bc7bff12bb4b099424fd3f':
  AI 147687: Several fixes for failing tests in the cts host. also tests that timeout

15 years agoam fbf8886: am 119c75d: AI 147660: Fixes for tests in the security modul
Urs Grob [Wed, 29 Apr 2009 19:06:34 +0000 (12:06 -0700)]
am fbf8886: am 119c75d: AI 147660: Fixes for tests in the security modul

Merge commit 'fbf888693006c4135f61f7113dab80af44241681'

* commit 'fbf888693006c4135f61f7113dab80af44241681':
  AI 147660: Fixes for tests in the security module.

15 years agoam 025322b: am 2b828ef: AI 147464: Some small bugfixes for the core test
Jorg Pleumann [Wed, 29 Apr 2009 19:06:33 +0000 (12:06 -0700)]
am 025322b: am 2b828ef: AI 147464: Some small bugfixes for the core test

Merge commit '025322b5586f76fb2b886700f7a01deaa5d513bd'

* commit '025322b5586f76fb2b886700f7a01deaa5d513bd':
  AI 147464: Some small bugfixes for the core tests.

15 years agoam 1c7ba87: Fix an infinite loop in ClassLoader.isAncestorOf()
Urs Grob [Wed, 29 Apr 2009 19:06:33 +0000 (12:06 -0700)]
am 1c7ba87: Fix an infinite loop in ClassLoader.isAncestorOf()

Merge commit '1c7ba87b216ec3de563ac4d70548313da9b9bc1b'

* commit '1c7ba87b216ec3de563ac4d70548313da9b9bc1b':
  Fix an infinite loop in ClassLoader.isAncestorOf()

15 years agoam f2931ca: Fix for excessive GREF use in gethostbyaddr.
Urs Grob [Wed, 29 Apr 2009 19:06:33 +0000 (12:06 -0700)]
am f2931ca: Fix for excessive GREF use in gethostbyaddr.

Merge commit 'f2931ca22c6307a8740f2ec61795f7cfa6971262'

* commit 'f2931ca22c6307a8740f2ec61795f7cfa6971262':
  Fix for excessive GREF use in gethostbyaddr.

15 years agoam b8beb5f: vm: Replace a reference to TARGET_BUILD_TYPE with DEBUG_DALV
The Android Open Source Project [Wed, 29 Apr 2009 19:05:19 +0000 (12:05 -0700)]
am b8beb5f: vm: Replace a reference to TARGET_BUILD_TYPE with DEBUG_DALV

15 years agoam 4c99ba4: Merge change 374 into donut
Android (Google) Code Review [Wed, 29 Apr 2009 18:03:06 +0000 (11:03 -0700)]
am 4c99ba4: Merge change 374 into donut

Merge commit '4c99ba4317b8b900315c5e28322f1410d76c3d58'

* commit '4c99ba4317b8b900315c5e28322f1410d76c3d58':
  vm: Add support for changing the scheduler group for a thread.

15 years agoImprove zygote heap sharing.
Barry Hayes [Mon, 6 Apr 2009 17:03:48 +0000 (10:03 -0700)]
Improve zygote heap sharing.

[ This is bhayes change 9488 in external "master" ]

Lots of ClassObject structures are unshared [and thus make whole pages
unshared]. A big contributor to this is the initializing class loader
logic, which has two writable words in a ClassObject and does indeed
seem to write them a lot.

Class which are created "early" have a low serial number and are
probably being created by the zygote, and would benefit from better
sharing. This change move the two words for classes with a low serial
number to a global, making the two words in those ClassObjects unused,
and thus more likely to be shared across apps.

Measured increase in sharing is c 100K per app, at a cost of c 32K
increase in unshared globals.

This might be better as a Set<Pair<Class,ClassLoader>> or
something. Many ClassObjects have zero loaders, and the typical count
seems to be very small. It should be possible to remove the two words
from the ClassObject and at the same time have a smaller global data
structure.

Respond to reviewer's comments.
Moved the "external" InitiatingLoaderList[] from gDvm to allocated storage.
Made the warning for the "const" go away.
Remove "vm/Init.c" from the commit
Revert Globals.h to not contain ZYGOTE_CLASS_CUTOFF
Use calloc rather than malloc/clear

15 years agoam 14da4cc: AI 147896: Some more fixes for tests that failed in
Jorg Pleumann [Wed, 29 Apr 2009 04:53:13 +0000 (21:53 -0700)]
am 14da4cc: AI 147896: Some more fixes for tests that failed in

Merge commit '14da4ccdd69d8db7cef00b2ae5aabd32b6e1bdb4' into donut

* commit '14da4ccdd69d8db7cef00b2ae5aabd32b6e1bdb4':
  AI 147896: Some more fixes for tests that failed in

15 years agoam ef71222: AI 147838: A couple of fixes for making the
Jorg Pleumann [Wed, 29 Apr 2009 04:53:12 +0000 (21:53 -0700)]
am ef71222: AI 147838: A couple of fixes for making the

Merge commit 'ef7122278207e33b724c6360945f9eae1f9a5a58' into donut

* commit 'ef7122278207e33b724c6360945f9eae1f9a5a58':
  AI 147838: A couple of fixes for making the

15 years agoam 4645b7c: AI 147732: fix broken links
Scott Main [Wed, 29 Apr 2009 04:53:12 +0000 (21:53 -0700)]
am 4645b7c: AI 147732: fix broken links

Merge commit '4645b7c3a461769281a0b2b846a26c79e806aaa0' into donut

* commit '4645b7c3a461769281a0b2b846a26c79e806aaa0':
  AI 147732: fix broken links

15 years agoam 210c512: AI 147726: Getting rid of tests.luni.AllTests and
Jorg Pleumann [Wed, 29 Apr 2009 04:53:12 +0000 (21:53 -0700)]
am 210c512: AI 147726: Getting rid of tests.luni.AllTests and

Merge commit '210c51215f36a78183de70a19987dc2ece2fda30' into donut

* commit '210c51215f36a78183de70a19987dc2ece2fda30':
  AI 147726: Getting rid of tests.luni.AllTests and

15 years agoam 7cc0301: AI 147723: This should have been deleted a while ago, since
Jorg Pleumann [Wed, 29 Apr 2009 04:53:11 +0000 (21:53 -0700)]
am 7cc0301: AI 147723: This should have been deleted a while ago, since

Merge commit '7cc03015bd1bcc14fcc5a0d4ad8b235b24992de2' into donut

* commit '7cc03015bd1bcc14fcc5a0d4ad8b235b24992de2':
  AI 147723: This should have been deleted a while ago, since

15 years agoam 3fb3946: AI 147687: Several fixes for failing tests in the cts host.
Urs Grob [Wed, 29 Apr 2009 04:53:11 +0000 (21:53 -0700)]
am 3fb3946: AI 147687: Several fixes for failing tests in the cts host.

Merge commit '3fb3946640bdc1294131417ac6593a789373090d' into donut

* commit '3fb3946640bdc1294131417ac6593a789373090d':
  AI 147687: Several fixes for failing tests in the cts host. also tests that timeout

15 years agoam 119c75d: AI 147660: Fixes for tests in the security module.
Urs Grob [Wed, 29 Apr 2009 04:53:11 +0000 (21:53 -0700)]
am 119c75d: AI 147660: Fixes for tests in the security module.

Merge commit '119c75dad5494ac611c74599747e4bdc071eced1' into donut

* commit '119c75dad5494ac611c74599747e4bdc071eced1':
  AI 147660: Fixes for tests in the security module.

15 years agoam 2b828ef: AI 147464: Some small bugfixes for the core tests.
Jorg Pleumann [Wed, 29 Apr 2009 04:53:10 +0000 (21:53 -0700)]
am 2b828ef: AI 147464: Some small bugfixes for the core tests.

Merge commit '2b828ef0e241e67319349a30285ee7b812173040' into donut

* commit '2b828ef0e241e67319349a30285ee7b812173040':
  AI 147464: Some small bugfixes for the core tests.

15 years agoChanged the way errors are propagated through the verifier.
Andy McFadden [Sat, 18 Apr 2009 00:23:37 +0000 (17:23 -0700)]
Changed the way errors are propagated through the verifier.

Changed the boolean "okay" to a "failure" enumeration.  Most failures are
"generic", but some are called out specially.  Added a more detailed
failure result from resolver functions.

In theory, no behavior has changed.

15 years agoAI 147896: Some more fixes for tests that failed in
Jorg Pleumann [Tue, 28 Apr 2009 17:12:13 +0000 (10:12 -0700)]
AI 147896: Some more fixes for tests that failed in
  the CTS, but worked fine in run-core-tests:
  - One cert test needs isolation, because
  it destroys the security provider.
  - The Thread.sleep() tests were too flaky.
  - Tests that tried to open a temporary DEX
  file failed in the CTS because we do not
  have access to the system DEX cache. We
  are now simply creating our own.
  The Java plan in the CTS should now pass
  fully. Yippie!
  BUG=1285921

Automated import of CL 147896

15 years agoFix an infinite loop in ClassLoader.isAncestorOf()
Urs Grob [Tue, 28 Apr 2009 16:20:31 +0000 (18:20 +0200)]
Fix an infinite loop in ClassLoader.isAncestorOf()

The current version loops endlessly if the callers ClassLoader
is not the same as the system ClassLoader. The cause for this is
a loop variable that is not changed during the loop.

BUG=1732214

15 years agoAdded two new Dalvik documents.
Andy McFadden [Mon, 27 Apr 2009 20:19:51 +0000 (13:19 -0700)]
Added two new Dalvik documents.

One explains the use of hprof, the other shows how to use the VM from
the command line.  These are partially based on some of my responses
to questions on external mailing lists.

15 years agoAI 147838: A couple of fixes for making the
Jorg Pleumann [Mon, 27 Apr 2009 16:15:18 +0000 (09:15 -0700)]
AI 147838: A couple of fixes for making the
  core tests work better in the CTS
  environment. Some tests had to be
  marked broken either because they
  either expose different behavior
  than in run-core-tests or they
  take too much time (beyond the
  CTS' timeout).
  BUG=1285921

Automated import of CL 147838

15 years agoFix for excessive GREF use in gethostbyaddr.
Urs Grob [Mon, 27 Apr 2009 10:53:09 +0000 (12:53 +0200)]
Fix for excessive GREF use in gethostbyaddr.

Each call to gethostbyaddr in java_net_InetAddress.cpp increases the
GREF by one. After calling the method around 1800 times the vm
crashes because of excessive global references.

15 years agoUpdated the "weird stuff you might see" section.
Andy McFadden [Fri, 24 Apr 2009 22:18:42 +0000 (15:18 -0700)]
Updated the "weird stuff you might see" section.

15 years agoAI 147732: fix broken links
Scott Main [Fri, 24 Apr 2009 20:41:43 +0000 (13:41 -0700)]
AI 147732: fix broken links
  BUG=1810005

Automated import of CL 147732

15 years agoAI 147726: Getting rid of tests.luni.AllTests and
Jorg Pleumann [Fri, 24 Apr 2009 20:09:44 +0000 (13:09 -0700)]
AI 147726: Getting rid of tests.luni.AllTests and
  corresponding CTS packages. The test
  suite contains mostly duplicate tests.
  Two tests would be better placed in the
  StrictMath test suite. Don't know where
  to put the ThreadsTest, which seems to
  actually test the com.sun.Unsafe class,
  so it stays orphaned for now.
  BUG=1285921

Automated import of CL 147726

15 years agoAI 147723: This should have been deleted a while ago, since
Jorg Pleumann [Fri, 24 Apr 2009 20:07:06 +0000 (13:07 -0700)]
AI 147723: This should have been deleted a while ago, since
  it's a dupe class.
  BUG=1285921

Automated import of CL 147723

15 years agoAI 147687: Several fixes for failing tests in the cts host. also tests that timeout
Urs Grob [Fri, 24 Apr 2009 10:21:36 +0000 (03:21 -0700)]
AI 147687: Several fixes for failing tests in the cts host. also tests that timeout
  are now marked with BrokenTest to exclude them for the time being until
  we have a way to execute them.
  BUG=1285921

Automated import of CL 147687

15 years agoAI 147660: Fixes for tests in the security module.
Urs Grob [Fri, 24 Apr 2009 08:47:22 +0000 (01:47 -0700)]
AI 147660: Fixes for tests in the security module.
  Some tests are still failing in the cts host environment. This CL fixes most of them in the security module
  BUG=1285921

Automated import of CL 147660

15 years agovm: Replace a reference to TARGET_BUILD_TYPE with DEBUG_DALVIK_VM
Dave Bort [Thu, 23 Apr 2009 22:06:59 +0000 (15:06 -0700)]
vm: Replace a reference to TARGET_BUILD_TYPE with DEBUG_DALVIK_VM

We're soon going to stop using TARGET_BUILD_TYPE==debug to debug
native modules.

Signed-off-by: Dave Bort <dbort@android.com>
15 years agoMerge change 374 into donut
Android (Google) Code Review [Thu, 23 Apr 2009 16:46:13 +0000 (09:46 -0700)]
Merge change 374 into donut

* changes:
  vm: Add support for changing the scheduler group for a thread. Also temporarily bumps the scheduler group for background threads while performing GC

15 years agovm: Add support for changing the scheduler group for a thread.
San Mehat [Tue, 21 Apr 2009 21:03:06 +0000 (14:03 -0700)]
vm: Add support for changing the scheduler group for a thread.
Also temporarily bumps the scheduler group for background threads while performing GC

Signed-off-by: San Mehat <san@google.com>
15 years agoAI 147464: Some small bugfixes for the core tests.
Jorg Pleumann [Thu, 23 Apr 2009 11:18:39 +0000 (04:18 -0700)]
AI 147464: Some small bugfixes for the core tests.
  Some need to be marked broken, because
  they take too long (or even forever) due
  to implementation problems. Some need
  to take into account differences between
  the CTS environment and the Dalvik VM,
  so they succeed in both cases.
  BUG=1285921

Automated import of CL 147464

15 years agoMerge donut into master
Jean-Baptiste Queru [Thu, 23 Apr 2009 01:33:12 +0000 (18:33 -0700)]
Merge donut into master

15 years agomerge cupcake into donut
Jean-Baptiste Queru [Thu, 23 Apr 2009 00:56:50 +0000 (17:56 -0700)]
merge cupcake into donut

15 years agoMerge donut into master
Jean-Baptiste Queru [Thu, 23 Apr 2009 00:12:13 +0000 (17:12 -0700)]
Merge donut into master

15 years agoAI 147386: am: CL 147384 Fixes from the review of 'Bringing luni down to 15 broken...
Urs Grob [Wed, 22 Apr 2009 20:47:10 +0000 (13:47 -0700)]
AI 147386: am: CL 147384 Fixes from the review of 'Bringing luni down to 15 broken tests.
  Not perfect, but an improvement.' that Joerg didn't fix yet.
  Original author: ursg
  Merged from: //branches/cupcake/...

Automated import of CL 147386

15 years agoMerge branch 'readonly-p4-master'
Urs Grob [Wed, 22 Apr 2009 17:09:15 +0000 (10:09 -0700)]
Merge branch 'readonly-p4-master'

15 years agoAI 147388: am: CL 147386 am: CL 147384 Fixes from the review of 'Bringing luni down...
Urs Grob [Wed, 22 Apr 2009 17:08:00 +0000 (10:08 -0700)]
AI 147388: am: CL 147386 am: CL 147384 Fixes from the review of 'Bringing luni down to 15 broken tests.
  Not perfect, but an improvement.' that Joerg didn't fix yet.
  Original author: ursg
  Merged from: //branches/cupcake/...
  Original author: android-build

Automated import of CL 147388

15 years agoAI 147384: Fixes from the review of 'Bringing luni down to 15 broken tests.
Urs Grob [Wed, 22 Apr 2009 17:03:01 +0000 (10:03 -0700)]
AI 147384: Fixes from the review of 'Bringing luni down to 15 broken tests.
  Not perfect, but an improvement.' that Joerg didn't fix yet.
  BUG=1285921

Automated import of CL 147384