OSDN Git Service

android-x86/art.git
9 years agoam 0f79299e: Merge "Add fast path to VMClassLoader.findLoadedClass" into lmp-dev
Mathieu Chartier [Fri, 12 Sep 2014 04:59:13 +0000 (04:59 +0000)]
am 0f79299e: Merge "Add fast path to VMClassLoader.findLoadedClass" into lmp-dev

* commit '0f79299e78cb9e304f2a723ce7691f35ecaa4bab':
  Add fast path to VMClassLoader.findLoadedClass

9 years agoam 6b9f31a7: Merge "Delete pin table" into lmp-dev
Mathieu Chartier [Fri, 12 Sep 2014 04:59:12 +0000 (04:59 +0000)]
am 6b9f31a7: Merge "Delete pin table" into lmp-dev

* commit '6b9f31a7cbdc6d4b590c8c2119ffddbf5f8c0720':
  Delete pin table

9 years agoam 776ee723: Merge "Print the command line and ABI in stack dumps like debuggerd...
Brian Carlstrom [Fri, 12 Sep 2014 04:59:11 +0000 (04:59 +0000)]
am 776ee723: Merge "Print the command line and ABI in stack dumps like debuggerd." into lmp-dev

* commit '776ee7236f3d95ad5b8a1e6af693e636266f8131':
  Print the command line and ABI in stack dumps like debuggerd.

9 years agoam 53f7ac1d: Merge "Revert "Print the command line and ABI in stack dumps like debugg...
Jeff Brown [Fri, 12 Sep 2014 04:59:10 +0000 (04:59 +0000)]
am 53f7ac1d: Merge "Revert "Print the command line and ABI in stack dumps like debuggerd."" into lmp-dev

* commit '53f7ac1d6b96621e9fd0225d7579a0183f6f179e':
  Revert "Print the command line and ABI in stack dumps like debuggerd."

9 years agoam d1ae5004: Merge "Print the command line and ABI in stack dumps like debuggerd...
Jeff Brown [Fri, 12 Sep 2014 04:59:09 +0000 (04:59 +0000)]
am d1ae5004: Merge "Print the command line and ABI in stack dumps like debuggerd." into lmp-dev

* commit 'd1ae50047c5da787e722e182992bd242540b502a':
  Print the command line and ABI in stack dumps like debuggerd.

9 years agoMerge "Add fast path to VMClassLoader.findLoadedClass" into lmp-dev
Mathieu Chartier [Thu, 11 Sep 2014 23:51:03 +0000 (23:51 +0000)]
Merge "Add fast path to VMClassLoader.findLoadedClass" into lmp-dev

9 years agoMerge "Delete pin table" into lmp-dev
Mathieu Chartier [Thu, 11 Sep 2014 23:27:11 +0000 (23:27 +0000)]
Merge "Delete pin table" into lmp-dev

9 years agoMerge "Print the command line and ABI in stack dumps like debuggerd." into lmp-dev
Brian Carlstrom [Thu, 11 Sep 2014 23:13:17 +0000 (23:13 +0000)]
Merge "Print the command line and ABI in stack dumps like debuggerd." into lmp-dev

9 years agoPrint the command line and ABI in stack dumps like debuggerd.
Jeff Brown [Thu, 11 Sep 2014 01:41:18 +0000 (18:41 -0700)]
Print the command line and ABI in stack dumps like debuggerd.

Ensure the heading is "Cmd line:" just like debuggerd and
as it used to be in Dalvik.
Fix a missing newline.
Trim all training nulls from the command line.
Don't bother printing the original command line if unset.
Add the ABI to the dump to help the native stack symbol tool.

Bug: 17474152
Change-Id: Ie1da1bd4f38c92b13ea08c7122f4573d8ec8fc73

9 years agoMerge "Revert "Print the command line and ABI in stack dumps like debuggerd."" into...
Jeff Brown [Thu, 11 Sep 2014 23:01:55 +0000 (23:01 +0000)]
Merge "Revert "Print the command line and ABI in stack dumps like debuggerd."" into lmp-dev

9 years agoRevert "Print the command line and ABI in stack dumps like debuggerd."
Jeff Brown [Thu, 11 Sep 2014 23:01:44 +0000 (23:01 +0000)]
Revert "Print the command line and ABI in stack dumps like debuggerd."

This reverts commit 38ac77b6fb1fc626299022fe0f16d5b6c365cb9b.

Change-Id: I8e4952b80d03ad61c3ff2afaf8a96b8c2e36f0c7

9 years agoMerge "Print the command line and ABI in stack dumps like debuggerd." into lmp-dev
Jeff Brown [Thu, 11 Sep 2014 22:57:55 +0000 (22:57 +0000)]
Merge "Print the command line and ABI in stack dumps like debuggerd." into lmp-dev

9 years agoAdd fast path to VMClassLoader.findLoadedClass
Mathieu Chartier [Thu, 11 Sep 2014 21:21:41 +0000 (14:21 -0700)]
Add fast path to VMClassLoader.findLoadedClass

VMClassLoader.findLoadedClass now calls FindClassInPathClassLoader
as a fast path. Exclusive time results (trace view maps launch):

