OSDN Git Service

android-x86/dalvik.git
14 years agoMerge "The "partial GC" code should not copy immune bits when doing a full GC." into...
Barry Hayes [Wed, 5 May 2010 21:11:09 +0000 (14:11 -0700)]
Merge "The "partial GC" code should not copy immune bits when doing a full GC." into dalvik-dev

14 years agoThe "partial GC" code should not copy immune bits when doing a full GC.
Barry Hayes [Tue, 4 May 2010 20:32:12 +0000 (13:32 -0700)]
The "partial GC" code should not copy immune bits when doing a full GC.

Change-Id: I09f032e9a1dda585bd2475fc6d6f93f3ef1fc036

14 years agoMerge "Write until we fall over." into dalvik-dev
Andy McFadden [Tue, 4 May 2010 23:20:08 +0000 (16:20 -0700)]
Merge "Write until we fall over." into dalvik-dev

14 years agoWrite until we fall over.
Andy McFadden [Tue, 4 May 2010 22:41:22 +0000 (15:41 -0700)]
Write until we fall over.

Implement enh's idea about repeating write() until it fails.  Use it
in the zip expander and dexopt, which have an above-average chance of
failing due to lack of disk space.

Replace a stray DEFAULT_PAGE_SIZE with SYSTEM_PAGE_SIZE.  Apparently I
missed that during the Great Page Size Unification.

Change-Id: Id173cb7669330deebe2f24ae23ece4009a90e3bd

14 years agoMerge "Fix the identity hash code getter." into dalvik-dev
Carl Shapiro [Tue, 4 May 2010 22:20:54 +0000 (15:20 -0700)]
Merge "Fix the identity hash code getter." into dalvik-dev

14 years agoPropertly pin native method arguments.
Carl Shapiro [Tue, 4 May 2010 17:44:47 +0000 (10:44 -0700)]
Propertly pin native method arguments.

All objects that must be pinned during a collection must be discovered
before the scanning phase.  This ensures that the collector will not
relocate an object only to discover that its address cannot change.

Change-Id: I074eb02be22e62a764eb26ac85b5f66637e5015e

14 years agoFix the identity hash code getter.
Carl Shapiro [Tue, 4 May 2010 18:19:53 +0000 (11:19 -0700)]
Fix the identity hash code getter.

The address of the hash code for array objects was incorrectly rounded
up to the next double word instead of the next word as the comment
suggested.  Also, assert that we are not in receipt of a class object.
Class objects should not be in the hashed-and-moved state as they are
not yet relocatable.

Change-Id: I0d2ee147f3c144d7308e80aea32fc3dd1719402e

14 years agoMerge "Properly relocate objects with exposed identity hash codes." into dalvik-dev
Carl Shapiro [Tue, 4 May 2010 07:53:44 +0000 (00:53 -0700)]
Merge "Properly relocate objects with exposed identity hash codes." into dalvik-dev

14 years agoProperly relocate objects with exposed identity hash codes.
Carl Shapiro [Tue, 4 May 2010 03:14:14 +0000 (20:14 -0700)]
Properly relocate objects with exposed identity hash codes.

When the transporter encounters an identity hashed object it will
allocate an additional word in to-space that it fills with the
identity hash code.  The identity has code is the from-space address
for uncopied objects and a word immediately after the instance for
copied objects.  The transporter will update the hash code state when
it relocates the identity hash code.

All size computations are now performed by objectSize which now
interprets the hash code state.  Similarly, all transportation logic
has been moved to transportObject which knows how to allocate and fill
the word holding the identity hash code.

Change-Id: I4920e18299850168b41158de748c8331be541ca1

14 years agoam c0829fc9: (-s ours) am 7b04830a: am 80f7e83f: am 78115b68: am c03da3e8: Fix breakp...
Andy McFadden [Tue, 4 May 2010 00:22:27 +0000 (17:22 -0700)]
am c0829fc9: (-s ours) am 7b04830a: am 80f7e83f: am 78115b68: am c03da3e8: Fix breakpoint handling on switch statements.

Merge commit 'c0829fc9cd9dc4bc04db166df419931d40e72897' into dalvik-dev

* commit 'c0829fc9cd9dc4bc04db166df419931d40e72897':
  Fix breakpoint handling on switch statements.

14 years agoam 7b04830a: am 80f7e83f: am 78115b68: am c03da3e8: Fix breakpoint handling on switch...
Andy McFadden [Tue, 4 May 2010 00:12:25 +0000 (17:12 -0700)]
am 7b04830a: am 80f7e83f: am 78115b68: am c03da3e8: Fix breakpoint handling on switch statements.

