9 years agomerge from eclair master
Jean-Baptiste Queru [Sun, 15 Nov 2009 20:05:35 +0000]
merge from eclair

9 years agoeclair snapshot tegra-9.12.5-baseline tegra-9.12.6-baseline
Jean-Baptiste Queru [Fri, 13 Nov 2009 02:45:15 +0000]
eclair snapshot

9 years agoMerge change 11462
Android Code Review [Wed, 9 Sep 2009 20:36:46 +0000]
Merge change 11462

* changes:
  Typo fix in javadoc

9 years agoMerge change 11461
Android Code Review [Wed, 9 Sep 2009 20:32:58 +0000]
Merge change 11461

* changes:
  Cosmetic change: cst -> type in javadoc @param

9 years agomerge from donut
Jean-Baptiste Queru [Thu, 3 Sep 2009 21:12:45 +0000]
merge from donut

9 years agoTypo fix in javadoc
Alexey Tarasov [Mon, 31 Aug 2009 15:34:47 +0000]
Typo fix in javadoc

spec -> otherSpec

9 years agoCosmetic change: cst -> type in javadoc @param
Alexey Tarasov [Sun, 30 Aug 2009 04:54:17 +0000]
Cosmetic change: cst -> type in javadoc @param

9 years agoMerge change 9368
Android Code Review [Fri, 28 Aug 2009 15:41:53 +0000]
Merge change 9368

* changes:
  libcore/.../rg_apache_harmony_xml_ExpatParser: in C++, the return type of strchr(const char*) is 'const char*' instead of 'char *'.

9 years agoMerge change 10635
Android Code Review [Thu, 27 Aug 2009 18:40:51 +0000]
Merge change 10635

* changes:
  Add a bit-map encoding of Object-reference field offsets to ClassObject.

9 years agoEach time we start an SSL session, we have to find the trust anchor. This used to...
Bob Lee [Wed, 26 Aug 2009 05:32:37 +0000]
Each time we start an SSL session, we have to find the trust anchor. This used to be an O(N) operation. If the trust anchor we're looking for was close to N, finding it could take a couple seconds. This change makes the operation O(1).

9 years agoAdd a bit-map encoding of Object-reference field offsets to ClassObject.
Barry Hayes [Wed, 8 Jul 2009 17:01:56 +0000]
Add a bit-map encoding of Object-reference field offsets to ClassObject.

Class.c populates a new field with a bit for each of the first 32 instance
fields, to show if it is a reference or not, and an escape value if there is a
reference field beyond 32.

The GC uses the encoded bitmap -- if available -- to extract Object refererences
from DataObjects.

9 years agoBe more POSIXly correct in the use of expr.
Dan Bornstein [Wed, 12 Aug 2009 19:16:40 +0000]
Be more POSIXly correct in the use of expr.

9 years agoMerge change 10758
Android Code Review [Mon, 24 Aug 2009 21:00:21 +0000]
Merge change 10758

* changes:
  Fix broken link in docstring. issue 1194

9 years agoExposed default trust manager.
Bob Lee [Fri, 21 Aug 2009 00:34:58 +0000]
Exposed default trust manager.

9 years agoCleanup CTS core failing tests.
Brett Chabot [Fri, 14 Aug 2009 04:37:47 +0000]
Cleanup CTS core failing tests.

BUG 2053939

9 years agoChange strategy for freeing objects in the sweep.
Barry Hayes [Wed, 20 May 2009 19:10:36 +0000]
Change strategy for freeing objects in the sweep.

dlfree() in dlmalloc.c is fairly expensive. It checks the previous and
next block to see if the curent block can be merged into one of the
free blocks, and if it does merge, that involves manipulating the
internal free lists.

The sweep phase of the GC is already visiting free objects in address
order, and has a list of objects to be freed. The new strategy is:

Loop over the list of objects to be freed, merging when possible, and
only calling free() when a either the list has run out or a
non-adjacent free object is found.

9 years agomerge from donut
Jean-Baptiste Queru [Mon, 3 Aug 2009 14:45:27 +0000]
merge from donut