Before:
nativeFillInStackTrace 1.4%
defineClassNative 1.2%
findLoadedClass 0.2%

After:
nativeFillInStackTrace 0.5%
defineClassNative 0.0%
findLoadedClass 0.9%

Bug: 16828525

Change-Id: I1bde48effcd28529778c00ec0fa0dda4e32026a3

9 years agoPrint the command line and ABI in stack dumps like debuggerd.
Jeff Brown [Thu, 11 Sep 2014 01:41:18 +0000 (18:41 -0700)]
Print the command line and ABI in stack dumps like debuggerd.

Ensure the heading is "Cmd line:" just like debuggerd and
as it used to be in Dalvik.
Fix a missing newline.
Trim all training nulls from the command line.
Don't bother printing the original command line if unset.
Add the ABI to the dump to help the native stack symbol tool.

Bug: 17474152
Change-Id: I19c585dbd7d31ef6c98270e469445cae40cbd518

9 years agoDelete pin table
Mathieu Chartier [Thu, 11 Sep 2014 20:14:31 +0000 (13:14 -0700)]
Delete pin table

The pin table was brought over from dalvik but not really needed
since ART doesn't support pinning in movable spaces. The only
thing it did was hold objects live for JNI functions.
This shouldn't be necessary since people keep jni references to
these objects or else they could never release the elements.

Bug: 17456946

Change-Id: Ibed0d029157ffb9e75ecd80d4d544d690986c090

9 years agoam 3892cf8d: ART: Fix preverified setting in VerifyClass
Andreas Gampe [Thu, 11 Sep 2014 18:48:21 +0000 (18:48 +0000)]
am 3892cf8d: ART: Fix preverified setting in VerifyClass

* commit '3892cf8da7d5e76c0dee585fc8f69df773680525':
  ART: Fix preverified setting in VerifyClass

9 years agoART: Fix preverified setting in VerifyClass
Andreas Gampe [Thu, 11 Sep 2014 17:59:33 +0000 (10:59 -0700)]
ART: Fix preverified setting in VerifyClass

Make sure soft-failed classes cannot set methods to pre-verified.

Bug: 1682852517465185
Change-Id: I09c0a68ca722978459741311148eae7614f9ca49

9 years agoam 0a40828e: Merge "Improve dex location canonicalization-related performance." into...
Vladimir Marko [Thu, 11 Sep 2014 16:26:54 +0000 (16:26 +0000)]
am 0a40828e: Merge "Improve dex location canonicalization-related performance." into lmp-dev

* commit '0a40828e6f4914968048642e8c0e5fdf6bc3b1af':
  Improve dex location canonicalization-related performance.

9 years agoam 11db17c4: Merge "Fix GetDexCanonicalLocation test for relative paths." into lmp-dev
Vladimir Marko [Thu, 11 Sep 2014 16:26:54 +0000 (16:26 +0000)]
am 11db17c4: Merge "Fix GetDexCanonicalLocation test for relative paths." into lmp-dev

* commit '11db17c44cdbd71e97a677cdc8fb1e18907ab93d':
  Fix GetDexCanonicalLocation test for relative paths.

9 years agoMerge "Improve dex location canonicalization-related performance." into lmp-dev
Vladimir Marko [Thu, 11 Sep 2014 16:18:49 +0000 (16:18 +0000)]
Merge "Improve dex location canonicalization-related performance." into lmp-dev

9 years agoMerge "Fix GetDexCanonicalLocation test for relative paths." into lmp-dev
Vladimir Marko [Thu, 11 Sep 2014 16:18:16 +0000 (16:18 +0000)]
Merge "Fix GetDexCanonicalLocation test for relative paths." into lmp-dev

9 years agoam 96cd6714: Fix crash when connected to DDMS
Sebastien Hertz [Thu, 11 Sep 2014 14:43:56 +0000 (14:43 +0000)]
am 96cd6714: Fix crash when connected to DDMS

* commit '96cd6714d94b47512710776761dec98c8be68bef':
  Fix crash when connected to DDMS

9 years agoFix crash when connected to DDMS
Sebastien Hertz [Thu, 11 Sep 2014 14:23:44 +0000 (16:23 +0200)]
Fix crash when connected to DDMS

Restore init of WellKnownClasses::org_apache_harmony_dalvik_ddmc_Chunk_data and
removed duplicated line.

Bug: 17467328
Bug: 17463118
Change-Id: I64638e23615b7c20061b49c41a9c0e9f35a4d537

9 years agoam 5f0438a4: Merge "Fix deadlock in VirtualMachine.AllThreads" into lmp-dev
Sebastien Hertz [Thu, 11 Sep 2014 09:38:48 +0000 (09:38 +0000)]
am 5f0438a4: Merge "Fix deadlock in VirtualMachine.AllThreads" into lmp-dev

* commit '5f0438a4123aeaae55ee034d31c5b1465fcf69cd':
  Fix deadlock in VirtualMachine.AllThreads

9 years agoMerge "Fix deadlock in VirtualMachine.AllThreads" into lmp-dev
Sebastien Hertz [Thu, 11 Sep 2014 09:33:33 +0000 (09:33 +0000)]
Merge "Fix deadlock in VirtualMachine.AllThreads" into lmp-dev

