OSDN Git Service

android-x86/art.git
9 years agoam a4207b70: Merge "Revert "Revert "Pass current method to HNewInstance and HNewArray."""
Nicolas Geoffray [Tue, 9 Jun 2015 15:32:44 +0000 (15:32 +0000)]
am a4207b70: Merge "Revert "Revert "Pass current method to HNewInstance and HNewArray."""

* commit 'a4207b70a1b607a192a447bcc4929b2689dc23d2':
  Revert "Revert "Pass current method to HNewInstance and HNewArray.""

9 years agoMerge "Revert "Revert "Pass current method to HNewInstance and HNewArray."""
Nicolas Geoffray [Tue, 9 Jun 2015 15:24:08 +0000 (15:24 +0000)]
Merge "Revert "Revert "Pass current method to HNewInstance and HNewArray."""

9 years agoRevert "Revert "Pass current method to HNewInstance and HNewArray.""
Nicolas Geoffray [Tue, 9 Jun 2015 09:34:25 +0000 (10:34 +0100)]
Revert "Revert "Pass current method to HNewInstance and HNewArray.""

Problem exposed by this change was fixed in:
https://android-review.googlesource.com/#/c/154031/

This reverts commit 7b0e353b49ac3f464c662f20e20e240f0231afff.

Change-Id: I680c13dc9db9ba223ab11c7af255222860b4e6d2

9 years agoam aa77f6e5: Merge "Fix a crash in optimizing compiler with the current method."
Nicolas Geoffray [Tue, 9 Jun 2015 15:00:41 +0000 (15:00 +0000)]
am aa77f6e5: Merge "Fix a crash in optimizing compiler with the current method."

* commit 'aa77f6e5839b2ad3bf8ca2c06a44ec92e2667af1':
  Fix a crash in optimizing compiler with the current method.

9 years agoMerge "Fix a crash in optimizing compiler with the current method."
Nicolas Geoffray [Tue, 9 Jun 2015 14:51:21 +0000 (14:51 +0000)]
Merge "Fix a crash in optimizing compiler with the current method."

9 years agoFix a crash in optimizing compiler with the current method.
Nicolas Geoffray [Tue, 9 Jun 2015 13:12:28 +0000 (14:12 +0100)]
Fix a crash in optimizing compiler with the current method.

Crash was due to overwriting the location of the current method
in the slow path of an intrinsic.

Change-Id: I6ca58ef5b3cea19925e60b9500aef543bc5f71ef

9 years agoam 7c5e26b3: Merge "Revert "Pass current method to HNewInstance and HNewArray.""
Nicolas Geoffray [Tue, 9 Jun 2015 09:46:59 +0000 (09:46 +0000)]
am 7c5e26b3: Merge "Revert "Pass current method to HNewInstance and HNewArray.""

* commit '7c5e26b3ea5262c0aea3374148750e81340a4bf9':
  Revert "Pass current method to HNewInstance and HNewArray."

9 years agoam 93ce3528: Merge "Quick: Fix LoopRepeatingTopologicalSortIterator."
Vladimir Marko [Tue, 9 Jun 2015 09:46:58 +0000 (09:46 +0000)]
am 93ce3528: Merge "Quick: Fix LoopRepeatingTopologicalSortIterator."

* commit '93ce3528cbf61579a0f2929ae56f0dd1fe554973':
  Quick: Fix LoopRepeatingTopologicalSortIterator.

9 years agoam b0c85983: Merge "Pass current method to HNewInstance and HNewArray."
Nicolas Geoffray [Tue, 9 Jun 2015 09:46:57 +0000 (09:46 +0000)]
am b0c85983: Merge "Pass current method to HNewInstance and HNewArray."

* commit 'b0c85983741d695fc568b61a1e0d8f318cd4828f':
  Pass current method to HNewInstance and HNewArray.

9 years agoMerge "Revert "Pass current method to HNewInstance and HNewArray.""
Nicolas Geoffray [Tue, 9 Jun 2015 09:26:04 +0000 (09:26 +0000)]
Merge "Revert "Pass current method to HNewInstance and HNewArray.""

9 years agoRevert "Pass current method to HNewInstance and HNewArray."
Nicolas Geoffray [Tue, 9 Jun 2015 09:25:50 +0000 (09:25 +0000)]
Revert "Pass current method to HNewInstance and HNewArray."

082-inline-execute fails on x86.

This reverts commit e21aa42e1341d34250742abafdd83311ad9fa737.

Change-Id: Ib3fd25faee2e0128001e40d3d51a74f959bc4449

9 years agoMerge "Quick: Fix LoopRepeatingTopologicalSortIterator."
Vladimir Marko [Tue, 9 Jun 2015 09:05:36 +0000 (09:05 +0000)]
Merge "Quick: Fix LoopRepeatingTopologicalSortIterator."