9 years agoFix an issue where we're adding 4x the intended offset.
Jesse Wilson [Tue, 28 Jul 2009 23:49:40 +0000]
Fix an issue where we're adding 4x the intended offset.

We were doing pointer arithmetic of mixed types (jint* and jint),
and the type conversion ended up causing the offset to be converted
an extra time.

9 years agomerge from donut
Jean-Baptiste Queru [Wed, 29 Jul 2009 21:56:48 +0000]
merge from donut

9 years agoRemoving MD2
Urs Grob [Wed, 22 Jul 2009 18:06:03 +0000]
Removing MD2

9 years agoMerge korg/donut into korg/master
Jean-Baptiste Queru [Sun, 26 Jul 2009 03:35:55 +0000]
Merge korg/donut into korg/master

Conflicts:

libcore/luni/src/main/java/org/apache/harmony/luni/platform/PlatformAddressFactory.java
vm/oo/Class.c

9 years agoJNI direct buffer function speedup, part 3.
Andy McFadden [Fri, 24 Jul 2009 22:28:16 +0000]
JNI direct buffer function speedup, part 3.

This caches the effective address in a new field in the base Buffer
object.  The first time something calls through one of the various
getEffectiveAddress calls, the value is set.  (This seemed easier than
chasing down the constructors and factories, and also prevents bit rot
on the "slow path" in the VM.)

9 years agoJNI direct buffer function speedup, part 2.
Andy McFadden [Fri, 24 Jul 2009 00:47:18 +0000]
JNI direct buffer function speedup, part 2.

This converts the three direct buffer functions from JNI to internal VM
calls.  As a bonus, we grab PlatformAddress.osaddr directly instead of
retrieving it with PlatformAddress.toLong().

We're still calling through getEffectiveAddress(), which is where most
of the complexity lies.

Nudged a couple of comments.

9 years agoFix broken link in docstring. issue 1194
Joe LaPenna [Fri, 24 Jul 2009 00:52:17 +0000]
Fix broken link in docstring. issue 1194

9 years agoMerge change 8258 into donut
Android (Google) Code Review [Wed, 22 Jul 2009 22:34:57 +0000]
Merge change 8258 into donut

* changes:
  Minor fixes to CheckJNI.

9 years agoMinor fixes to CheckJNI.
Andy McFadden [Wed, 22 Jul 2009 22:20:08 +0000]
Minor fixes to CheckJNI.