14 years agoam 80f7e83f: am 78115b68: am c03da3e8: Fix breakpoint handling on switch statements.
Andy McFadden [Tue, 4 May 2010 00:10:48 +0000 (17:10 -0700)]
am 80f7e83f: am 78115b68: am c03da3e8: Fix breakpoint handling on switch statements.

14 years agoam 78115b68: am c03da3e8: Fix breakpoint handling on switch statements.
Andy McFadden [Tue, 4 May 2010 00:09:16 +0000 (17:09 -0700)]
am 78115b68: am c03da3e8: Fix breakpoint handling on switch statements.

Merge commit '78115b6899e6aa70a3834c3a5f7df9c53765b4ee' into kraken

* commit '78115b6899e6aa70a3834c3a5f7df9c53765b4ee':
  Fix breakpoint handling on switch statements.

14 years agoam c03da3e8: Fix breakpoint handling on switch statements.
Andy McFadden [Tue, 4 May 2010 00:08:07 +0000 (17:08 -0700)]
am c03da3e8: Fix breakpoint handling on switch statements.

Merge commit 'c03da3e87a0537b211f2300d594597d84898b8f7' into froyo-plus-aosp

* commit 'c03da3e87a0537b211f2300d594597d84898b8f7':
  Fix breakpoint handling on switch statements.

14 years agoFix breakpoint handling on switch statements.
Andy McFadden [Mon, 3 May 2010 23:11:20 +0000 (16:11 -0700)]
Fix breakpoint handling on switch statements.

Some debuggers (Eclipse and IntelliJ, but not jdb) appear to set
breakpoints at all addresses associated with a given bytecode offset.
Because dx emits line number information for the data tables used
by "switch" statements, we end up setting a breakpoint on the start
of the switch data.

In the past this wasn't a problem, but now that we're using "hard"
breakpoints it's causing the magic number at the start of the table
to be overwritten.  An explict test on the magic number is causing
the intepreter to throw an InternalError.

The quick fix is to refuse to stomp on a "magic" NOP.  Assuming the
line number table is otherwise valid and doesn't point into the middle
of a multi-word instruction, this should solve the problem.  (We can
check this during verification.)

Bug 2643148.

Change-Id: Ic96947da14ea2346a67f0eb769a1c006153da448

14 years agoMerge "Fix breakpoint handling on switch statements." into dalvik-dev
Andy McFadden [Mon, 3 May 2010 23:51:26 +0000 (16:51 -0700)]
Merge "Fix breakpoint handling on switch statements." into dalvik-dev

14 years agoMerge "Fixing bulk reads in ByteArray.MyInputStream" into dalvik-dev
Jesse Wilson [Mon, 3 May 2010 23:32:39 +0000 (16:32 -0700)]
Merge "Fixing bulk reads in ByteArray.MyInputStream" into dalvik-dev

14 years agoam 7580722d: am 860728a3: am e5ab92a2: am cf6ab741: merge from open-source master
The Android Open Source Project [Mon, 3 May 2010 23:28:45 +0000 (16:28 -0700)]
am 7580722d: am 860728a3: am e5ab92a2: am cf6ab741: merge from open-source master

Merge commit '7580722dd42463043e5192b86c1ca77b7fb6c4b5' into dalvik-dev

* commit '7580722dd42463043e5192b86c1ca77b7fb6c4b5':
  Adapt to new location of libcore
  Delete libcore, now in its own project

14 years agoFix breakpoint handling on switch statements.
Andy McFadden [Mon, 3 May 2010 23:11:20 +0000 (16:11 -0700)]
Fix breakpoint handling on switch statements.

Some debuggers (Eclipse and IntelliJ, but not jdb) appear to set
breakpoints at all addresses associated with a given bytecode offset.
Because dx emits line number information for the data tables used
by "switch" statements, we end up setting a breakpoint on the start
of the switch data.

In the past this wasn't a problem, but now that we're using "hard"
breakpoints it's causing the magic number at the start of the table
to be overwritten.  An explict test on the magic number is causing
the intepreter to throw an InternalError.

The quick fix is to refuse to stomp on a "magic" NOP.  Assuming the
line number table is otherwise valid and doesn't point into the middle
of a multi-word instruction, this should solve the problem.  (We can
check this during verification.)

Bug 2643148.