9 years agoMerge "Pass current method to HNewInstance and HNewArray."
Nicolas Geoffray [Tue, 9 Jun 2015 08:13:15 +0000 (08:13 +0000)]
Merge "Pass current method to HNewInstance and HNewArray."

9 years agoam f7bd8faf: Merge "Revert "Revert "Use HCurrentMethod in HInvokeStaticOrDirect."""
Nicolas Geoffray [Tue, 9 Jun 2015 08:07:44 +0000 (08:07 +0000)]
am f7bd8faf: Merge "Revert "Revert "Use HCurrentMethod in HInvokeStaticOrDirect."""

* commit 'f7bd8fafdf3bbf05fbcfc659cd798b3fd59051d5':
  Revert "Revert "Use HCurrentMethod in HInvokeStaticOrDirect.""

9 years agoMerge "Revert "Revert "Use HCurrentMethod in HInvokeStaticOrDirect."""
Nicolas Geoffray [Tue, 9 Jun 2015 07:55:16 +0000 (07:55 +0000)]
Merge "Revert "Revert "Use HCurrentMethod in HInvokeStaticOrDirect."""

9 years agoam 430afefe: Merge "Enable 64-bit CFI tests."
David Srbecky [Tue, 9 Jun 2015 01:53:38 +0000 (01:53 +0000)]
am 430afefe: Merge "Enable 64-bit CFI tests."

* commit '430afefe1cced35cf5eb12ce7a6dcbfc5007c97e':
  Enable 64-bit CFI tests.

9 years agoMerge "Enable 64-bit CFI tests."
David Srbecky [Tue, 9 Jun 2015 01:41:11 +0000 (01:41 +0000)]
Merge "Enable 64-bit CFI tests."

9 years agoEnable 64-bit CFI tests.
David Srbecky [Tue, 9 Jun 2015 00:21:23 +0000 (01:21 +0100)]
Enable 64-bit CFI tests.

Those should work now since we have switched to ELF-64.

Change-Id: Id95b8b309843b30864a860c745d16b50d7f88bda

9 years agoam 0f683394: Merge "More LOW_4G optimizations"
Mathieu Chartier [Mon, 8 Jun 2015 18:49:24 +0000 (18:49 +0000)]
am 0f683394: Merge "More LOW_4G optimizations"

* commit '0f6833940b4c58884ebab685d8d22e56c02be0d5':
  More LOW_4G optimizations

9 years agoMerge "More LOW_4G optimizations"
Mathieu Chartier [Mon, 8 Jun 2015 18:33:42 +0000 (18:33 +0000)]
Merge "More LOW_4G optimizations"

9 years agoMore LOW_4G optimizations
Mathieu Chartier [Thu, 4 Jun 2015 23:22:41 +0000 (16:22 -0700)]
More LOW_4G optimizations

Eagerly try to map at an address when it doesn't overlap with
the ART known maps.

Reduces time spent creating the heap on N9 from ~100ms to ~10ms.

(cherry picked from commit 3ae250c16bae3462e040b844dbc2e2fc732d67ba)

Bug: 20727525
Change-Id: Ie8982ca9d1f3158104b2b53b992c3a28841fc443

9 years agoam a56b2e09: Merge "Fix nested deoptimization."
Mingyao Yang [Mon, 8 Jun 2015 17:50:14 +0000 (17:50 +0000)]
am a56b2e09: Merge "Fix nested deoptimization."

* commit 'a56b2e09cc311d3b8eb9384decc76a13ed5da6e9':
  Fix nested deoptimization.

9 years agoMerge "Fix nested deoptimization."
Mingyao Yang [Mon, 8 Jun 2015 17:41:30 +0000 (17:41 +0000)]
Merge "Fix nested deoptimization."

9 years agoQuick: Fix LoopRepeatingTopologicalSortIterator.
Vladimir Marko [Mon, 8 Jun 2015 15:39:02 +0000 (16:39 +0100)]
Quick: Fix LoopRepeatingTopologicalSortIterator.

Always push the loop head on the loop head stack. This fixes
a bug where we failed to return to an unnatural loop head to
recalculate its GVN data.

Bug: 17410955
Change-Id: I3a2c3225e5d16268c3f56f7f90228759c7da37a9

9 years agoRevert "Revert "Use HCurrentMethod in HInvokeStaticOrDirect.""
Nicolas Geoffray [Thu, 4 Jun 2015 17:21:04 +0000 (18:21 +0100)]
Revert "Revert "Use HCurrentMethod in HInvokeStaticOrDirect.""

Fix was to special case baseline for x86, which does not have enough
registers to allocate the current method.

This reverts commit c345f141f11faad177aa9635a78088d00cf66086.