We weren't always switching to "running" mode before playing with
objects.  Now checkObject() always changes modes, and things that called
checkObject while in "running" mode now do so after switching back to
"native" (which shouldn't matter now, but I don't want to require nested
switching to work if I don't have to).

Vaguely related to internal bug 1943379, since I think we want to do
some updates to CheckJNI there.

9 years agoJNI direct buffer function speedup, part 1.
Andy McFadden [Wed, 22 Jul 2009 22:07:27 +0000]
JNI direct buffer function speedup, part 1.

This is a fairly straightforward improvement to GetDirectBufferAddress,
caching classes and methodIDs instead of looking them up on every call.
This is the best we can do without making the function more vulnerable
to internal changes to Harmony's NIO implementation.

It looks like we need to take this farther, but this way we have a
relatively fast and relatively safe version to fall back on.

For internal bug 1943379.

9 years agoMerge change 10723
Android Code Review [Mon, 20 Jul 2009 23:07:43 +0000]
Merge change 10723

* changes:
  Fix variable names related to bytecode tracing.

9 years agoFix mangling to translate dollar signs (to allow Scala methods).
Brian McKenna [Sun, 19 Jul 2009 10:49:26 +0000]
Fix mangling to translate dollar signs (to allow Scala methods).

9 years agoFix variable names related to bytecode tracing.
Mike Lockwood [Wed, 8 Jul 2009 16:39:37 +0000]
Fix variable names related to bytecode tracing.

Signed-off-by: Tony Yokoyama <chuuoudai@gmail.com>

The compile errors, encountered in the case that macro LOG_INSTR is
turned on, are fixed.

On branch log_instr
Changes to be committed:

modified:   vm/mterp/armv5te/debug.c
modified:   vm/mterp/c/gotoTargets.c
modified:   vm/mterp/out/InterpC-allstubs.c
modified:   vm/mterp/out/InterpC-armv4.c
modified:   vm/mterp/out/InterpC-armv5te.c
modified:   vm/mterp/out/InterpC-portdbg.c
modified:   vm/mterp/out/InterpC-portstd.c
modified:   vm/mterp/out/InterpC-x86.c
modified:   vm/mterp/portable/debug.c
modified:   vm/oo/Class.c

9 years agoMerge change 7410 into donut
Android (Google) Code Review [Wed, 15 Jul 2009 21:18:58 +0000]
Merge change 7410 into donut

* changes:
  Fix bug: Arrays.deepToSting renders "[null]" as "null"; "[[]]" as "[]"; etc.

9 years agoFix bug: Arrays.deepToSting renders "[null]" as "null"; "[[]]" as "[]"; etc.
Joshua Bloch [Wed, 15 Jul 2009 18:29:28 +0000]
Fix bug: Arrays.deepToSting renders "[null]" as "null"; "[[]]" as "[]"; etc.

9 years agoDon't init class during reflection signature scan.
Andy McFadden [Tue, 16 Jun 2009 19:10:04 +0000]
Don't init class during reflection signature scan.

Do not merge to master -- this is 57ea16e8 from there.

When processing Class.getDeclaredMethods() we create Method objects.
These have arrays of classes that indicate the method parameter types.
While generating the array we were initializing the classes we found,
which isn't necessary and led to some unpleasantness described in
external bug 3005.

9 years agoRemove races from JNI_OnLoad invocation.
Andy McFadden [Fri, 10 Jul 2009 00:01:04 +0000]
Remove races from JNI_OnLoad invocation.

Do not merge to master.  (This was copied from there to donut.)

The current implementation just calls JNI_OnLoad and returns a failure
result if that goes badly.  If a second load attempt is made after
dlopen() finishes but before JNI_OnLoad completes, it will succeed
immediately.

This is bad because (a) we might not have finished the initialization
steps in JNI_OnLoad, and (b) it's possible JNI_OnLoad will fail.  We now
wait for an in-progress JNI_OnLoad to complete before returning.  (This
also requires recognizing and handling recursive invocation.)

9 years agoMerge change 4595 into donut
Android (Google) Code Review [Fri, 10 Jul 2009 10:36:41 +0000]
Merge change 4595 into donut

* changes:
  Reactivating test that failed with a extensive gref count increase

9 years agoFix typo introduced in previous change.
Mike Lockwood [Wed, 8 Jul 2009 16:39:37 +0000]
Fix typo introduced in previous change.

Signed-off-by: Mike Lockwood <lockwood@android.com>

9 years agoMerge change 10482
Android Code Review [Thu, 2 Jul 2009 21:02:02 +0000]
Merge change 10482

* changes:
  Add a bit-map encoding of Object-reference field offsets to ClassObject.

9 years agoMerge change 6098 into donut
Android (Google) Code Review [Thu, 2 Jul 2009 18:42:32 +0000]
Merge change 6098 into donut

* changes:
  Commented out invalid test.

9 years agoCommented out invalid test.
crazybob [Thu, 2 Jul 2009 18:35:18 +0000]
Commented out invalid test.

9 years agoMerge change 5967 into donut
Android (Google) Code Review [Thu, 2 Jul 2009 17:17:51 +0000]
Merge change 5967 into donut

* changes:
  Modifies OpenSSLSocketImpl to use a different lock for the instance count. It was using the same lock when use around native methods meaning that the finalizer could be blocked unnecessarily resulting in a VM crash.

9 years agoMerge change 5991 into donut
Android (Google) Code Review [Thu, 2 Jul 2009 16:41:19 +0000]
Merge change 5991 into donut

* changes:
  Reduce VM aborts during high CPU stress.

9 years agoMerge change 5990 into donut
Android (Google) Code Review [Thu, 2 Jul 2009 16:41:09 +0000]
Merge change 5990 into donut

* changes:
  Pull 138592-p9 from master to donut.

9 years agoReduce VM aborts during high CPU stress.
Andy McFadden [Wed, 17 Jun 2009 23:29:30 +0000]
Reduce VM aborts during high CPU stress.

(This was cherry-picked from master 2aa43610 for internal bug 1952616.)

The VM has some timeouts that are meant to kill the current process if
something gets stuck (e.g. a thread grabs a lock and then manages to die
while the rest of the process continues on).  These were tripping a
little too easily during some high-load situations.

This changes the order of operations so that we now unlock the "thread
suspend" lock before sending a wakeup broadcast to the condition variable
that threads sleep on.  This should make it less likely for a thread to
be running for an extended period while the lock is held.  (Relates to
internal bug 1664687.)

This also wraps a couple of things (pthread_create, dlopen) with a state
change to VMWAIT.  During high load situations these can take a while to
complete, and we would (with the K-Means Visualizer load generator
running) very occasionally time out.

Augmented the debug output in a couple of minor ways.  Updated comments.

9 years agoPull 138592-p9 from master to donut.
Andy McFadden [Wed, 1 Jul 2009 21:52:13 +0000]
Pull 138592-p9 from master to donut.

Switch from VMWAIT to RUNNING when executing code on behalf of the
debugger.  Reset the thread-suspend lock timeout if we have to suspend
while trying to acquire it.

Also, clear any pending exception before calling interpreted code.

Reworked some log messages to make them easier to decipher.

(For internal bug 1952616.)

9 years agoModifies OpenSSLSocketImpl to use a different lock for the instance count. It was...
crazybob [Wed, 1 Jul 2009 20:30:58 +0000]
Modifies OpenSSLSocketImpl to use a different lock for the instance count. It was using the same lock when use around native methods meaning that the finalizer could be blocked unnecessarily
resulting in a VM crash.

9 years agoFixes deadlock in Runtime.exec(). We can't malloc() or free() after fork() because...
crazybob [Thu, 18 Jun 2009 22:19:04 +0000]
Fixes deadlock in Runtime.exec(). We can't malloc() or free() after fork() because the heap lock may be held by a thread that is no longer running.

9 years agodalvik: thread: Set the control group of a thread to the background group
San Mehat [Fri, 26 Jun 2009 15:36:16 +0000]
dalvik: thread: Set the control group of a thread to the background group
if the priority is logically-lower than ANDROID_PRIORITY_BACKGROUND

Signed-off-by: San Mehat <san@google.com>

9 years agoAdd a bit-map encoding of Object-reference field offsets to ClassObject.
Barry Hayes [Mon, 22 Jun 2009 18:45:20 +0000]
Add a bit-map encoding of Object-reference field offsets to ClassObject.

Class.c populates a new field with a bit for each of the first 32 instance
fields, to show if it is a reference or not, and an escape value if there is a
reference field beyond 32.

The GC uses the encoded bitmap -- if available -- to extract Object refererences
from DataObjects.

9 years agoMerge change 5286 into donut
Android (Google) Code Review [Thu, 25 Jun 2009 14:23:43 +0000]
Merge change 5286 into donut

* changes:
  Check for failure in GetDirectBufferAddress.

9 years agoCheck for failure in GetDirectBufferAddress.
Andy McFadden [Wed, 24 Jun 2009 23:56:06 +0000]
Check for failure in GetDirectBufferAddress.

We now check for a null result or a pending exception in the JNI
GetDirectBufferAddress function.  This prevents a VM crash when somebody
tries to get the address of a non-direct buffer.

For internal bug 1926596.

9 years agoAdd FileDescriptor variation of startMethodTracing().
Dianne Hackborn [Wed, 24 Jun 2009 02:21:10 +0000]
Add FileDescriptor variation of startMethodTracing().

This is for bug #1829561 ("am profile" with bad filename kills process), which
will allow the am command to take care of opening the file and handing the
resulting fd over to the process to be profiled.

9 years agoMerge 137552-p9 to donut.
Andy McFadden [Tue, 23 Jun 2009 23:27:45 +0000]
Merge 137552-p9 to donut.

Since we're apparently using these calls now, we probably ought to pull
the bug fix over.  It's been in master for more than 3 months so it
should be safe.  It'll also make future merges easier.

Prequel to fix for internal bug #1926596.

9 years agoadded/modified to support SuperH architecture
Shin-ichiro KAWASAKI [Tue, 23 Jun 2009 05:00:12 +0000]
added/modified to support SuperH architecture

modified:   README.txt
modified:   vm/Android.mk
new file:   vm/arch/sh/CallSH4ABI.S

9 years agoReactivating test that failed with a extensive gref count increase
Urs Grob [Thu, 18 Jun 2009 12:09:08 +0000]
Reactivating test that failed with a extensive gref count increase

The cause for this failure was fixed. So this test can be reactivated.
BUG=1814539

9 years agoMerge change 4334 into donut
Android (Google) Code Review [Tue, 16 Jun 2009 21:36:31 +0000]
Merge change 4334 into donut

* changes:
  Modified Thread to copy the context class loader from parent to child threads. Re-enabled test that covers this. Removed security-related code from test since it was invalid (the security check     doesn't occur if the calling code's class loader is an ancestor of the context class loader).

9 years agoModified Thread to copy the context class loader from parent to child threads. Re...
crazybob [Tue, 16 Jun 2009 17:01:05 +0000]
Modified Thread to copy the context class loader from parent to child threads. Re-enabled test that covers this. Removed security-related code from test since it was invalid (the security check
    doesn't occur if the calling code's class loader is an ancestor of the context class loader).

9 years agoAdding:
Nagendra Modadugu [Mon, 15 Jun 2009 20:34:41 +0000]
Adding:
QuoVadis Root Certification Authority
QuoVadis Root CA 2
QuoVadis Root CA 3

9 years agoCopy the correct number of bytes for IPv6 addresses in InetAddress_gethostbyaddr
Lorenzo Colitti [Sat, 13 Jun 2009 00:54:23 +0000]
Copy the correct number of bytes for IPv6 addresses in InetAddress_gethostbyaddr

9 years agoTest and fix for the ArrayList.addAll(), bug 2954.
Jesse Wilson [Fri, 12 Jun 2009 00:35:12 +0000]
Test and fix for the ArrayList.addAll(), bug 2954.

9 years agoFix internal issue #1898791 ("PlatformAddressFactory PlatformAddress cache
Dan Bornstein [Wed, 10 Jun 2009 20:05:51 +0000]
Fix internal issue #1898791 ("PlatformAddressFactory PlatformAddress cache
causes memory to not be freed in a timely manner.").

The change makes the two PlatformAddressFactory.alloc() methods always
allocate separate PlatformAddress objects instead of looking for them
in the cache. This means that, should they have auto-free turned on,
there won't be a reference in the cache that prevents the freeing from
happening. And since we're talking about freshly-allocated memory anyway,
it would be surprising that either a matching address would be found in
cache *or* that a subsequent call to on() would ever happen with the
same address. So, it's a win on several fronts.

9 years agoFix JNI GetDirectBufferAddress.
Andy McFadden [Fri, 5 Jun 2009 20:36:44 +0000]
Fix JNI GetDirectBufferAddress.

The GetDirectBufferAddress JNI function was using the buffer's base
address, rather than it's "effective" base address.  The difference
becomes important when you create a direct buffer by "slicing" it off
of another at a nonzero offset.

For internal bug 1898762.

9 years agoMerge change 10263
Android Code Review [Thu, 4 Jun 2009 18:58:27 +0000]
Merge change 10263

* changes:
  dx incorrectly writes registers as a signed leb128 in the dex debug info

9 years agoFix field names for annotation_directory_item in documentation (dex-format.html)
Ben Gruver [Thu, 4 Jun 2009 02:28:35 +0000]
Fix field names for annotation_directory_item in documentation (dex-format.html)

The names of the annotated_methods_off and annotated_parameters_off fields aren't
consistent with their purpose. _size is consistent with how "count of" type fields
are named elsewhere in the file

9 years agodx incorrectly writes registers as a signed leb128 in the dex debug info
Ben Gruver [Thu, 4 Jun 2009 02:06:34 +0000]
dx incorrectly writes registers as a signed leb128 in the dex debug info

This has no functional effect, because reading the signed leb128 value
as an unsignedleb128 still produces the same value. But the encoding is
1 byte longer in some cases.

9 years agoMerge change 2454 into donut
Android (Google) Code Review [Wed, 3 Jun 2009 09:06:49 +0000]
Merge change 2454 into donut

* changes:
  Reactivating tests disabled because of ClassLoader loop

9 years agoMerge change 2619 into donut
Android (Google) Code Review [Mon, 1 Jun 2009 23:36:01 +0000]
Merge change 2619 into donut

* changes:
  InetAddress:  Stop logging DNS lookups to logcat.

9 years agoInetAddress: Stop logging DNS lookups to logcat.
Mike Lockwood [Thu, 28 May 2009 14:19:17 +0000]
InetAddress:  Stop logging DNS lookups to logcat.

Logging all DNS lookups system wide raises privacy concerns to me
and might make people less likely to include logs in their bug reports.

Signed-off-by: Mike Lockwood <lockwood@android.com>

9 years agoReactivating tests disabled because of ClassLoader loop
Urs Grob [Wed, 29 Apr 2009 15:01:24 +0000]
Reactivating tests disabled because of ClassLoader loop

Since ClassLoader.isAncestorOf has been fixed these tests now succeed.
So they can be reactivated.

BUG=1732214

9 years agoBug 1844104: Fix buffer overwrite bugs in CharsetEncoderICU and CharsetDecoderICU.
Mihai Preda [Mon, 25 May 2009 20:00:34 +0000]
Bug 1844104: Fix buffer overwrite bugs in CharsetEncoderICU and CharsetDecoderICU.

And add unit test.

9 years agoCode to reuse PlatformAddress objects. Minimizing garbage creation on the framework...
t.mehrvarz [Sat, 28 Feb 2009 06:25:46 +0000]
Code to reuse PlatformAddress objects. Minimizing garbage creation on the framework level and reducing the number of runtime GC-hiccups for OpenGL apps and animations.
2nd version: complete rewrite using 8 bit hash, up to 5 probes, cycle through probes cache replacement. (Thank you MichaelDt for your help.)
- 1st amend: applied requested modifications
- 2nd amend: comment openers, curly bracket

9 years agoMerge change 1987 into donut
Android (Google) Code Review [Wed, 20 May 2009 00:33:25 +0000]
Merge change 1987 into donut

* changes:
  Add tracing of native function calls to Dalvik.

9 years agoAdd tracing of native function calls to Dalvik.
Jack Veenstra [Tue, 19 May 2009 21:36:48 +0000]
Add tracing of native function calls to Dalvik.

Dalvik already traces Java method calls but it doesn't trace JNI calls.
This adds new trace records for JNI calls.

9 years agoIncrease the number of entries set aside for zygote initiating loader lists.
Andy McFadden [Fri, 15 May 2009 20:44:29 +0000]
Increase the number of entries set aside for zygote initiating loader lists.

The number of classes that are present when the zygote finishes
initializing increased in donut/master, above the 2000 we currently
plan for.  Exceeding the limit reduces zygote sharing efficiency, so
this change raises the limit.

9 years agoWrote Dalvik "porting guide".
Andy McFadden [Thu, 14 May 2009 17:03:45 +0000]
Wrote Dalvik "porting guide".

9 years agoFix handling of "--dev" argument in dalvik tests.
Andy McFadden [Wed, 13 May 2009 17:43:08 +0000]
Fix handling of "--dev" argument in dalvik tests.

This was originally part of p9-144240, which was only made in "master".

9 years agoMerge change 1400 into donut
Android (Google) Code Review [Mon, 11 May 2009 21:49:39 +0000]
Merge change 1400 into donut

* changes:
  Increase default stack size from 8K to 12K.

9 years agoIncrease default stack size from 8K to 12K.
Andy McFadden [Mon, 11 May 2009 21:39:13 +0000]
Increase default stack size from 8K to 12K.

For internal bug 1844105.

9 years agoam 64b928e: AI 148694: Manually copied from cupcake_dcm CL 148669-p9. W
Andy Stadler [Mon, 11 May 2009 21:15:32 +0000]
am 64b928e: AI 148694: Manually copied from cupcake_dcm CL 148669-p9.  W

Merge commit '64b928e82a3b91b339ff9ee980c4a0c020daa251' into donut

* commit '64b928e82a3b91b339ff9ee980c4a0c020daa251':
  AI 148694: Manually copied from cupcake_dcm CL 148669-p9.  When resetting the

9 years agoAI 148694: Manually copied from cupcake_dcm CL 148669-p9. When resetting the
Andy Stadler [Mon, 11 May 2009 21:03:58 +0000]
AI 148694: Manually copied from cupcake_dcm CL 148669-p9.  When resetting the
  mode of the encoder, clear the leftover input & output buffers.
  This claims to fix buffer overwriting we're seeing during account
  sync and message download.
  BUG=1822859

Automated import of CL 148694

9 years agoam 974cdcd: AI 148692: Merge change #148679 into Cupcake, since we proba
Dan Bornstein [Mon, 11 May 2009 20:40:57 +0000]
am 974cdcd: AI 148692: Merge change #148679 into Cupcake, since we proba

Merge commit '974cdcdc22ce05a0574bf7f2559a175c8d9434e9' into donut

* commit '974cdcdc22ce05a0574bf7f2559a175c8d9434e9':
  AI 148692: Merge change #148679 into Cupcake, since we probably want to

9 years agoAI 148692: Merge change #148679 into Cupcake, since we probably want to
Dan Bornstein [Mon, 11 May 2009 20:39:31 +0000]
AI 148692: Merge change #148679 into Cupcake, since we probably want to
  take it for rel if there's an opportunity. Original
  description:
  Fix InputStreamReader to not drop input on buffer boundaries.
  This fix takes the salient code from Harmony tip-of-tree,
  though it's not a wholesale replacement of the file. In
  particular, I left in the old encoding name handling as well
  as one remaining "FIXME" that I don't think would have been
  addressed.
  BUG=1836908

Automated import of CL 148692

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

* changes:
  Updated a comment.

9 years agoUpdated a comment.
Andy McFadden [Mon, 11 May 2009 17:44:52 +0000]
Updated a comment.

9 years agoam 2de2459: AI 148670: More tests that need to be marked broken, since
Jorg Pleumann [Mon, 11 May 2009 17:12:32 +0000]
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

9 years agoAI 148670: More tests that need to be marked broken, since
Jorg Pleumann [Mon, 11 May 2009 17:10:42 +0000]
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

9 years agoPull the useful part of p9-132414 over to "donut".
Andy McFadden [Fri, 8 May 2009 22:26:33 +0000]
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.)