Change-Id: I8fe35539508fa4f56a3eecc375acc058cf9568e4

14 years agoam 860728a3: am e5ab92a2: am cf6ab741: merge from open-source master
The Android Open Source Project [Mon, 3 May 2010 23:20:41 +0000 (16:20 -0700)]
am 860728a3: am e5ab92a2: am cf6ab741: merge from open-source master

14 years agoam e5ab92a2: am cf6ab741: merge from open-source master
The Android Open Source Project [Mon, 3 May 2010 23:19:05 +0000 (16:19 -0700)]
am e5ab92a2: am cf6ab741: merge from open-source master

14 years agoam cf6ab741: merge from open-source master
The Android Open Source Project [Mon, 3 May 2010 23:17:51 +0000 (16:17 -0700)]
am cf6ab741: merge from open-source master

Merge commit 'cf6ab741c2a50b61d6cf1b1617e7a908caece6dd' into kraken

* commit 'cf6ab741c2a50b61d6cf1b1617e7a908caece6dd':
  Adapt to new location of libcore
  Delete libcore, now in its own project

14 years agomerge from open-source master
The Android Open Source Project [Mon, 3 May 2010 23:16:09 +0000 (16:16 -0700)]
merge from open-source master

Change-Id: I323b3e716af939a3307189e694f4cdb83b4eda80

14 years agoFixing bulk reads in ByteArray.MyInputStream
Jesse Wilson [Mon, 3 May 2010 22:27:11 +0000 (15:27 -0700)]
Fixing bulk reads in ByteArray.MyInputStream

This has never worked properly, but it didn't matter until recently
because neither the JDK's nor early Dalvik's DataInputStream was
exercising it. But in 2.0, Dalvik's DataInputStream prefers bulk
reads, which exercises this code when run on-device.

http://code.google.com/p/android/issues/detail?id=8115

The problem was that System.arraycopy call didn't include the start
offset in the call.

14 years agoAdapt to new location of libcore
Jean-Baptiste Queru [Mon, 3 May 2010 16:39:27 +0000 (09:39 -0700)]
Adapt to new location of libcore

Change-Id: Ic8106513bd8bd27ccd785f792dca5b2b48fdf9f5

14 years agoam d1bf0ff1: am 632320c9: am 948c39d2: am ff1965e6: am 743fe2ce: Merge "Throw an...
Ben Cheng [Mon, 3 May 2010 01:30:59 +0000 (18:30 -0700)]
am d1bf0ff1: am 632320c9: am 948c39d2: am ff1965e6: am 743fe2ce: Merge "Throw an exception in JIT\'ed code if dvmFindInterfaceMethodInCache returns NULL" into froyo

Merge commit 'd1bf0ff180ba3a6fbd9c668301be68de5c97f443' into dalvik-dev

* commit 'd1bf0ff180ba3a6fbd9c668301be68de5c97f443':
  Throw an exception in JIT'ed code if dvmFindInterfaceMethodInCache returns NULL

14 years agoam 02a1acfa: am e7295d6c: am 560b3568: am 8dbde000: am 73e00c82: Merge "Fix a memory...
Ben Cheng [Mon, 3 May 2010 01:30:57 +0000 (18:30 -0700)]
am 02a1acfa: am e7295d6c: am 560b3568: am 8dbde000: am 73e00c82: Merge "Fix a memory ordering bug when updating the inline cache for predicted chaining." into froyo

Merge commit '02a1acfa7dd85f4a3db87fbd278ffd4c63a15b4a' into dalvik-dev

* commit '02a1acfa7dd85f4a3db87fbd278ffd4c63a15b4a':
  Fix a memory ordering bug when updating the inline cache for predicted chaining.

14 years agoam 632320c9: am 948c39d2: am ff1965e6: am 743fe2ce: Merge "Throw an exception in...
Ben Cheng [Mon, 3 May 2010 01:29:39 +0000 (18:29 -0700)]
am 632320c9: am 948c39d2: am ff1965e6: am 743fe2ce: Merge "Throw an exception in JIT\'ed code if dvmFindInterfaceMethodInCache returns NULL" into froyo

14 years agoam e7295d6c: am 560b3568: am 8dbde000: am 73e00c82: Merge "Fix a memory ordering...
Ben Cheng [Mon, 3 May 2010 01:29:30 +0000 (18:29 -0700)]
am e7295d6c: am 560b3568: am 8dbde000: am 73e00c82: Merge "Fix a memory ordering bug when updating the inline cache for predicted chaining." into froyo