Change-Id: I5997aa52f8d4df373ae5ff4d4150dac0c44c4c10

9 years agoam 8c4cce0a: Merge "Revert "Support for inlining virtual and interface calls.""
Nicolas Geoffray [Mon, 8 Jun 2015 16:02:08 +0000 (16:02 +0000)]
am 8c4cce0a: Merge "Revert "Support for inlining virtual and interface calls.""

* commit '8c4cce0abe6cfa8f4157cfa42b18474d9536c159':
  Revert "Support for inlining virtual and interface calls."

9 years agoam c2c22074: Merge "Revert "Do a type check for knowing if we can inline.""
Nicolas Geoffray [Mon, 8 Jun 2015 16:02:04 +0000 (16:02 +0000)]
am c2c22074: Merge "Revert "Do a type check for knowing if we can inline.""

* commit 'c2c22074a4d24a53e66a4aa2afbb039746fef498':
  Revert "Do a type check for knowing if we can inline."

9 years agoMerge "Revert "Support for inlining virtual and interface calls.""
Nicolas Geoffray [Mon, 8 Jun 2015 15:54:38 +0000 (15:54 +0000)]
Merge "Revert "Support for inlining virtual and interface calls.""

9 years agoRevert "Support for inlining virtual and interface calls."
Nicolas Geoffray [Mon, 8 Jun 2015 15:52:23 +0000 (15:52 +0000)]
Revert "Support for inlining virtual and interface calls."

Fails for some apps.

bug: 21674542

This reverts commit 1d5006c34d75758752bf3499892e3d5beb11d5dc.

Change-Id: Ia74b5e54d59f8ffe9992591324a12f71efb67af4

9 years agoMerge "Revert "Do a type check for knowing if we can inline.""
Nicolas Geoffray [Mon, 8 Jun 2015 15:53:30 +0000 (15:53 +0000)]
Merge "Revert "Do a type check for knowing if we can inline.""

9 years agoRevert "Do a type check for knowing if we can inline."
Nicolas Geoffray [Mon, 8 Jun 2015 15:53:16 +0000 (15:53 +0000)]
Revert "Do a type check for knowing if we can inline."

Fails for some apps.
bug:21674542

This reverts commit 7ce4b3d4c1c562959a8a3640df764ab50f1cbdf1.

Change-Id: Ie25852c022391834858b2f5e34e8c7aeb1c3b3dd

9 years agoPass current method to HNewInstance and HNewArray.
Nicolas Geoffray [Mon, 8 Jun 2015 14:35:07 +0000 (15:35 +0100)]
Pass current method to HNewInstance and HNewArray.

Also remove unsed CodeGenerator::LoadCurrentMethod.

Change-Id: I4b8d3f2a30b8e2c76b6b329a72555483c993cb73

9 years agoFix nested deoptimization.
Mingyao Yang [Mon, 18 May 2015 19:12:50 +0000 (12:12 -0700)]
Fix nested deoptimization.

Handle nested deoptimization cases. Create a stacked shadow frame
records to keep track of deoptimization shadow frames. Shadow frames
under construction can be tracked in the same stack.

Bug: 20845490
Change-Id: I768285792c29e7c3cfcd21e7a2600802506024d8

9 years agoam ccd6337f: Merge "ART: Reload class on miranda method in verifier"
Andreas Gampe [Sun, 7 Jun 2015 22:44:52 +0000 (22:44 +0000)]
am ccd6337f: Merge "ART: Reload class on miranda method in verifier"

* commit 'ccd6337f31d13706c602f3d9436e9b4025075b63':
  ART: Reload class on miranda method in verifier

9 years agoam eb459894: Merge "Revert "Revert "Turn off duplicate-classes checking"""
Andreas Gampe [Sun, 7 Jun 2015 22:44:51 +0000 (22:44 +0000)]
am eb459894: Merge "Revert "Revert "Turn off duplicate-classes checking"""

* commit 'eb4598948fdf013241f8f8598c559f0ce92eb8b4':
  Revert "Revert "Turn off duplicate-classes checking""

9 years agoam 7048c404: (-s ours) Merge "Revert "DO NOT MERGE ART: Turn off duplicate-classes...
Andreas Gampe [Sun, 7 Jun 2015 22:44:49 +0000 (22:44 +0000)]
am 7048c404: (-s ours) Merge "Revert "DO NOT MERGE ART: Turn off duplicate-classes checking""

* commit '7048c40488532843dd2fad9730c3ab16be613e13':
  Revert "DO NOT MERGE ART: Turn off duplicate-classes checking"

9 years agoam 346bf296: (-s ours) Merge "DO NOT MERGE ART: Turn off duplicate-classes checking"
Andreas Gampe [Sun, 7 Jun 2015 22:44:48 +0000 (22:44 +0000)]
am 346bf296: (-s ours) Merge "DO NOT MERGE ART: Turn off duplicate-classes checking"