9 years agoam 94aa2482: Merge "Don\'t hold any lock when visiting classes from JDWP" into lmp-dev
Sebastien Hertz [Thu, 11 Sep 2014 09:17:59 +0000 (09:17 +0000)]
am 94aa2482: Merge "Don\'t hold any lock when visiting classes from JDWP" into lmp-dev

* commit '94aa2482e8ba71e85a875c2afc85ad8b8d3fb0f3':
  Don't hold any lock when visiting classes from JDWP

9 years agoMerge "Don't hold any lock when visiting classes from JDWP" into lmp-dev
Sebastien Hertz [Thu, 11 Sep 2014 08:04:30 +0000 (08:04 +0000)]
Merge "Don't hold any lock when visiting classes from JDWP" into lmp-dev

9 years agoam 59d0e8ac: Merge "Use WellKnownClasses in ThrowStackOverflowError to reduce changes...
Brian Carlstrom [Thu, 11 Sep 2014 07:01:47 +0000 (07:01 +0000)]
am 59d0e8ac: Merge "Use WellKnownClasses in ThrowStackOverflowError to reduce changes of further stack overflow" into lmp-dev

* commit '59d0e8aca127088bc08586add9be38045ad420c0':
  Use WellKnownClasses in ThrowStackOverflowError to reduce changes of further stack overflow

9 years agoMerge "Use WellKnownClasses in ThrowStackOverflowError to reduce changes of further...
Brian Carlstrom [Thu, 11 Sep 2014 06:54:05 +0000 (06:54 +0000)]
Merge "Use WellKnownClasses in ThrowStackOverflowError to reduce changes of further stack overflow" into lmp-dev

9 years agoUse WellKnownClasses in ThrowStackOverflowError to reduce changes of further stack...
Brian Carlstrom [Thu, 11 Sep 2014 06:10:47 +0000 (23:10 -0700)]
Use WellKnownClasses in ThrowStackOverflowError to reduce changes of further stack overflow

Bug: 17463118
Change-Id: Ic05b07803d2d3112e0b67064f380cd46ba9e293f

9 years agoam df1532b9: ART: Correctly make methods preverified
Andreas Gampe [Thu, 11 Sep 2014 05:46:06 +0000 (05:46 +0000)]
am df1532b9: ART: Correctly make methods preverified

* commit 'df1532b9ba0cda2d00b78fbdef461f8a6cf8a737':
  ART: Correctly make methods preverified

9 years agoART: Correctly make methods preverified
Andreas Gampe [Thu, 11 Sep 2014 02:48:05 +0000 (19:48 -0700)]
ART: Correctly make methods preverified

Bug: 16828525
Change-Id: I66756348b2aa50e41dacca59769b6810a91c73b0

9 years agoImprove dex location canonicalization-related performance.
Vladimir Marko [Fri, 5 Sep 2014 13:01:17 +0000 (14:01 +0100)]
Improve dex location canonicalization-related performance.

Eagerly add canonical dex file locations to the OatFile's
primary lookup map in Setup(). This moves the boot.oat work
from every app startup to the zygote initialization. Since
we always ended up initializing the canonical location map
anyway due to the way that we're loading dex files, the lazy
initialization didn't save anything.

Clean up dex file name canonicalization to make sure we
free() the memory returned by realpath() rather than using
std::unique_ptr<> with the default deleter.

Avoid some unnecessary duplicate OatDexFile lookups.

Bug: 16828525
Bug: 17346103

(cherry picked from commit aa4497db59f1eeec954f2ba5da6d458fcdf9b3a4)

Change-Id: Icc4b14ebe903282ca91ce24e33a6d7c75dff991c

9 years agoFix GetDexCanonicalLocation test for relative paths.
Calin Juravle [Thu, 7 Aug 2014 10:54:36 +0000 (11:54 +0100)]
Fix GetDexCanonicalLocation test for relative paths.

If the reference file is created with a relative path the test will
fail.

(cherry picked from commit 61281dc0aaa22730fd4fee268cac40776b193042)

Change-Id: Ie82b9d381bd884111dfc91cc235b46ad9f3225be

9 years agoam 827645f2: Merge "Ensure class is linked before resolution" into lmp-dev
Brian Carlstrom [Wed, 10 Sep 2014 18:11:22 +0000 (18:11 +0000)]
am 827645f2: Merge "Ensure class is linked before resolution" into lmp-dev

* commit '827645f27237f3e77c87cb5e49e90389a22337a6':
  Ensure class is linked before resolution

9 years agoMerge "Ensure class is linked before resolution" into lmp-dev
Brian Carlstrom [Wed, 10 Sep 2014 18:02:55 +0000 (18:02 +0000)]
Merge "Ensure class is linked before resolution" into lmp-dev

9 years agoam 44332cc2: Merge "Add proper cfi directives." into lmp-dev
Christopher Ferris [Wed, 10 Sep 2014 17:59:24 +0000 (17:59 +0000)]
am 44332cc2: Merge "Add proper cfi directives." into lmp-dev

* commit '44332cc21494726c9ba90ac8f23af8acc2dc4536':
  Add proper cfi directives.