14 years agoam 948c39d2: am ff1965e6: am 743fe2ce: Merge "Throw an exception in JIT\'ed code...
Ben Cheng [Mon, 3 May 2010 01:28:32 +0000 (18:28 -0700)]
am 948c39d2: am ff1965e6: am 743fe2ce: Merge "Throw an exception in JIT\'ed code if dvmFindInterfaceMethodInCache returns NULL" into froyo

14 years agoam 560b3568: am 8dbde000: am 73e00c82: Merge "Fix a memory ordering bug when updating...
Ben Cheng [Mon, 3 May 2010 01:28:29 +0000 (18:28 -0700)]
am 560b3568: am 8dbde000: am 73e00c82: Merge "Fix a memory ordering bug when updating the inline cache for predicted chaining." into froyo

14 years agoam ff1965e6: am 743fe2ce: Merge "Throw an exception in JIT\'ed code if dvmFindInterfa...
Ben Cheng [Mon, 3 May 2010 01:27:25 +0000 (18:27 -0700)]
am ff1965e6: am 743fe2ce: Merge "Throw an exception in JIT\'ed code if dvmFindInterfaceMethodInCache returns NULL" into froyo

Merge commit 'ff1965e61f4cfe0f31598945d751be2f3aa4b7f3' into kraken

* commit 'ff1965e61f4cfe0f31598945d751be2f3aa4b7f3':
  Throw an exception in JIT'ed code if dvmFindInterfaceMethodInCache returns NULL

14 years agoam 8dbde000: am 73e00c82: Merge "Fix a memory ordering bug when updating the inline...
Ben Cheng [Mon, 3 May 2010 01:27:23 +0000 (18:27 -0700)]
am 8dbde000: am 73e00c82: Merge "Fix a memory ordering bug when updating the inline cache for predicted chaining." into froyo

Merge commit '8dbde000c30b0dd60d1ff204a35a232ee916f2d8' into kraken

* commit '8dbde000c30b0dd60d1ff204a35a232ee916f2d8':
  Fix a memory ordering bug when updating the inline cache for predicted chaining.

14 years agoam 743fe2ce: Merge "Throw an exception in JIT\'ed code if dvmFindInterfaceMethodInCac...
Ben Cheng [Mon, 3 May 2010 01:25:33 +0000 (18:25 -0700)]
am 743fe2ce: Merge "Throw an exception in JIT\'ed code if dvmFindInterfaceMethodInCache returns NULL" into froyo

Merge commit '743fe2ce4915304560849a17c7625d23ec50999c' into froyo-plus-aosp

* commit '743fe2ce4915304560849a17c7625d23ec50999c':
  Throw an exception in JIT'ed code if dvmFindInterfaceMethodInCache returns NULL

14 years agoam 73e00c82: Merge "Fix a memory ordering bug when updating the inline cache for...
Ben Cheng [Mon, 3 May 2010 01:25:28 +0000 (18:25 -0700)]
am 73e00c82: Merge "Fix a memory ordering bug when updating the inline cache for predicted chaining." into froyo

Merge commit '73e00c829a82e4aec8720260989dad0a19d18c7c' into froyo-plus-aosp

* commit '73e00c829a82e4aec8720260989dad0a19d18c7c':
  Fix a memory ordering bug when updating the inline cache for predicted chaining.

14 years agoMerge "Throw an exception in JIT'ed code if dvmFindInterfaceMethodInCache returns...
Ben Cheng [Mon, 3 May 2010 01:18:48 +0000 (18:18 -0700)]
Merge "Throw an exception in JIT'ed code if dvmFindInterfaceMethodInCache returns NULL" into froyo

14 years agoMerge "Fix a memory ordering bug when updating the inline cache for predicted chainin...
Ben Cheng [Mon, 3 May 2010 01:18:38 +0000 (18:18 -0700)]
Merge "Fix a memory ordering bug when updating the inline cache for predicted chaining." into froyo

14 years agoam 23498ca0: am e6d15c5f: am b8062e17: am 0a310052: resolved conflicts for merge...
repo sync [Sun, 2 May 2010 23:24:16 +0000 (16:24 -0700)]
am 23498ca0: am e6d15c5f: am b8062e17: am 0a310052: resolved conflicts for merge of f3565212 to froyo-plus-aosp

Merge commit '23498ca0a60505d5a38c37cc770cd7e4a7cf50f0' into dalvik-dev