* commit '346bf29623ca0e9471064406a5d29d461f1b27ae':
  DO NOT MERGE ART: Turn off duplicate-classes checking

9 years agoMerge "ART: Reload class on miranda method in verifier"
Andreas Gampe [Sun, 7 Jun 2015 22:39:51 +0000 (22:39 +0000)]
Merge "ART: Reload class on miranda method in verifier"

9 years agoMerge "Revert "Revert "Turn off duplicate-classes checking"""
Andreas Gampe [Sun, 7 Jun 2015 22:36:15 +0000 (22:36 +0000)]
Merge "Revert "Revert "Turn off duplicate-classes checking"""

9 years agoMerge "Revert "DO NOT MERGE ART: Turn off duplicate-classes checking""
Andreas Gampe [Sun, 7 Jun 2015 22:36:00 +0000 (22:36 +0000)]
Merge "Revert "DO NOT MERGE ART: Turn off duplicate-classes checking""

9 years agoMerge "DO NOT MERGE ART: Turn off duplicate-classes checking"
Andreas Gampe [Sun, 7 Jun 2015 22:35:42 +0000 (22:35 +0000)]
Merge "DO NOT MERGE ART: Turn off duplicate-classes checking"

9 years agoART: Reload class on miranda method in verifier
Andreas Gampe [Fri, 5 Jun 2015 05:19:58 +0000 (22:19 -0700)]
ART: Reload class on miranda method in verifier

When checking the receiver of a call and we have a miranda method,
reload the class from the method index instead of using the declared
class - which is the interface class, not the abstract class.

Bug: 21646347
Change-Id: I5bceab75c3b76233cb42ea5cf0214d32c8149994

9 years agoRevert "Revert "Turn off duplicate-classes checking""
Andreas Gampe [Wed, 3 Jun 2015 22:43:16 +0000 (15:43 -0700)]
Revert "Revert "Turn off duplicate-classes checking""

This reverts commit 18a1827a159f1b235f3fcc934f428059185f550e.

Bug: 21333911

(cherry picked from commit 0fc16a09b4d2323f9c2b6aabc81ce120b278329b)

Change-Id: I8cb96efbf7151b238f3ee137a938b20ddfaf0ebc

9 years agoRevert "DO NOT MERGE ART: Turn off duplicate-classes checking"
Andreas Gampe [Thu, 21 May 2015 20:33:40 +0000 (20:33 +0000)]
Revert "DO NOT MERGE ART: Turn off duplicate-classes checking"

This reverts commit aafcfca5fe545365ef377fff2897b8a908f03e71.

Bug: 21333911

(cherry picked from commit 18a1827a159f1b235f3fcc934f428059185f550e)

Change-Id: Ibbc6b1be8bebc1d0ab9c5955b34eb89f40577baa

9 years agoDO NOT MERGE ART: Turn off duplicate-classes checking
Andreas Gampe [Wed, 20 May 2015 21:48:10 +0000 (14:48 -0700)]
DO NOT MERGE ART: Turn off duplicate-classes checking

Bug: 21333911

(cherry picked from commit aafcfca5fe545365ef377fff2897b8a908f03e71)

Change-Id: I9832526a6d2996aadb459e3ec0930cbaf151478a

9 years agoam c1d8da19: Merge "ART: Add SetSpecialSignalHandlerFn to version-script.txt"
Andreas Gampe [Sat, 6 Jun 2015 03:59:39 +0000 (03:59 +0000)]
am c1d8da19: Merge "ART: Add SetSpecialSignalHandlerFn to version-script.txt"

* commit 'c1d8da19488f78f06c9c7b09cfcce9523d755d51':
  ART: Add SetSpecialSignalHandlerFn to version-script.txt

9 years agoMerge "ART: Add SetSpecialSignalHandlerFn to version-script.txt"
Andreas Gampe [Sat, 6 Jun 2015 03:52:31 +0000 (03:52 +0000)]
Merge "ART: Add SetSpecialSignalHandlerFn to version-script.txt"

9 years agoART: Add SetSpecialSignalHandlerFn to version-script.txt
Andreas Gampe [Sat, 6 Jun 2015 03:45:31 +0000 (20:45 -0700)]
ART: Add SetSpecialSignalHandlerFn to version-script.txt

Expose the new function from the sigchainlib implementation.

Bug: 20217701
Change-Id: I7d21025595775e057ea703236ca88ceb07173136

9 years agoam 6d359184: Merge "Use runFinalizationWithTimeout for native allocations"
Mathieu Chartier [Fri, 5 Jun 2015 23:52:48 +0000 (23:52 +0000)]
am 6d359184: Merge "Use runFinalizationWithTimeout for native allocations"