9 years agoEnsure class is linked before resolution
Sebastien Hertz [Wed, 10 Sep 2014 17:44:39 +0000 (19:44 +0200)]
Ensure class is linked before resolution

Adds a missing call to ClassLinker::EnsureResolved to ensure we did link the
class and retired the temp class (placeholder) before doing the resolution.

Bug: 17435441

Change-Id: Ib1a7181d6e5e814ca9299d0504e739a2b69475ef

9 years agoMerge "Add proper cfi directives." into lmp-dev
Christopher Ferris [Wed, 10 Sep 2014 17:49:51 +0000 (17:49 +0000)]
Merge "Add proper cfi directives." into lmp-dev

9 years agoam 5875a488: Merge "VisitClassesWithoutClassesLock isn\'t safe if classes move."...
Ian Rogers [Wed, 10 Sep 2014 14:38:05 +0000 (14:38 +0000)]
am 5875a488: Merge "VisitClassesWithoutClassesLock isn\'t safe if classes move." into lmp-dev

* commit '5875a4884efcfc7bf80b0bbb50148611286dbe30':
  VisitClassesWithoutClassesLock isn't safe if classes move.

9 years agoMerge "VisitClassesWithoutClassesLock isn't safe if classes move." into lmp-dev
Ian Rogers [Wed, 10 Sep 2014 14:31:36 +0000 (14:31 +0000)]
Merge "VisitClassesWithoutClassesLock isn't safe if classes move." into lmp-dev

9 years agoam 0bff4f37: Increase dex2oat timeouts for debug builds
Mathieu Chartier [Wed, 10 Sep 2014 07:07:05 +0000 (07:07 +0000)]
am 0bff4f37: Increase dex2oat timeouts for debug builds

* commit '0bff4f375d8013a4a59cf70b3427fb461a17e6de':
  Increase dex2oat timeouts for debug builds

9 years agoAdd proper cfi directives.
Christopher Ferris [Tue, 9 Sep 2014 20:55:13 +0000 (13:55 -0700)]
Add proper cfi directives.

This function has a mix of arm and cfi directives. Since our unwinders
can work with both, remove the arm directives and fix the cfi directives.

Bug: 17392751
Change-Id: Ibd4859a4f0b8f2da751a0928a2f5f4afa3df7df8

9 years agoIncrease dex2oat timeouts for debug builds
Mathieu Chartier [Wed, 10 Sep 2014 00:26:58 +0000 (17:26 -0700)]
Increase dex2oat timeouts for debug builds

Should fix the 056-const-string-jumbo test.

Change-Id: I04d98dfd59003b964c1feee6eee31079f9f4a476

9 years agoam 4e67841e: Change Reference.get() intrinsic to Reference.getReferent().
Mathieu Chartier [Wed, 10 Sep 2014 00:44:55 +0000 (00:44 +0000)]
am 4e67841e: Change Reference.get() intrinsic to Reference.getReferent().

* commit '4e67841e99e4a206133e7010653ccd132682296a':
  Change Reference.get() intrinsic to Reference.getReferent().

9 years agoChange Reference.get() intrinsic to Reference.getReferent().
Mathieu Chartier [Tue, 9 Sep 2014 20:51:09 +0000 (13:51 -0700)]
Change Reference.get() intrinsic to Reference.getReferent().

The reference intrinsic was incorrectly inlining
PhantomReference.get(). We now get around this by adding a
layer of indirection. Reference.get() now calls getReferent()
which is intrinsified and inlined.

Requires:
https://android-review.googlesource.com/#/c/107100/

Bug: 17429865

(cherry picked from commit cd48f2d86197d4fe87cc88077bc4af5ba66e5295)

Change-Id: Ie91e70abf43cedf3c707c7bb8a5059e19d2a2577

9 years agoam f8aed38f: Merge "Change 099-vmdebug test to use File.createTempFile." into lmp-dev
Jeff Hao [Tue, 9 Sep 2014 20:21:23 +0000 (20:21 +0000)]
am f8aed38f: Merge "Change 099-vmdebug test to use File.createTempFile." into lmp-dev

* commit 'f8aed38fd66b14ca31638362050cbfaa64f6135e':
  Change 099-vmdebug test to use File.createTempFile.

9 years agoMerge "Change 099-vmdebug test to use File.createTempFile." into lmp-dev
Jeff Hao [Tue, 9 Sep 2014 20:13:24 +0000 (20:13 +0000)]
Merge "Change 099-vmdebug test to use File.createTempFile." into lmp-dev

9 years agoChange 099-vmdebug test to use File.createTempFile.
Jeff Hao [Tue, 9 Sep 2014 20:07:59 +0000 (13:07 -0700)]
Change 099-vmdebug test to use File.createTempFile.

Avoids issues with concurrency.

Bug: 17439227
Change-Id: I4a5956d9f26fad416a244216c2c77d5e6f072c62

9 years agoam 3298611e: Merge "Temporarily disable LOS on 64 bit" into lmp-dev
Mathieu Chartier [Tue, 9 Sep 2014 17:46:55 +0000 (17:46 +0000)]
am 3298611e: Merge "Temporarily disable LOS on 64 bit" into lmp-dev

* commit '3298611e205a299612f2e403bfaeb955ec0a2bdd':
  Temporarily disable LOS on 64 bit