* commit '23498ca0a60505d5a38c37cc770cd7e4a7cf50f0':
  Backport the setFixedLengthStreamingMode fix to froyo.

14 years agoam cfb42287: am b6c0adc1: am b40ffdb4: am 57cf2608: Adapt to new location of libcore
Jean-Baptiste Queru [Sun, 2 May 2010 23:24:14 +0000 (16:24 -0700)]
am cfb42287: am b6c0adc1: am b40ffdb4: am 57cf2608: Adapt to new location of libcore

Merge commit 'cfb42287277a188ecefa02d0d64f64a12a1909e1' into dalvik-dev

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

14 years agoam b5d6f9d5: am d6b31b85: am 2366260f: am 3e905b77: Delete libcore, now in its own...
Jean-Baptiste Queru [Sun, 2 May 2010 23:24:11 +0000 (16:24 -0700)]
am b5d6f9d5: am d6b31b85: am 2366260f: am 3e905b77: Delete libcore, now in its own project

Merge commit 'b5d6f9d5fee38bd7ddf00b82bd89d38c82aa13e9' into dalvik-dev

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

14 years agoam e6d15c5f: am b8062e17: am 0a310052: resolved conflicts for merge of f3565212 to...
repo sync [Sun, 2 May 2010 23:15:37 +0000 (16:15 -0700)]
am e6d15c5f: am b8062e17: am 0a310052: resolved conflicts for merge of f3565212 to froyo-plus-aosp

14 years agoam b6c0adc1: am b40ffdb4: am 57cf2608: Adapt to new location of libcore
Jean-Baptiste Queru [Sun, 2 May 2010 23:15:33 +0000 (16:15 -0700)]
am b6c0adc1: am b40ffdb4: am 57cf2608: Adapt to new location of libcore

14 years agoam d6b31b85: am 2366260f: am 3e905b77: Delete libcore, now in its own project
Jean-Baptiste Queru [Sun, 2 May 2010 23:15:30 +0000 (16:15 -0700)]
am d6b31b85: am 2366260f: am 3e905b77: Delete libcore, now in its own project

14 years agoam b8062e17: am 0a310052: resolved conflicts for merge of f3565212 to froyo-plus...
repo sync [Sun, 2 May 2010 23:13:41 +0000 (16:13 -0700)]
am b8062e17: am 0a310052: resolved conflicts for merge of f3565212 to froyo-plus-aosp

14 years agoam b40ffdb4: am 57cf2608: Adapt to new location of libcore
Jean-Baptiste Queru [Sun, 2 May 2010 23:13:39 +0000 (16:13 -0700)]
am b40ffdb4: am 57cf2608: Adapt to new location of libcore

14 years agoam 2366260f: am 3e905b77: Delete libcore, now in its own project
Jean-Baptiste Queru [Sun, 2 May 2010 23:13:37 +0000 (16:13 -0700)]
am 2366260f: am 3e905b77: Delete libcore, now in its own project

14 years agoam 0a310052: resolved conflicts for merge of f3565212 to froyo-plus-aosp
repo sync [Sun, 2 May 2010 23:11:56 +0000 (16:11 -0700)]
am 0a310052: resolved conflicts for merge of f3565212 to froyo-plus-aosp

Merge commit '0a310052e8c7e150d1b983687ca94270ca91acb4' into kraken

* commit '0a310052e8c7e150d1b983687ca94270ca91acb4':
  Backport the setFixedLengthStreamingMode fix to froyo.

14 years agoam 57cf2608: Adapt to new location of libcore
Jean-Baptiste Queru [Sun, 2 May 2010 23:11:21 +0000 (16:11 -0700)]
am 57cf2608: Adapt to new location of libcore

Merge commit '57cf2608873e13d609350bdcf33070e5cf0d15bf' into kraken

* commit '57cf2608873e13d609350bdcf33070e5cf0d15bf':
  Adapt to new location of libcore

14 years agoam 3e905b77: Delete libcore, now in its own project
Jean-Baptiste Queru [Sun, 2 May 2010 23:11:19 +0000 (16:11 -0700)]
am 3e905b77: Delete libcore, now in its own project

Merge commit '3e905b77ea5bf8c2f9276d64fc280827fc3cd1c4' into kraken

* commit '3e905b77ea5bf8c2f9276d64fc280827fc3cd1c4':
  Delete libcore, now in its own project