* commit '6d3591845235b9effd2e7b0238443b94ecabf967':
  Use runFinalizationWithTimeout for native allocations

9 years agoMerge "Use runFinalizationWithTimeout for native allocations"
Mathieu Chartier [Fri, 5 Jun 2015 23:44:27 +0000 (23:44 +0000)]
Merge "Use runFinalizationWithTimeout for native allocations"

9 years agoUse runFinalizationWithTimeout for native allocations
Mathieu Chartier [Fri, 5 Jun 2015 20:21:05 +0000 (13:21 -0700)]
Use runFinalizationWithTimeout for native allocations

Prevents deadlocks by not waiting longer than 250ms for finalizers
to complete.

(cherry picked from commit 3b532d744034b43ed329a3198f15846d80fec3f0)

Bug: 21544853
Change-Id: I57b2f7ae8b74185922eb3c15ba0ab71a4d2348aa

9 years agoam 38b66b6f: Merge "Add atrace calls to runtime start and heap create"
Mathieu Chartier [Thu, 4 Jun 2015 23:28:56 +0000 (23:28 +0000)]
am 38b66b6f: Merge "Add atrace calls to runtime start and heap create"

* commit '38b66b6fed1adcc1da4b931a32f78c5290a97c1e':
  Add atrace calls to runtime start and heap create

9 years agoMerge "Add atrace calls to runtime start and heap create"
Mathieu Chartier [Thu, 4 Jun 2015 23:19:26 +0000 (23:19 +0000)]
Merge "Add atrace calls to runtime start and heap create"

9 years agoAdd atrace calls to runtime start and heap create
Richard Uhler [Tue, 7 Apr 2015 17:56:50 +0000 (10:56 -0700)]
Add atrace calls to runtime start and heap create

(cherry picked from commit 7fabaa6ba1927d21a317c03499b705cbde4f6a47)

Bug: 20727525

Change-Id: I91a74b793fb9eda8ed580244a6a5fd313ef2eb27

9 years agoam da2fd5aa: Merge "If heap poisoning is on, pass the relevant flag to LOCAL_ASFLAGS."
Hiroshi Yamauchi [Thu, 4 Jun 2015 22:50:01 +0000 (22:50 +0000)]
am da2fd5aa: Merge "If heap poisoning is on, pass the relevant flag to LOCAL_ASFLAGS."

* commit 'da2fd5aa2cbdab371f9a1c29ff4e4dfd09305fdc':
  If heap poisoning is on, pass the relevant flag to LOCAL_ASFLAGS.

9 years agoMerge "If heap poisoning is on, pass the relevant flag to LOCAL_ASFLAGS."
Hiroshi Yamauchi [Thu, 4 Jun 2015 22:38:10 +0000 (22:38 +0000)]
Merge "If heap poisoning is on, pass the relevant flag to LOCAL_ASFLAGS."

9 years agoam 8c46e0d5: Merge "Add optimization for LOW_4G allocator"
Mathieu Chartier [Thu, 4 Jun 2015 22:32:39 +0000 (22:32 +0000)]
am 8c46e0d5: Merge "Add optimization for LOW_4G allocator"

* commit '8c46e0d57e52d78196f981d41b9d0434abd6d592':
  Add optimization for LOW_4G allocator

9 years agoMerge "Add optimization for LOW_4G allocator"
Mathieu Chartier [Thu, 4 Jun 2015 22:21:35 +0000 (22:21 +0000)]
Merge "Add optimization for LOW_4G allocator"

9 years agoAdd optimization for LOW_4G allocator
Mathieu Chartier [Thu, 4 Jun 2015 20:42:14 +0000 (13:42 -0700)]
Add optimization for LOW_4G allocator

The optimization uses the maps_ field to skip over regions which we
know wont be large enough for the request.

Reduces time to create heap from 500-700ms to 100ms on N9.

(cherry picked from commit 1c8bef4a71612f10b89b102434f70de5a127cc74)

Bug: 20727525

Change-Id: I4fa92d58c2e135ba31a03ababff46669089bb542

9 years agoIf heap poisoning is on, pass the relevant flag to LOCAL_ASFLAGS.
Roland Levillain [Thu, 4 Jun 2015 16:50:27 +0000 (17:50 +0100)]
If heap poisoning is on, pass the relevant flag to LOCAL_ASFLAGS.

This change ensures assembly files honoring heap poisoning
(notably used by stub_test) are compiled with
-DART_HEAP_POISONING=1 when this feature is turned on.

Bug: 21621105
Change-Id: I13fe456cd2733a09bdfd3a9808cfd70513b14698