9 years agoMerge "Temporarily disable LOS on 64 bit" into lmp-dev
Mathieu Chartier [Tue, 9 Sep 2014 17:39:37 +0000 (17:39 +0000)]
Merge "Temporarily disable LOS on 64 bit" into lmp-dev

9 years agoFix deadlock in VirtualMachine.AllThreads
Sebastien Hertz [Tue, 9 Sep 2014 10:08:49 +0000 (12:08 +0200)]
Fix deadlock in VirtualMachine.AllThreads

We cannot add any object in the JDWP object registry while holding the
Locks::thread_list_lock. Indeed we may need to suspend a thread and take it,
causing a deadlock by waiting for ourself on this lock.

Bug: 17343664
Change-Id: I2335c63e418c0d485daf2c35f8debcd52f943140

9 years agoam 1b2140c9: ART: Better error reporting on broken oat file
Andreas Gampe [Tue, 9 Sep 2014 09:18:24 +0000 (09:18 +0000)]
am 1b2140c9: ART: Better error reporting on broken oat file

* commit '1b2140c9bf46388e4f59ecf3d62d99cd78fed12c':
  ART: Better error reporting on broken oat file

9 years agoART: Better error reporting on broken oat file
Andreas Gampe [Tue, 9 Sep 2014 06:39:45 +0000 (23:39 -0700)]
ART: Better error reporting on broken oat file

Do not blow up when in GetHashBucket if GetHashBucketNum is zero.
Instead back-step to ElfFileOpen, which prints which symbol was
missing from which file.

Bug: 17422404
Change-Id: I3b890dd1c31c08b1ccc0f7f668afcceee95f8d00

9 years agoam 6b8f8688: Merge "Workaround Darwin ContainedWithinExistingMap issue" into lmp-dev
Brian Carlstrom [Tue, 9 Sep 2014 06:09:57 +0000 (06:09 +0000)]
am 6b8f8688: Merge "Workaround Darwin ContainedWithinExistingMap issue" into lmp-dev

* commit '6b8f868862de9c8a191462ab2a2c979aea4857d3':
  Workaround Darwin ContainedWithinExistingMap issue

9 years agoMerge "Workaround Darwin ContainedWithinExistingMap issue" into lmp-dev
Brian Carlstrom [Tue, 9 Sep 2014 06:02:19 +0000 (06:02 +0000)]
Merge "Workaround Darwin ContainedWithinExistingMap issue" into lmp-dev

9 years agoWorkaround Darwin ContainedWithinExistingMap issue
Brian Carlstrom [Tue, 9 Sep 2014 05:41:35 +0000 (22:41 -0700)]
Workaround Darwin ContainedWithinExistingMap issue

Bug: 16861075
Change-Id: I577a0c7ede919e610c356e7c40dd60d87914dd3a

9 years agoam 77c318d5: Merge "Fix monitor visit for class initializer" into lmp-dev
Sebastien Hertz [Tue, 9 Sep 2014 05:18:02 +0000 (05:18 +0000)]
am 77c318d5: Merge "Fix monitor visit for class initializer" into lmp-dev

* commit '77c318d5c22c5db02bd09f80c97bb117ce6f5e4c':
  Fix monitor visit for class initializer

9 years agoam 5300d478: Merge "ART: Fix unchecked register index validity" into lmp-dev
Andreas Gampe [Tue, 9 Sep 2014 05:18:01 +0000 (05:18 +0000)]
am 5300d478: Merge "ART: Fix unchecked register index validity" into lmp-dev

* commit '5300d478fb60f3aa9277f29aef9a901d26f7469a':
  ART: Fix unchecked register index validity

9 years agoMerge "Fix monitor visit for class initializer" into lmp-dev
Sebastien Hertz [Tue, 9 Sep 2014 05:12:55 +0000 (05:12 +0000)]
Merge "Fix monitor visit for class initializer" into lmp-dev

9 years agoMerge "ART: Fix unchecked register index validity" into lmp-dev
Andreas Gampe [Tue, 9 Sep 2014 05:07:38 +0000 (05:07 +0000)]
Merge "ART: Fix unchecked register index validity" into lmp-dev

9 years agoam 8a4064e2: Fix darwin run-test problems
Brian Carlstrom [Tue, 9 Sep 2014 04:57:26 +0000 (04:57 +0000)]
am 8a4064e2: Fix darwin run-test problems

* commit '8a4064e2c0987637b11afcc656478d3113d81618':
  Fix darwin run-test problems

9 years agoFix darwin run-test problems
Brian Carlstrom [Tue, 9 Sep 2014 04:37:39 +0000 (21:37 -0700)]
Fix darwin run-test problems

Bug: 17428908
Change-Id: Id74a0383fdae6753558e27cd447c1ca349819c91

9 years agoTemporarily disable LOS on 64 bit
Mathieu Chartier [Tue, 9 Sep 2014 02:49:50 +0000 (19:49 -0700)]
Temporarily disable LOS on 64 bit

Problem is that MAP_32BIT simulation can take seconds on large object
allocations in the worst case.

Bug: 17414549

Change-Id: I463bb0b728eed14847a32a27a93640ec6080f6b3