9 years agoam c423b40: AI 148447: Marking some more tests as broken, because they
Jorg Pleumann [Thu, 7 May 2009 16:25:18 +0000]
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

9 years agoAI 148447: Marking some more tests as broken, because they
Jorg Pleumann [Thu, 7 May 2009 16:22:59 +0000]
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

9 years agoam 2f563a4: AI 148431: Marking as broken a couple of tests
Jorg Pleumann [Thu, 7 May 2009 08:36:27 +0000]
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

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

Automated import of CL 148431

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

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

9 years agoAdd support for tracing Java method entry/exit in emulator.
Jack Veenstra [Tue, 5 May 2009 18:29:51 +0000]
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.

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

* changes:
  Fix issue 1687880.

9 years agoFix issue 1687880.
Jing Yu [Wed, 6 May 2009 03:34:38 +0000]
Fix issue 1687880.

Change argument va_list to a standard representation.

9 years agoAdded XML output mode for dexdump.
Andy McFadden [Tue, 5 May 2009 23:52:10 +0000]
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.

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

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

9 years agoPull fix from master branch, and correct filename juggling.
Andy McFadden [Tue, 5 May 2009 17:45:51 +0000]
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.

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

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

9 years agoMoved the context class loader init down a bit to ensure proper init.
Andy McFadden [Mon, 4 May 2009 20:29:30 +0000]
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.

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

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