9 years agoam 6a1c92f1: Merge "Revert "Use HCurrentMethod in HInvokeStaticOrDirect.""
Nicolas Geoffray [Thu, 4 Jun 2015 17:21:41 +0000 (17:21 +0000)]
am 6a1c92f1: Merge "Revert "Use HCurrentMethod in HInvokeStaticOrDirect.""

* commit '6a1c92f1e4a455d802ab0d0ac47504cdd7c12f0f':
  Revert "Use HCurrentMethod in HInvokeStaticOrDirect."

9 years agoam 8a9fba91: Merge "Do a type check for knowing if we can inline."
Nicolas Geoffray [Thu, 4 Jun 2015 17:21:39 +0000 (17:21 +0000)]
am 8a9fba91: Merge "Do a type check for knowing if we can inline."

* commit '8a9fba9154310ddc8024150ca8cd5a7c4b76b71b':
  Do a type check for knowing if we can inline.

9 years agoMerge "Revert "Use HCurrentMethod in HInvokeStaticOrDirect.""
Nicolas Geoffray [Thu, 4 Jun 2015 17:17:45 +0000 (17:17 +0000)]
Merge "Revert "Use HCurrentMethod in HInvokeStaticOrDirect.""

9 years agoRevert "Use HCurrentMethod in HInvokeStaticOrDirect."
Nicolas Geoffray [Thu, 4 Jun 2015 17:17:32 +0000 (17:17 +0000)]
Revert "Use HCurrentMethod in HInvokeStaticOrDirect."

Fails on baseline/x86.

This reverts commit 38207af82afb6f99c687f64b15601ed20d82220a.

Change-Id: Ib71018367eb7c6046965494a7e996c22af3de403

9 years agoMerge "Do a type check for knowing if we can inline."
Nicolas Geoffray [Thu, 4 Jun 2015 17:12:17 +0000 (17:12 +0000)]
Merge "Do a type check for knowing if we can inline."

9 years agoam fd0fb02c: Merge "Fix JNI GetSuperClasss"
Brian Carlstrom [Thu, 4 Jun 2015 17:04:24 +0000 (17:04 +0000)]
am fd0fb02c: Merge "Fix JNI GetSuperClasss"

* commit 'fd0fb02c728689ca32a12476c707b96f6ca3e1fe':
  Fix JNI GetSuperClasss

9 years agoDo a type check for knowing if we can inline.
Nicolas Geoffray [Thu, 4 Jun 2015 17:02:34 +0000 (18:02 +0100)]
Do a type check for knowing if we can inline.

Otherwise, we might successfully inline:
((String)nonStringObject).charAt()

Because the lookup of the method is based on the index of charAt,
and not its name.

Change-Id: I72ce802fd50cfb71343197f0a32bb1ef56549097

9 years agoMerge "Fix JNI GetSuperClasss"
Brian Carlstrom [Thu, 4 Jun 2015 16:54:46 +0000 (16:54 +0000)]
Merge "Fix JNI GetSuperClasss"

9 years agoam 962863b6: Merge "Cache stack map encoding"
David Brazdil [Thu, 4 Jun 2015 16:39:32 +0000 (16:39 +0000)]
am 962863b6: Merge "Cache stack map encoding"

* commit '962863b6481163eb00e7621ec6f854cb0b6f67bc':
  Cache stack map encoding

9 years agoMerge "Cache stack map encoding"
David Brazdil [Thu, 4 Jun 2015 16:26:10 +0000 (16:26 +0000)]
Merge "Cache stack map encoding"

9 years agoCache stack map encoding
David Brazdil [Fri, 29 May 2015 15:29:43 +0000 (16:29 +0100)]
Cache stack map encoding

Operations on CodeInfo and StackMap objects repeatedly read encoding
information from the MemoryRegion. Since these are 3-bit-loads of
values that never change, caching them can measurably reduce compile
times.

According to benchmarks, this patch saves 1-3% on armv7, 2-4% on x86,
and 0-1% on x64.

Change-Id: I46b197513601325d8bab562cc80100c00ec28a3b

9 years agoFix JNI GetSuperClasss
Brian Carlstrom [Fri, 22 May 2015 20:43:00 +0000 (13:43 -0700)]
Fix JNI GetSuperClasss

Change-Id: I005e9f84220dabfcea7cbc7b7b0ad422dd435a40

9 years agoam c47908e8: Merge "Support for inlining virtual and interface calls."
Nicolas Geoffray [Thu, 4 Jun 2015 15:56:34 +0000 (15:56 +0000)]
am c47908e8: Merge "Support for inlining virtual and interface calls."

* commit 'c47908e8c32fd58bc4dc75998a80f706954db1dc':
  Support for inlining virtual and interface calls.