9 years agoam 1e25d938: Merge "Add fast path for FindClass using the type dex file." into lmp-dev
Mathieu Chartier [Tue, 9 Sep 2014 01:24:58 +0000 (01:24 +0000)]
am 1e25d938: Merge "Add fast path for FindClass using the type dex file." into lmp-dev

* commit '1e25d9386c7e94761f1eda38e2d699192a915e35':
  Add fast path for FindClass using the type dex file.

9 years agoMerge "Add fast path for FindClass using the type dex file." into lmp-dev
Mathieu Chartier [Tue, 9 Sep 2014 01:14:22 +0000 (01:14 +0000)]
Merge "Add fast path for FindClass using the type dex file." into lmp-dev

9 years agoam dd66899f: Merge "ART: Change ART for new native bridge sequence" into lmp-dev
Andreas Gampe [Tue, 9 Sep 2014 00:50:34 +0000 (00:50 +0000)]
am dd66899f: Merge "ART: Change ART for new native bridge sequence" into lmp-dev

* commit 'dd66899f8d5ca4385937770694d2f2d9fb61ce8e':
  ART: Change ART for new native bridge sequence

9 years agoAdd fast path for FindClass using the type dex file.
Mathieu Chartier [Fri, 5 Sep 2014 01:33:17 +0000 (18:33 -0700)]
Add fast path for FindClass using the type dex file.

If we are using the PathClassLoader with a BootClassLoader
parent, we can handle the common case in the FindClass function
without needing to go back to java code.

Around 10% speedup measured of maps launch, could be noise due to
large variation of app launch times. Eliminates defineClassNative
from being anywhere near the top of sampling profiles.

Bug: 17397179
Bug: 16828525
Change-Id: Ide0db2b5f6cf5b96fc46e89178e0799de667cb88

9 years agoMerge "ART: Change ART for new native bridge sequence" into lmp-dev
Andreas Gampe [Tue, 9 Sep 2014 00:41:35 +0000 (00:41 +0000)]
Merge "ART: Change ART for new native bridge sequence" into lmp-dev

9 years agoam c0e1fa73: Merge "Add test for hashCode and System.identityHashCode." into lmp-dev
Mathieu Chartier [Mon, 8 Sep 2014 23:09:26 +0000 (23:09 +0000)]
am c0e1fa73: Merge "Add test for hashCode and System.identityHashCode." into lmp-dev

* commit 'c0e1fa7382b2e8e64da07181aff316dbcc84c395':
  Add test for hashCode and System.identityHashCode.

9 years agoMerge "Add test for hashCode and System.identityHashCode." into lmp-dev
Mathieu Chartier [Mon, 8 Sep 2014 23:01:52 +0000 (23:01 +0000)]
Merge "Add test for hashCode and System.identityHashCode." into lmp-dev

9 years agoam b087849f: Disable tracing if enabled by default for new tracing test.
Jeff Hao [Mon, 8 Sep 2014 22:57:49 +0000 (22:57 +0000)]
am b087849f: Disable tracing if enabled by default for new tracing test.

* commit 'b087849f5bbbf25bf5b03cf6172d2a50c08119e9':
  Disable tracing if enabled by default for new tracing test.

9 years agoDisable tracing if enabled by default for new tracing test.
Jeff Hao [Mon, 8 Sep 2014 22:32:39 +0000 (15:32 -0700)]
Disable tracing if enabled by default for new tracing test.

Bug: 17412385
Change-Id: If963a9ba2214c72efbef673a840bbeb6fdbb1795

9 years agoam afb7de60: Merge "Change when sampling thread is reset during shutdown to prevent...
Jeff Hao [Mon, 8 Sep 2014 22:28:28 +0000 (22:28 +0000)]
am afb7de60: Merge "Change when sampling thread is reset during shutdown to prevent races." into lmp-dev

* commit 'afb7de600066cc5daba0112eacbfdb43f1fb9f16':
  Change when sampling thread is reset during shutdown to prevent races.

9 years agoMerge "Change when sampling thread is reset during shutdown to prevent races." into...
Jeff Hao [Mon, 8 Sep 2014 22:22:08 +0000 (22:22 +0000)]
Merge "Change when sampling thread is reset during shutdown to prevent races." into lmp-dev

9 years agoChange when sampling thread is reset during shutdown to prevent races.
Jeff Hao [Mon, 8 Sep 2014 16:38:18 +0000 (09:38 -0700)]
Change when sampling thread is reset during shutdown to prevent races.

Also adds some extra argument checking and testing for tracing.

Bug: 17412385
Change-Id: I876378d5bd17d75ab346584713b04dc0656d2120

9 years agoam f81bfa3e: Ignore heap trim requests if we are the zygote
Mathieu Chartier [Mon, 8 Sep 2014 22:16:35 +0000 (22:16 +0000)]
am f81bfa3e: Ignore heap trim requests if we are the zygote

* commit 'f81bfa3e21c8a4e031505470ea954c93949cb30b':
  Ignore heap trim requests if we are the zygote

9 years agoam 4d3981c7: Revert "Fix heap trimmer daemon sleeping."
Mathieu Chartier [Mon, 8 Sep 2014 22:16:32 +0000 (22:16 +0000)]
am 4d3981c7: Revert "Fix heap trimmer daemon sleeping."