14 years agoThrow an exception in JIT'ed code if dvmFindInterfaceMethodInCache returns NULL
Ben Cheng [Sun, 2 May 2010 17:45:32 +0000 (10:45 -0700)]
Throw an exception in JIT'ed code if dvmFindInterfaceMethodInCache returns NULL

Bug: 2642019
Change-Id: Iec2be8f61388d99b1500bb144e56b86febe76c0b

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

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

Change-Id: Ic735b2f894698ba4fdf26707a6f59c57ca4b0fa9

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

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

Change-Id: Iabe25ccc1b8b487a66e4f9d30af144c2d1c95c8d

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

Change-Id: Id3fa2dff0279985ca865caf7e3dfa7b4e77ee345

14 years agoresolved conflicts for merge of f3565212 to froyo-plus-aosp
repo sync [Sat, 1 May 2010 19:37:06 +0000 (12:37 -0700)]
resolved conflicts for merge of f3565212 to froyo-plus-aosp

Change-Id: I5e14e57bcdac566dd8eca95c92f45503a2760b4e

14 years agoFix a memory ordering bug when updating the inline cache for predicted chaining.
Ben Cheng [Fri, 30 Apr 2010 22:14:00 +0000 (15:14 -0700)]
Fix a memory ordering bug when updating the inline cache for predicted chaining.

Also collect the statistics about fast/queued/dropped IC update. Example
output:

D/dalvikvm(   86): JIT: ICPatch: 603 fast, 6 queued; 0 dropped

Bug: 2642019

Change-Id: I8cffdc9e422189bfd94bf845bcb2cff516f37077

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

Merge commit '0323dfc60840dc7a37169892525d02a231344487' into dalvik-dev

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

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

Merge commit '65975562fd2843fc4bc3d9acbca4d42301f867da' into dalvik-dev

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

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

Merge commit 'bda07e21fbc1b471fb077183b689312e0a91c02b' into dalvik-dev

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

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

Merge commit '2b7c114648c234baed89cea73d145d814677ccec' into dalvik-dev

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

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

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

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

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

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

Change-Id: Id5f98ddaeb626616cbc48112b3166403ae8d5c78

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

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

Change-Id: I90f482f22fbac82aedbec649a72a465560c3136f

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

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

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

Change-Id: I602be6c3a9df32b33526158d46b406e4196a577b

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

Change-Id: Ic63de1ef810434dad7e07dcfd8452f1630ec70c5

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

Merge commit '0f93168feebe941eeb5096a6dc0c7c08bfc1cda8' into dalvik-dev

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

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

Merge commit '7da2e83857e3da7c1339e0ffdcb66e9e6f07a968' into dalvik-dev

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

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

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

Change-Id: I20885f385cfb325be18c33862b8e4f293a8a6146

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

Change-Id: Icf83d5ee1f7f62de1923a68af3926d311c27ca99

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

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

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

Change-Id: I4ad03a41718d3c30ce4117114f71b07a3d023dde

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

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

Change-Id: Ife57a36e93a9d7f4d953a88b79ed1d58d6d490cb

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

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

Change-Id: I0183edc0b48920361a6ea0ffc36fbc4cefb03f5d

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

Change-Id: I459e5acceeafc5d60a6cb0ff0958a8080615904a

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

Change-Id: I8fccab6d7c9197448a07f660d8b5cd1ee4005a58

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

Change-Id: Ibea0a93049e4fe0ae376f5b7647a41e3d548d7a9

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

Change-Id: I6f35447116607f14805f4eaadeca4c1a88362194

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

14 years agoBackport the setFixedLengthStreamingMode fix to froyo.
Elliott Hughes [Fri, 30 Apr 2010 07:33:13 +0000 (00:33 -0700)]
Backport the setFixedLengthStreamingMode fix to froyo.

Bug: 2643503
Change-Id: Ia42c9407ac77721d7fec3b806135d4e9912ee8ca

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

Change-Id: Ib998772654a8943477249226d8d708f804fc25f3

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

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

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

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

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

Change-Id: I2143ea541bc2fc50e81d36ad1c251b041553eaef

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

Bug: 2613607
Change-Id: I6a8abd69fbf9cb9f8ec9d9febf1ea42fd631fe9c

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

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

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

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

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

Bug 2634642.

Change-Id: I096b58c961bb73ee0d128ba776d68dbf29bba924

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

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

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

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

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

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

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

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

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

For bug 2620103.

Change-Id: I745fb15abb541376f467969ffe422222676f1e5f

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

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

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