9 years agoam 4c1ac208: Merge "Use HCurrentMethod in HInvokeStaticOrDirect."
Nicolas Geoffray [Thu, 4 Jun 2015 15:56:33 +0000 (15:56 +0000)]
am 4c1ac208: Merge "Use HCurrentMethod in HInvokeStaticOrDirect."

* commit '4c1ac208673c677951502552cadc38ae64fe1580':
  Use HCurrentMethod in HInvokeStaticOrDirect.

9 years agoMerge "Support for inlining virtual and interface calls."
Nicolas Geoffray [Thu, 4 Jun 2015 15:50:31 +0000 (15:50 +0000)]
Merge "Support for inlining virtual and interface calls."

9 years agoMerge "Use HCurrentMethod in HInvokeStaticOrDirect."
Nicolas Geoffray [Thu, 4 Jun 2015 15:49:21 +0000 (15:49 +0000)]
Merge "Use HCurrentMethod in HInvokeStaticOrDirect."

9 years agoam 73235820: Merge "Revert "Revert "Modification to the way boot classpath resources...
Neil Fuller [Thu, 4 Jun 2015 15:44:53 +0000 (15:44 +0000)]
am 73235820: Merge "Revert "Revert "Modification to the way boot classpath resources are loaded"""

* commit '732358201f5c319efe9119c2f61116ec85ad4187':
  Revert "Revert "Modification to the way boot classpath resources are loaded""

9 years agoMerge "Revert "Revert "Modification to the way boot classpath resources are loaded"""
Neil Fuller [Thu, 4 Jun 2015 15:38:05 +0000 (15:38 +0000)]
Merge "Revert "Revert "Modification to the way boot classpath resources are loaded"""

9 years agoSupport for inlining virtual and interface calls.
Nicolas Geoffray [Wed, 3 Jun 2015 14:04:32 +0000 (15:04 +0100)]
Support for inlining virtual and interface calls.

Also had to change the pass order to get reference type propagation
before the inliner.

Change-Id: I4bf3bbb2d17c7d9cab632cfdd96adad8368bdfea

9 years agoUse HCurrentMethod in HInvokeStaticOrDirect.
Nicolas Geoffray [Mon, 1 Jun 2015 14:46:22 +0000 (15:46 +0100)]
Use HCurrentMethod in HInvokeStaticOrDirect.

Change-Id: I0d15244b6b44c8b10079398c55da5071a3e3af66

9 years agoam 6d8bd45e: Merge "Add $ tag to make sure a method has not been inlined."
Calin Juravle [Thu, 4 Jun 2015 13:14:50 +0000 (13:14 +0000)]
am 6d8bd45e: Merge "Add $ tag to make sure a method has not been inlined."

* commit '6d8bd45e585d549bda42da22ee96e7149cfd720d':
  Add $noinline$ tag to make sure a method has not been inlined.

9 years agoMerge "Add $noinline$ tag to make sure a method has not been inlined."
Calin Juravle [Thu, 4 Jun 2015 13:01:51 +0000 (13:01 +0000)]
Merge "Add $noinline$ tag to make sure a method has not been inlined."

9 years agoRevert "Revert "Modification to the way boot classpath resources are loaded""
Neil Fuller [Thu, 4 Jun 2015 12:24:08 +0000 (12:24 +0000)]
Revert "Revert "Modification to the way boot classpath resources are loaded""

This reverts commit 1e27c5bd372fbe55c46127c8f233a13d9994334c.

Change-Id: I8f45a890ae1d3c0b0497e4fea4fb5a4c7a07b59f

9 years agoAdd $noinline$ tag to make sure a method has not been inlined.
Guillaume "Vermeille" Sanchez [Wed, 3 Jun 2015 14:32:41 +0000 (15:32 +0100)]
Add $noinline$ tag to make sure a method has not been inlined.

Change-Id: Ic166cf43be566a0fa44c3c9e1939f647806fc500

9 years agoam 2029c632: Merge "Fix valgrind large_object_space_test"
Mathieu Chartier [Thu, 4 Jun 2015 01:46:51 +0000 (01:46 +0000)]
am 2029c632: Merge "Fix valgrind large_object_space_test"

* commit '2029c6320a3ff996095b294534ba7236bc97c45f':
  Fix valgrind large_object_space_test

9 years agoMerge "Fix valgrind large_object_space_test"
Mathieu Chartier [Thu, 4 Jun 2015 01:35:44 +0000 (01:35 +0000)]
Merge "Fix valgrind large_object_space_test"

9 years agoFix valgrind large_object_space_test
Mathieu Chartier [Thu, 4 Jun 2015 00:32:42 +0000 (17:32 -0700)]
Fix valgrind large_object_space_test

Also some cleanup.

(cherry picked from commit c991403cd8b869e4a38c11c6a58223b82b89a1b2)