* commit '4d3981c72a546b87c8f5d391ff8b5135b8ca99a7':
  Revert "Fix heap trimmer daemon sleeping."

9 years agoAdd test for hashCode and System.identityHashCode.
Mathieu Chartier [Mon, 8 Sep 2014 21:48:25 +0000 (14:48 -0700)]
Add test for hashCode and System.identityHashCode.

(cherry picked from commit bda2836af470c45e30c567b14d6747a7450c4741)

Change-Id: Ieba8f8eb09441ec145a176df00c293695eae0f47

9 years agoIgnore heap trim requests if we are the zygote
Mathieu Chartier [Mon, 8 Sep 2014 20:35:11 +0000 (13:35 -0700)]
Ignore heap trim requests if we are the zygote

Done to prevent app launching lag due to sleep in heap trimmer
daemon.

Bug: 17310019

Change-Id: Ia593e7eced1c1583771985ec9e7b60ee0c0e7912

9 years agoRevert "Fix heap trimmer daemon sleeping."
Mathieu Chartier [Mon, 8 Sep 2014 20:08:41 +0000 (20:08 +0000)]
Revert "Fix heap trimmer daemon sleeping."

This reverts commit 698b44634396e8111e96e1116586fde89a838347.

Change-Id: Ifa8c2d554b82289cc31803ad6027735d2c3c9be8

9 years agoART: Fix unchecked register index validity
Andreas Gampe [Sun, 7 Sep 2014 20:06:12 +0000 (13:06 -0700)]
ART: Fix unchecked register index validity

The static check of index validity is against the type given by
the instruction, e.g., boolean for SPUT_BOOLEAN, but the target_type
is the resolved field type and can differ. An additional check is
necessary to avoid a read out of bounds.

Bug: 17411109
Change-Id: Ie4ed8bbda79f3f6403a24e727450a943447aa71d

9 years agoART: Change ART for new native bridge sequence
Andreas Gampe [Wed, 3 Sep 2014 04:22:18 +0000 (21:22 -0700)]
ART: Change ART for new native bridge sequence

Initialize or unload after a fork.

(cherry picked from commit 6be67eeedbe60afce42300ae3e7f0e7180a96efa)

Change-Id: I5a20de1cb68dd1802937b369b14c50c9c1031c67

9 years agoVisitClassesWithoutClassesLock isn't safe if classes move.
Ian Rogers [Fri, 29 Aug 2014 22:40:08 +0000 (15:40 -0700)]
VisitClassesWithoutClassesLock isn't safe if classes move.

Which they do, so avoid by doing an array allocation.
Also, tidy member variables to the end of ClassLinker.
Remove unnecessary mutable. Tidy and fix a locks required/excluded.

Change-Id: I2404a9e7a1ea997d68ab1206f97d2a20dffbda06
(cherry picked from commit dbf3be0f133c0bdf454f637fee2452dbb5f7c027)

9 years agoFix monitor visit for class initializer
Sebastien Hertz [Mon, 8 Sep 2014 08:15:19 +0000 (10:15 +0200)]
Fix monitor visit for class initializer

We do not hold class object's lock when invoking class initializer. Therefore
it is wrong to visit it when looking for monitors owned by a thread.

Bug: 17377924

Change-Id: I7fddcdb9a554301e040c571971eec9be6cba5eda

9 years agoam 2c63eee3: Merge "Fix numerous issues with DdmVmInternal allocation tracking" into...
Brian Carlstrom [Fri, 5 Sep 2014 19:07:47 +0000 (19:07 +0000)]
am 2c63eee3: Merge "Fix numerous issues with DdmVmInternal allocation tracking" into lmp-dev

* commit '2c63eee334bca18536060eea2e4a2f7883ef8eb9':
  Fix numerous issues with DdmVmInternal allocation tracking

9 years agoMerge "Fix numerous issues with DdmVmInternal allocation tracking" into lmp-dev
Brian Carlstrom [Fri, 5 Sep 2014 18:54:44 +0000 (18:54 +0000)]
Merge "Fix numerous issues with DdmVmInternal allocation tracking" into lmp-dev

9 years agoFix numerous issues with DdmVmInternal allocation tracking
Brian Carlstrom [Fri, 5 Sep 2014 05:15:18 +0000 (22:15 -0700)]
Fix numerous issues with DdmVmInternal allocation tracking

Issues addressed:
- Using without JDWP attached caused native crash.
- When buffer is full (64k entries), number of entries reported was 0.
- Disabling tracking after disabling tracking caused native crash.
- Asking for allocations after disabled caused native crash.
- Lock ordering issues between mutator lock and alloc tracker lock.

Adding 098-ddmc test to cover these cases.

Bug: 17392248
Change-Id: I45c0abbfb3dd7a7421aea3bbba2ea8d05225e48b

9 years agoam b100ff4f: Merge "Avoid recomputing the dex checksum during class loading" into...
Calin Juravle [Fri, 5 Sep 2014 15:42:37 +0000 (15:42 +0000)]
am b100ff4f: Merge "Avoid recomputing the dex checksum during class loading" into lmp-dev