Change-Id: I9c1a8093e6356f1b52e332009429b77fa5c1d448

9 years agoam dc4a4e0f: Merge "Add a way to determine if a large object is a zygote object"
Mathieu Chartier [Wed, 3 Jun 2015 23:24:01 +0000 (23:24 +0000)]
am dc4a4e0f: Merge "Add a way to determine if a large object is a zygote object"

* commit 'dc4a4e0fa3af68d493fd49e7887cdcb748d64b6d':
  Add a way to determine if a large object is a zygote object

9 years agoam 455f320d: Merge "ART: Refactor Thread::Init"
Andreas Gampe [Wed, 3 Jun 2015 23:23:59 +0000 (23:23 +0000)]
am 455f320d: Merge "ART: Refactor Thread::Init"

* commit '455f320d7238e1902b36553cddf4412ae7ee2e31':
  ART: Refactor Thread::Init

9 years agoMerge "Add a way to determine if a large object is a zygote object"
Mathieu Chartier [Wed, 3 Jun 2015 23:12:44 +0000 (23:12 +0000)]
Merge "Add a way to determine if a large object is a zygote object"

9 years agoMerge "ART: Refactor Thread::Init"
Andreas Gampe [Wed, 3 Jun 2015 23:11:48 +0000 (23:11 +0000)]
Merge "ART: Refactor Thread::Init"

9 years agoART: Refactor Thread::Init
Andreas Gampe [Tue, 2 Jun 2015 05:29:51 +0000 (22:29 -0700)]
ART: Refactor Thread::Init

This refactor allows the parent thread to allocate the JNIEnvExt
for the child (with a fallback in place in Init). This allows to
throw an OOME in CreateNativeThread instead of aborting in the
child.

Bug: 21291279

(cherry picked from commit 520abbd0edcf333f07164539620ce65258c72383)

Change-Id: Iccc1a5c202999f5bfacec706d9833e53135ba2fa

9 years agoAdd a way to determine if a large object is a zygote object
Mathieu Chartier [Wed, 3 Jun 2015 20:32:15 +0000 (13:32 -0700)]
Add a way to determine if a large object is a zygote object

Also fix a slight memory leak in LargeObjectMapSpace.

Bug: 20674158

(cherry picked from commit 8f23620d45399286564986d2541cda761b3fe0ac)

Change-Id: I2416df484e5b84a8c5cc0b5664c8cb102dc235f6

9 years agoam 2519fc40: Merge "ART: Prune FindArrayClass cache in image writer"
Andreas Gampe [Wed, 3 Jun 2015 20:02:53 +0000 (20:02 +0000)]
am 2519fc40: Merge "ART: Prune FindArrayClass cache in image writer"

* commit '2519fc40d4ae89322d28d1ff610fe81bb90fb564':
  ART: Prune FindArrayClass cache in image writer

9 years agoMerge "ART: Prune FindArrayClass cache in image writer"
Andreas Gampe [Wed, 3 Jun 2015 19:54:30 +0000 (19:54 +0000)]
Merge "ART: Prune FindArrayClass cache in image writer"

9 years agoam 1710bf30: Merge "Tidy up spelling"
Kenny Root [Wed, 3 Jun 2015 19:22:37 +0000 (19:22 +0000)]
am 1710bf30: Merge "Tidy up spelling"

* commit '1710bf308c1465d2130547c0aa9066d28d57648b':
  Tidy up spelling

9 years agoMerge "Tidy up spelling"
Kenny Root [Wed, 3 Jun 2015 19:15:05 +0000 (19:15 +0000)]
Merge "Tidy up spelling"

9 years agoam ffbf83b6: Merge "Emit instance fields for java.lang.Object in hprof"
Mathieu Chartier [Wed, 3 Jun 2015 18:36:42 +0000 (18:36 +0000)]
am ffbf83b6: Merge "Emit instance fields for java.lang.Object in hprof"

* commit 'ffbf83b6e9ff4e3dd12a99cb607d4d3a6630d7bc':
  Emit instance fields for java.lang.Object in hprof

9 years agoMerge "Emit instance fields for java.lang.Object in hprof"
Mathieu Chartier [Wed, 3 Jun 2015 18:28:23 +0000 (18:28 +0000)]
Merge "Emit instance fields for java.lang.Object in hprof"

9 years agoEmit instance fields for java.lang.Object in hprof
Mathieu Chartier [Wed, 3 Jun 2015 17:51:13 +0000 (10:51 -0700)]
Emit instance fields for java.lang.Object in hprof

Previously we omitted these fields.

(cherry picked from commit 0adc90eb0592e220f787f87dbef3a9b5c1db2080)

Bug: 20726205
Change-Id: I81c55919a4bd015bc0a4e7259a41a05dab534e11