* commit 'b100ff4f21e034172be9669b18851829bb51e567':
  Avoid recomputing the dex checksum during class loading

9 years agoMerge "Avoid recomputing the dex checksum during class loading" into lmp-dev
Calin Juravle [Fri, 5 Sep 2014 15:33:21 +0000 (15:33 +0000)]
Merge "Avoid recomputing the dex checksum during class loading" into lmp-dev

9 years agoAvoid recomputing the dex checksum during class loading
Calin Juravle [Tue, 2 Sep 2014 14:53:55 +0000 (15:53 +0100)]
Avoid recomputing the dex checksum during class loading

Thread the already computed checksum to VerifyOatAndDexFileChecksums and
LoadMultiDexFilesFromOatFile to avoid recomputing it.

Bug:17346103
Change-Id: Ifa0c1cad952853751e98cbb3c999631b9909a9f9

9 years agoam cb7c0e9e: Ensure alternate signal stack is minimum size.
Ian Rogers [Thu, 4 Sep 2014 19:43:33 +0000 (19:43 +0000)]
am cb7c0e9e: Ensure alternate signal stack is minimum size.

* commit 'cb7c0e9eb785a8d605da5d5b26ab265d4d635f1e':
  Ensure alternate signal stack is minimum size.

9 years agoEnsure alternate signal stack is minimum size.
Ian Rogers [Wed, 13 Aug 2014 21:37:26 +0000 (14:37 -0700)]
Ensure alternate signal stack is minimum size.

On Mac a sigaltstack may need to be 32KB, setting it to 16KB causes
sigaltstack to fail.

(cherry picked from commit c24a1e00b13a7ebf10dd896f6a18b1ad09617ec7)

Change-Id: Ic06d80f1acf5c4eb3d2dd1156bfa2805ab0df492

9 years agoam bbcd0a75: Merge "Fix heap trimmer daemon sleeping." into lmp-dev
Mathieu Chartier [Thu, 4 Sep 2014 17:51:00 +0000 (17:51 +0000)]
am bbcd0a75: Merge "Fix heap trimmer daemon sleeping." into lmp-dev

* commit 'bbcd0a75324dd9554109d91f2e9f7ae5d4c4a28a':
  Fix heap trimmer daemon sleeping.

9 years agoMerge "Fix heap trimmer daemon sleeping." into lmp-dev
Mathieu Chartier [Thu, 4 Sep 2014 17:38:39 +0000 (17:38 +0000)]
Merge "Fix heap trimmer daemon sleeping." into lmp-dev

9 years agoFix heap trimmer daemon sleeping.
Mathieu Chartier [Thu, 4 Sep 2014 04:26:36 +0000 (21:26 -0700)]
Fix heap trimmer daemon sleeping.

Problem:
Heap trimmer daemon sleeping caused app launch occasionally to take a
while due stopping the heap trimming thread taking a long time.

The heap trimmer thread now never sleeps, we prevent issues caused
by frequent back and forth process state changes by only
transitioning to background if it has been kCollectorTransitionWait
time since the last transition to background. Similar logic for heap
trimming.

Bug: 17310019

Change-Id: I23980421cc388f36b66a4c03ed15dd11d43f59b5

9 years agoam 57f2bbda: ART: Fix x86_64 GenSelect case when destination is Ref
Jean Christophe Beyler [Thu, 4 Sep 2014 16:55:10 +0000 (16:55 +0000)]
am 57f2bbda: ART: Fix x86_64 GenSelect case when destination is Ref

* commit '57f2bbda741d2d3d769a50268b4e0b9b54959684':
  ART: Fix x86_64 GenSelect case when destination is Ref

9 years agoART: Fix x86_64 GenSelect case when destination is Ref
Jean Christophe Beyler [Thu, 4 Sep 2014 15:34:28 +0000 (08:34 -0700)]
ART: Fix x86_64 GenSelect case when destination is Ref

Reference in x86_64 is a 64-bit solo register. As a result, the invocation
  of OpRegImm results in an error when Select opcode of the kind:
    ref = boolean ? null : null;
because opRegImm does not support 64-bit destination for OpMov.

The case above is only possible for ref because no one other constant except
  null is possible.

Bug: 17327895
Change-Id: I7541e744ec1c8619711712fd17be72764efcf3a8
Signed-off-by: Serguei Katkov <serguei.i.katkov@intel.com>
(cherry picked from commit 3f51e7d942c22edaab3a7e703a1e6a2dd6a26f77)

9 years agoam 607dcd8a: Merge "ART: Fix computation of frame size for direct proxy methods"...
Ian Rogers [Thu, 4 Sep 2014 15:59:36 +0000 (15:59 +0000)]
am 607dcd8a: Merge "ART: Fix computation of frame size for direct proxy methods" into lmp-dev

* commit '607dcd8a2aca4e44a564b7839c285315230545fd':
  ART: Fix computation of frame size for direct proxy methods

9 years agoMerge "ART: Fix computation of frame size for direct proxy methods" into lmp-dev
Ian Rogers [Thu, 4 Sep 2014 15:53:16 +0000 (15:53 +0000)]
Merge "ART: Fix computation of frame size for direct proxy methods" into lmp-dev