OSDN Git Service

android-x86/art.git
10 years agoam 549c9b17: am 4bf8d11d: Fix proxy tracing and enable tests that now work with tracing.
Jeff Hao [Fri, 15 Aug 2014 20:58:30 +0000 (20:58 +0000)]
am 549c9b17: am 4bf8d11d: Fix proxy tracing and enable tests that now work with tracing.

* commit '549c9b1776c03789699f0fa6b7b0c90d7fcca019':
  Fix proxy tracing and enable tests that now work with tracing.

10 years agoresolved conflicts for merge of 549c9b17 to lmp-dev-plus-aosp
Jeff Hao [Fri, 15 Aug 2014 20:54:24 +0000 (13:54 -0700)]
resolved conflicts for merge of 549c9b17 to lmp-dev-plus-aosp

Change-Id: Icea7763c830aeefa02d6a86c960c4b41148d397b

10 years agoam 9dcf75c8: Merge "Make gdb fixup work with multiple DWARF Compilation Units"
Brian Carlstrom [Fri, 15 Aug 2014 19:26:03 +0000 (19:26 +0000)]
am 9dcf75c8: Merge "Make gdb fixup work with multiple DWARF Compilation Units"

* commit '9dcf75c80187504ec88e7ef91d64a6a68279eb9d':
  Make gdb fixup work with multiple DWARF Compilation Units

10 years agoMerge "Make gdb fixup work with multiple DWARF Compilation Units"
Brian Carlstrom [Fri, 15 Aug 2014 19:05:09 +0000 (19:05 +0000)]
Merge "Make gdb fixup work with multiple DWARF Compilation Units"

10 years agoam ee736b29: Merge "Make Monitor::Wait more robust to spurious Inflate failures."
Ian Rogers [Fri, 15 Aug 2014 18:52:43 +0000 (18:52 +0000)]
am ee736b29: Merge "Make Monitor::Wait more robust to spurious Inflate failures."

* commit 'ee736b29675455ab0be615581145aa239ce7a6b3':
  Make Monitor::Wait more robust to spurious Inflate failures.

10 years agoam 4bf8d11d: Fix proxy tracing and enable tests that now work with tracing.
Jeff Hao [Fri, 15 Aug 2014 17:38:49 +0000 (17:38 +0000)]
am 4bf8d11d: Fix proxy tracing and enable tests that now work with tracing.

* commit '4bf8d11df5dccc1b276cd9c40a98e8a14d79a9c8':
  Fix proxy tracing and enable tests that now work with tracing.

10 years agoam 90a51f2c: Merge "Prevent stubs from being installed in java.lang.reflect.Proxy...
Jeff Hao [Fri, 15 Aug 2014 16:51:42 +0000 (16:51 +0000)]
am 90a51f2c: Merge "Prevent stubs from being installed in java.lang.reflect.Proxy.<init>."

* commit '90a51f2c42500c591780f6b4991234374fb6a88f':
  Prevent stubs from being installed in java.lang.reflect.Proxy.<init>.

10 years agoam da316afe: Merge "Fix the THREAD_ offsets for MIPS."
Ian Rogers [Fri, 15 Aug 2014 16:51:41 +0000 (16:51 +0000)]
am da316afe: Merge "Fix the THREAD_ offsets for MIPS."

* commit 'da316afe7228d70db0b359c579baa06b2e52be24':
  Fix the THREAD_ offsets for MIPS.

10 years agoMake gdb fixup work with multiple DWARF Compilation Units
Alex Light [Thu, 14 Aug 2014 00:15:38 +0000 (17:15 -0700)]
Make gdb fixup work with multiple DWARF Compilation Units

Change-Id: I83042362fc199ca48c8452230709a377e52a2cf5

10 years agoFix proxy tracing and enable tests that now work with tracing.
Jeff Hao [Thu, 24 Jul 2014 23:26:09 +0000 (16:26 -0700)]
Fix proxy tracing and enable tests that now work with tracing.

Also updates proxy_test to generate an image for GetQuickOatCodeFor.

Bug: 16386215

(cherry picked from commit f0a3f09c3d54646166a55c05a6b39c7dd504129c)

Change-Id: I138edbad9e1646db8590f2b1b73f2788d9710e68

10 years agoresolved conflicts for merge of d3db28a4 to lmp-dev-plus-aosp
Calin Juravle [Fri, 15 Aug 2014 13:41:48 +0000 (14:41 +0100)]
resolved conflicts for merge of d3db28a4 to lmp-dev-plus-aosp

Change-Id: Ibc0771343762a8d1bf875c36262d9cda896e4d2b

10 years agoam 93de4273: [ART] Move to system/core native bridge library
Calin Juravle [Fri, 15 Aug 2014 13:16:47 +0000 (13:16 +0000)]
am 93de4273: [ART] Move to system/core native bridge library

* commit '93de4273d72a2558a7b3423547b5074cd76c5796':
  [ART] Move to system/core native bridge library

10 years ago[ART] Move to system/core native bridge library
Calin Juravle [Tue, 12 Aug 2014 19:55:20 +0000 (20:55 +0100)]
[ART] Move to system/core native bridge library

Some cleanups on the way:
- move NativeBridgeRuntimeCallbacks from a global to a field
- rename native_bridge_library_string to the more suggestive
navtive_bridge_library_path
- clean up imports

Bug: 16884833

(cherry picked from commit I73aab8e212860ba5aee9444d801806d3da326a41)

Change-Id: I67f037ea81d2a4ede4294afd8b84b7640e534a13

10 years agoam d9a879fa: am 4f1d05f0: Merge "More efficient stack walk in exception throwing...
Narayan Kamath [Fri, 15 Aug 2014 11:51:03 +0000 (11:51 +0000)]
am d9a879fa: am 4f1d05f0: Merge "More efficient stack walk in exception throwing." into lmp-dev

* commit 'd9a879fa3acc97b2d010031e06c2bb6b68a11043':
  More efficient stack walk in exception throwing.

10 years agoam e7f5af4d: am b84d7a22: Revert "Revert "ART: Fix mac build""
Andreas Gampe [Fri, 15 Aug 2014 11:48:13 +0000 (11:48 +0000)]
am e7f5af4d: am b84d7a22: Revert "Revert "ART: Fix mac build""

* commit 'e7f5af4d27f39aca4e00e89085a932055427da40':
  Revert "Revert "ART: Fix mac build""

10 years agoam 37f048b1: Merge "[ART] Move to system/core native bridge library"
Calin Juravle [Fri, 15 Aug 2014 11:45:03 +0000 (11:45 +0000)]
am 37f048b1: Merge "[ART] Move to system/core native bridge library"

* commit '37f048b19da5ac245a6b2a8473b326d2167cc692':
  [ART] Move to system/core native bridge library

10 years agoSkip merge of 3cc928f6 into lmp-dev-plus-aosp.
Torne (Richard Coles) [Fri, 15 Aug 2014 11:42:47 +0000 (12:42 +0100)]
Skip merge of 3cc928f6 into lmp-dev-plus-aosp.

Commit was already cherrypicked to lmp-dev-plus-aosp as b038ba6.

10 years agoam 34f18696: am b162bf5a: Use homogeneous space compaction if proper flag is set.
Mathieu Chartier [Fri, 15 Aug 2014 11:34:49 +0000 (11:34 +0000)]
am 34f18696: am b162bf5a: Use homogeneous space compaction if proper flag is set.

* commit '34f186960f5f7bcf40be94379c2944591b3c4c2d':
  Use homogeneous space compaction if proper flag is set.

10 years agoam bdeac834: am 1d778570: Merge "ART: Fix run-test in case of relative TMPDIR" into...
Andreas Gampe [Fri, 15 Aug 2014 11:33:42 +0000 (11:33 +0000)]
am bdeac834: am 1d778570: Merge "ART: Fix run-test in case of relative TMPDIR" into lmp-dev

* commit 'bdeac834300ab07b741eb2fe685b1ec3e273262a':
  ART: Fix run-test in case of relative TMPDIR

10 years agoam 38cc2035: am 0b6952ca: Merge "Revert "ART: Fix mac build"" into lmp-dev
Andreas Gampe [Fri, 15 Aug 2014 11:33:24 +0000 (11:33 +0000)]
am 38cc2035: am 0b6952ca: Merge "Revert "ART: Fix mac build"" into lmp-dev

* commit '38cc20356499d7d7c1c5d916a3596614a5634870':
  Revert "ART: Fix mac build"

10 years agoam 16bf1aed: am e470a027: Merge "Fix intrinsic Math.abs(double) for ARM." into lmp-dev
Vladimir Marko [Fri, 15 Aug 2014 11:33:03 +0000 (11:33 +0000)]
am 16bf1aed: am e470a027: Merge "Fix intrinsic Math.abs(double) for ARM." into lmp-dev

* commit '16bf1aeda6e441e163fd40f8dbcaee171357a4fb':
  Fix intrinsic Math.abs(double) for ARM.

10 years agoSkip merge of 10fe7dca into lmp-dev-plus-aosp.
Torne (Richard Coles) [Fri, 15 Aug 2014 11:22:53 +0000 (12:22 +0100)]
Skip merge of 10fe7dca into lmp-dev-plus-aosp.

Commit was already cherrypicked to lmp-dev-plus-aosp as 4cf00ba.

10 years agoam 4f1d05f0: Merge "More efficient stack walk in exception throwing." into lmp-dev
Narayan Kamath [Fri, 15 Aug 2014 09:12:08 +0000 (09:12 +0000)]
am 4f1d05f0: Merge "More efficient stack walk in exception throwing." into lmp-dev

* commit '4f1d05f0531b980b16dbff18161f02160919ec31':
  More efficient stack walk in exception throwing.

10 years agoMerge "Prevent stubs from being installed in java.lang.reflect.Proxy.<init>."
Jeff Hao [Fri, 15 Aug 2014 16:40:10 +0000 (16:40 +0000)]
Merge "Prevent stubs from being installed in java.lang.reflect.Proxy.<init>."

10 years agoPrevent stubs from being installed in java.lang.reflect.Proxy.<init>.
Jeff Hao [Fri, 15 Aug 2014 00:18:52 +0000 (17:18 -0700)]
Prevent stubs from being installed in java.lang.reflect.Proxy.<init>.

This CL is a better fix for proxy tracing and undoes the changes in
https://android-review.googlesource.com/#/c/103025/

Change-Id: Ie82bb49f07774bd08a6720ddbe5b1f8ee9363acf

10 years agoMerge "[ART] Move to system/core native bridge library"
Calin Juravle [Fri, 15 Aug 2014 11:35:52 +0000 (11:35 +0000)]
Merge "[ART] Move to system/core native bridge library"

10 years ago[ART] Move to system/core native bridge library
Calin Juravle [Tue, 12 Aug 2014 19:55:20 +0000 (20:55 +0100)]
[ART] Move to system/core native bridge library

Some cleanups on the way:
- move NativeBridgeRuntimeCallbacks from a global to a field
- rename native_bridge_library_string to the more suggestive
navtive_bridge_library_path
- clean up imports

Bug: 16884833
Change-Id: I73aab8e212860ba5aee9444d801806d3da326a41

10 years agoMerge "Fix the THREAD_ offsets for MIPS."
Ian Rogers [Fri, 15 Aug 2014 16:33:41 +0000 (16:33 +0000)]
Merge "Fix the THREAD_ offsets for MIPS."

10 years agoFix the THREAD_ offsets for MIPS.
Raghu Gandham [Thu, 14 Aug 2014 23:45:56 +0000 (16:45 -0700)]
Fix the THREAD_ offsets for MIPS.

Change-Id: Iafa5a470d3910e819f8c8cf976213d228b8805d9

10 years agoMerge "More efficient stack walk in exception throwing." into lmp-dev
Narayan Kamath [Fri, 15 Aug 2014 09:08:15 +0000 (09:08 +0000)]
Merge "More efficient stack walk in exception throwing." into lmp-dev

10 years agoMerge "Make Monitor::Wait more robust to spurious Inflate failures."
Ian Rogers [Fri, 15 Aug 2014 18:39:31 +0000 (18:39 +0000)]
Merge "Make Monitor::Wait more robust to spurious Inflate failures."

10 years agoMake Monitor::Wait more robust to spurious Inflate failures.
Ian Rogers [Fri, 15 Aug 2014 18:09:28 +0000 (11:09 -0700)]
Make Monitor::Wait more robust to spurious Inflate failures.

Bug: 17062710
Change-Id: Ife5f6b335caacc70cab543cd568676d277d3beb6
(cherry picked from commit 6f22fc166ed6c11cad229bff442c064e704de101)

10 years agoRevert "Revert "Reduce stack usage for overflow checks""
Dave Allison [Thu, 14 Aug 2014 17:02:48 +0000 (17:02 +0000)]
Revert "Revert "Reduce stack usage for overflow checks""

Fixes stack protection issue.
Fixes mac build issue.

This reverts commit 83b1940e6482b9d8feba5c492507735686650ea5.

Change-Id: I7ba17252882b23a740bcda2ea94aacf398255406

10 years agoUse homogeneous space compaction if proper flag is set.
Mathieu Chartier [Thu, 14 Aug 2014 01:07:31 +0000 (18:07 -0700)]
Use homogeneous space compaction if proper flag is set.

If the flag ART_USE_HSPACE_COMPACT is set then we use
hspace compaction.

Bug: 16401001

Change-Id: I74e1db764f9ff16c007fa3bd16cb2c9b468ec83c

10 years agoRevert "ART: Fix mac build"
Andreas Gampe [Thu, 14 Aug 2014 18:04:12 +0000 (18:04 +0000)]
Revert "ART: Fix mac build"

The underlying CL was reverted.

This reverts commit 564f58305961986591ccb2fff04b9ccdd430a6db.

Change-Id: Ic9fe93a95c4357d0045a430713be7da517f626b5

10 years agoRevert "Reduce stack usage for overflow checks"
Dave Allison [Thu, 14 Aug 2014 16:54:09 +0000 (16:54 +0000)]
Revert "Reduce stack usage for overflow checks"

This reverts commit 63c051a540e6dfc806f656b88ac3a63e99395429.

Change-Id: I282a048994fcd130fe73842b16c21680053c592f

10 years agoam 31ddbf0f: am a73a8b55: Move explicit GC after we are done initalizing all classes.
Mathieu Chartier [Thu, 14 Aug 2014 23:35:10 +0000 (23:35 +0000)]
am 31ddbf0f: am a73a8b55: Move explicit GC after we are done initalizing all classes.

* commit '31ddbf0f54faa6d72a3663e71ec0771ca18c08a2':
  Move explicit GC after we are done initalizing all classes.

10 years agoam f3f4742e: am 0c2a6d76: Merge "ART: Fix another potential N-th visitor issue" into...
Andreas Gampe [Thu, 14 Aug 2014 23:34:57 +0000 (23:34 +0000)]
am f3f4742e: am 0c2a6d76: Merge "ART: Fix another potential N-th visitor issue" into lmp-dev

* commit 'f3f4742e669f7b32c0cd4b9295dcc172275a39f4':
  ART: Fix another potential N-th visitor issue

10 years agoam 22ebd85f: am 564f5830: ART: Fix mac build
Andreas Gampe [Thu, 14 Aug 2014 23:34:49 +0000 (23:34 +0000)]
am 22ebd85f: am 564f5830: ART: Fix mac build

* commit '22ebd85fe7ba7776c995114f9241f9b62fb703f7':
  ART: Fix mac build

10 years agoam 50acbfe8: am c483a73c: Merge "ART: Fix class-linker handling" into lmp-dev
Andreas Gampe [Thu, 14 Aug 2014 23:34:44 +0000 (23:34 +0000)]
am 50acbfe8: am c483a73c: Merge "ART: Fix class-linker handling" into lmp-dev

* commit '50acbfe83fed79263dd0af97e8767f5df6e4b6c7':
  ART: Fix class-linker handling

10 years agoam 479b244c: am f8c4ed08: ART: Fix wrong command line parameter
Andreas Gampe [Thu, 14 Aug 2014 23:34:01 +0000 (23:34 +0000)]
am 479b244c: am f8c4ed08: ART: Fix wrong command line parameter

* commit '479b244ce8fb59f63f3984389bd55528589f6474':
  ART: Fix wrong command line parameter

10 years agoam 58a2d441: am 4c37afb7: Get the native bridge library from the framework.
Calin Juravle [Thu, 14 Aug 2014 23:34:00 +0000 (23:34 +0000)]
am 58a2d441: am 4c37afb7: Get the native bridge library from the framework.

* commit '58a2d4418ffa1c811d8982182d288a5a0c23a51c':
  Get the native bridge library from the framework.

10 years agoresolved conflicts for merge of b03bd88d to lmp-dev-plus-aosp
Ian Rogers [Thu, 14 Aug 2014 23:11:33 +0000 (16:11 -0700)]
resolved conflicts for merge of b03bd88d to lmp-dev-plus-aosp

Change-Id: I10a96805dab30faea84d790c181c28c967cc038e

10 years agoam b84d7a22: Revert "Revert "ART: Fix mac build""
Andreas Gampe [Thu, 14 Aug 2014 22:51:43 +0000 (22:51 +0000)]
am b84d7a22: Revert "Revert "ART: Fix mac build""

* commit 'b84d7a226399dcc60bc0a421715ffc90ce9213f7':
  Revert "Revert "ART: Fix mac build""

10 years agoRevert "Revert "ART: Fix mac build""
Andreas Gampe [Thu, 14 Aug 2014 22:40:19 +0000 (22:40 +0000)]
Revert "Revert "ART: Fix mac build""

This reverts commit 350b03bca65f87895275d1ed4bb895d5afeeeff1.

Also fixes a fault_handler symbol.

Change-Id: I1315527400bffc8ded9f2a7e7fdb1c8a6c104b96

10 years agoam d684cbfb: Merge "Implement inlined shift long for 32bit"
Ian Rogers [Thu, 14 Aug 2014 22:32:54 +0000 (22:32 +0000)]
am d684cbfb: Merge "Implement inlined shift long for 32bit"

* commit 'd684cbfbe8abfb9aea4de27687041243217295c7':
  Implement inlined shift long for 32bit

10 years agoam 6324ca47: Merge "ART: Inline implementation of min() and max() for long in x86"
Ian Rogers [Thu, 14 Aug 2014 22:28:03 +0000 (22:28 +0000)]
am 6324ca47: Merge "ART: Inline implementation of min() and max() for long in x86"

* commit '6324ca4706de44b75e5b8ba55473766809c4f132':
  ART: Inline implementation of min() and max() for long in x86

10 years agoam 03c9785a: Revert "Revert "Reduce stack usage for overflow checks""
Dave Allison [Thu, 14 Aug 2014 22:07:57 +0000 (22:07 +0000)]
am 03c9785a: Revert "Revert "Reduce stack usage for overflow checks""

* commit '03c9785a8a6d712775cf406c4371d0227c44148f':
  Revert "Revert "Reduce stack usage for overflow checks""

10 years agoRevert "Revert "Reduce stack usage for overflow checks""
Dave Allison [Thu, 14 Aug 2014 17:02:48 +0000 (17:02 +0000)]
Revert "Revert "Reduce stack usage for overflow checks""

Fixes stack protection issue.
Fixes mac build issue.

This reverts commit 83b1940e6482b9d8feba5c492507735686650ea5.

Change-Id: I7ba17252882b23a740bcda2ea94aacf398255406

10 years agoam ecb01120: Merge "Make OatClass and OatMethod immutable once more."
Ian Rogers [Thu, 14 Aug 2014 20:19:15 +0000 (20:19 +0000)]
am ecb01120: Merge "Make OatClass and OatMethod immutable once more."

* commit 'ecb01120ac3b16758146de6f2297ff80083668ec':
  Make OatClass and OatMethod immutable once more.

10 years agoMore efficient stack walk in exception throwing.
Hiroshi Yamauchi [Wed, 13 Aug 2014 18:12:22 +0000 (11:12 -0700)]
More efficient stack walk in exception throwing.

In the exception handling code, we currently walk down the stack
twice, once to get the stack height which we use to compute frame IDs
(the bottom frame is zero), and once more to find the catch block to
jump to.

For a deep stack, this could result in very slow exception
handling. That is, if have a lot of finally or catch blocks that we
end up jumping to in a deep stack, we need to do a lot of
catch/rethrow chains. Since we'd need to walk down to the bottom each
time to compute frames IDs in each catch/rethrow, we'd need to walk
down O(N^2) frames at the worst case.

Instead of frames IDs ((the bottom frame is zero), we will use the
frame depth (the top frame is zero) and no longer need to walk down
the stack just to get the stack height. We walk down O(N) frames.

This was what was happening with
code.google.gson.functional.CircularReferenceTest. With this change,
the test run time went from ~120s down to ~3s on N5 and it no longer
crashes due to the thread suspension timeout.

(cherry pick commit 649278cec7119cdd1bea3d0b710dbb2aa7c650b6)

Bug: 16800209
Change-Id: Ie815df1e3e8fb9d82e40685d4cc2b8838fd8aa07

10 years agoam b162bf5a: Use homogeneous space compaction if proper flag is set.
Mathieu Chartier [Thu, 14 Aug 2014 20:12:07 +0000 (20:12 +0000)]
am b162bf5a: Use homogeneous space compaction if proper flag is set.

* commit 'b162bf5af5c2e508c6947471ceffaa98991794f4':
  Use homogeneous space compaction if proper flag is set.

10 years agoam a7101c17: Merge "ART: Fix mac build"
Andreas Gampe [Thu, 14 Aug 2014 19:09:21 +0000 (19:09 +0000)]
am a7101c17: Merge "ART: Fix mac build"

* commit 'a7101c17fd8b3dd960d4ffde3d89b1c89134dba2':
  ART: Fix mac build

10 years agoUse homogeneous space compaction if proper flag is set.
Mathieu Chartier [Thu, 14 Aug 2014 01:07:31 +0000 (18:07 -0700)]
Use homogeneous space compaction if proper flag is set.

If the flag ART_USE_HSPACE_COMPACT is set then we use
hspace compaction.

Bug: 16401001

Change-Id: I74e1db764f9ff16c007fa3bd16cb2c9b468ec83c

10 years agoam 0cde7da9: Merge "ART: Fix run-test in case of relative TMPDIR"
Andreas Gampe [Thu, 14 Aug 2014 18:47:06 +0000 (18:47 +0000)]
am 0cde7da9: Merge "ART: Fix run-test in case of relative TMPDIR"

* commit '0cde7da99fe4a0874934ccd3a28fc4bc19197ff7':
  ART: Fix run-test in case of relative TMPDIR

10 years agoam 1d778570: Merge "ART: Fix run-test in case of relative TMPDIR" into lmp-dev
Andreas Gampe [Thu, 14 Aug 2014 18:40:01 +0000 (18:40 +0000)]
am 1d778570: Merge "ART: Fix run-test in case of relative TMPDIR" into lmp-dev

* commit '1d7785704cafca20629c4bfb87c60d99dd69f72a':
  ART: Fix run-test in case of relative TMPDIR

10 years agoam 078f4ea9: Merge "Mark ParallelGC with gcstress failing."
Nicolas Geoffray [Thu, 14 Aug 2014 18:30:55 +0000 (18:30 +0000)]
am 078f4ea9: Merge "Mark ParallelGC with gcstress failing."

* commit '078f4ea927b3259d698ca3dd542a096943e2cccd':
  Mark ParallelGC with gcstress failing.

10 years agoam 2a516974: Merge "More efficient stack walk in exception throwing."
Hiroshi Yamauchi [Thu, 14 Aug 2014 18:27:16 +0000 (18:27 +0000)]
am 2a516974: Merge "More efficient stack walk in exception throwing."

* commit '2a516974f998fb71514c3160b125032e2bcc4e04':
  More efficient stack walk in exception throwing.

10 years agoam 0b6952ca: Merge "Revert "ART: Fix mac build"" into lmp-dev
Andreas Gampe [Thu, 14 Aug 2014 18:08:53 +0000 (18:08 +0000)]
am 0b6952ca: Merge "Revert "ART: Fix mac build"" into lmp-dev

* commit '0b6952cac86de294fb01898694b6a55f0a162a43':
  Revert "ART: Fix mac build"

10 years agoresolved conflicts for merge of dbe5f5ce to lmp-dev-plus-aosp
Andreas Gampe [Thu, 14 Aug 2014 18:00:31 +0000 (11:00 -0700)]
resolved conflicts for merge of dbe5f5ce to lmp-dev-plus-aosp

Change-Id: I85cb01de20f4c1b691db2813d21cb472db26edfc

10 years agoam e470a027: Merge "Fix intrinsic Math.abs(double) for ARM." into lmp-dev
Vladimir Marko [Thu, 14 Aug 2014 17:59:50 +0000 (17:59 +0000)]
am e470a027: Merge "Fix intrinsic Math.abs(double) for ARM." into lmp-dev

* commit 'e470a02792ce584fe0ff1b9a7dd6aebe62ca9be5':
  Fix intrinsic Math.abs(double) for ARM.

10 years agoam a855db47: Merge "Fix intrinsic Math.abs(double) for ARM."
Vladimir Marko [Thu, 14 Aug 2014 17:57:06 +0000 (17:57 +0000)]
am a855db47: Merge "Fix intrinsic Math.abs(double) for ARM."

* commit 'a855db47575817164ed02c105d225292928940e4':
  Fix intrinsic Math.abs(double) for ARM.

10 years agoam b6c7f62b: am c85a899b: Revert "Revert "Remove GCC atomic workarounds.""
Dan Albert [Thu, 14 Aug 2014 17:47:43 +0000 (17:47 +0000)]
am b6c7f62b: am c85a899b: Revert "Revert "Remove GCC atomic workarounds.""

* commit 'b6c7f62b2c4a048003ce792d82d3aefb5bc96404':
  Revert "Revert "Remove GCC atomic workarounds.""

10 years agoam b5f27b87: am f0a37663: Initialize art::Atomic\'s value to 0.
Dan Albert [Thu, 14 Aug 2014 17:47:42 +0000 (17:47 +0000)]
am b5f27b87: am f0a37663: Initialize art::Atomic\'s value to 0.

* commit 'b5f27b87a46f754839ce2ea79d6a5d62a335aad0':
  Initialize art::Atomic's value to 0.

10 years agoam ba5137ba: (-s ours) am 63c051a5: Reduce stack usage for overflow checks
Dave Allison [Thu, 14 Aug 2014 17:47:42 +0000 (17:47 +0000)]
am ba5137ba: (-s ours) am 63c051a5: Reduce stack usage for overflow checks

* commit 'ba5137baa9bcebbc603a686ecebb664483b5257f':
  Reduce stack usage for overflow checks

10 years agoam b0bf089c: Merge "Revert "Reduce stack usage for overflow checks"" into lmp-dev
Dave Allison [Thu, 14 Aug 2014 17:00:55 +0000 (17:00 +0000)]
am b0bf089c: Merge "Revert "Reduce stack usage for overflow checks"" into lmp-dev

* commit 'b0bf089c2d80f861e4d8798e97828452b2e0b99b':
  Revert "Reduce stack usage for overflow checks"

10 years agoam a73a8b55: Move explicit GC after we are done initalizing all classes.
Mathieu Chartier [Thu, 14 Aug 2014 17:00:54 +0000 (17:00 +0000)]
am a73a8b55: Move explicit GC after we are done initalizing all classes.

* commit 'a73a8b55415b544355438522524a640378698d85':
  Move explicit GC after we are done initalizing all classes.

10 years agoMove explicit GC after we are done initalizing all classes.
Mathieu Chartier [Mon, 11 Aug 2014 20:52:12 +0000 (13:52 -0700)]
Move explicit GC after we are done initalizing all classes.

Previously we had the GC happen for each dex file, this added a
few seconds of time on boot.oat creation.

Bug: 16853450

(cherry picked from commit 093ef212b7db4c17ed62df5cac0c1ac3a24e691d)

Change-Id: Ia469838eff1550c175c3465a478d8081023601bd

10 years agoam 3842ad76: Merge "Fix bugs in the x86 and arm versions of generic JNI."
Nicolas Geoffray [Thu, 14 Aug 2014 16:38:10 +0000 (16:38 +0000)]
am 3842ad76: Merge "Fix bugs in the x86 and arm versions of generic JNI."

* commit '3842ad76aaeb80e0bb6b02c5f7dc4674533ef872':
  Fix bugs in the x86 and arm versions of generic JNI.

10 years agoam 7469b6c9: Merge "The image for writing needn\'t be in low 4GB."
Ian Rogers [Thu, 14 Aug 2014 16:26:38 +0000 (16:26 +0000)]
am 7469b6c9: Merge "The image for writing needn\'t be in low 4GB."

* commit '7469b6c96a7f67c9a230faede204ef6bf62b1596':
  The image for writing needn't be in low 4GB.

10 years agoam 0e084053: Merge "ART: Fix another potential N-th visitor issue"
Andreas Gampe [Thu, 14 Aug 2014 16:21:29 +0000 (16:21 +0000)]
am 0e084053: Merge "ART: Fix another potential N-th visitor issue"

* commit '0e084053066d9d8d362c130009e9234baea12e34':
  ART: Fix another potential N-th visitor issue

10 years agoam 0c2a6d76: Merge "ART: Fix another potential N-th visitor issue" into lmp-dev
Andreas Gampe [Thu, 14 Aug 2014 16:17:10 +0000 (16:17 +0000)]
am 0c2a6d76: Merge "ART: Fix another potential N-th visitor issue" into lmp-dev

* commit '0c2a6d76ccedb77e79adc68c723cd4ed8278fee9':
  ART: Fix another potential N-th visitor issue

10 years agoMerge "Mark ParallelGC with gcstress failing."
Nicolas Geoffray [Thu, 14 Aug 2014 18:05:37 +0000 (18:05 +0000)]
Merge "Mark ParallelGC with gcstress failing."

10 years agoMark ParallelGC with gcstress failing.
Nicolas Geoffray [Thu, 14 Aug 2014 17:38:41 +0000 (18:38 +0100)]
Mark ParallelGC with gcstress failing.

Change-Id: Id943286202bf5716588a61092b819d51069a2f53

10 years agoMerge "More efficient stack walk in exception throwing."
Hiroshi Yamauchi [Thu, 14 Aug 2014 17:57:08 +0000 (17:57 +0000)]
Merge "More efficient stack walk in exception throwing."

10 years agoMerge "Revert "Reduce stack usage for overflow checks"" into lmp-dev
Dave Allison [Thu, 14 Aug 2014 16:59:07 +0000 (16:59 +0000)]
Merge "Revert "Reduce stack usage for overflow checks"" into lmp-dev

10 years agoRevert "Reduce stack usage for overflow checks"
Dave Allison [Thu, 14 Aug 2014 16:54:09 +0000 (16:54 +0000)]
Revert "Reduce stack usage for overflow checks"

This reverts commit 63c051a540e6dfc806f656b88ac3a63e99395429.

Change-Id: I282a048994fcd130fe73842b16c21680053c592f

10 years agoMerge "ART: Fix another potential N-th visitor issue" into lmp-dev
Andreas Gampe [Thu, 14 Aug 2014 16:11:58 +0000 (16:11 +0000)]
Merge "ART: Fix another potential N-th visitor issue" into lmp-dev

10 years agoam 564f5830: ART: Fix mac build
Andreas Gampe [Thu, 14 Aug 2014 16:08:46 +0000 (16:08 +0000)]
am 564f5830: ART: Fix mac build

* commit '564f58305961986591ccb2fff04b9ccdd430a6db':
  ART: Fix mac build

10 years agoam 70acd53d: Merge "ART: Fix mac build"
Andreas Gampe [Thu, 14 Aug 2014 16:04:10 +0000 (16:04 +0000)]
am 70acd53d: Merge "ART: Fix mac build"

* commit '70acd53dafbd74d3cd72924216e438fce820beb1':
  ART: Fix mac build

10 years agoART: Fix mac build
Andreas Gampe [Thu, 14 Aug 2014 02:54:09 +0000 (19:54 -0700)]
ART: Fix mac build

is_main_thread is unused in the case of a mac.

Bug: 15435566

(cherry picked from commit 7b1bf42dbc765524d54d45a70cb7eb1cccf0c617)

Change-Id: I9848d0156a4903ce73d20b5ce282b61ceb3039ff

10 years agoam 18052526: Merge "ART: Fix class-linker handling"
Andreas Gampe [Thu, 14 Aug 2014 15:50:34 +0000 (15:50 +0000)]
am 18052526: Merge "ART: Fix class-linker handling"

* commit '18052526d5dded6d89b3884db0831091884c04d0':
  ART: Fix class-linker handling

10 years agoam c483a73c: Merge "ART: Fix class-linker handling" into lmp-dev
Andreas Gampe [Thu, 14 Aug 2014 15:43:58 +0000 (15:43 +0000)]
am c483a73c: Merge "ART: Fix class-linker handling" into lmp-dev

* commit 'c483a73cc2f9d63c1b6bccd1007117cf0d6dcd56':
  ART: Fix class-linker handling

10 years agoam f8c4ed08: ART: Fix wrong command line parameter
Andreas Gampe [Thu, 14 Aug 2014 12:20:48 +0000 (12:20 +0000)]
am f8c4ed08: ART: Fix wrong command line parameter

* commit 'f8c4ed08832ec5302c9ea8441ec8cb39b87075ab':
  ART: Fix wrong command line parameter

10 years agoam 4c37afb7: Get the native bridge library from the framework.
Calin Juravle [Thu, 14 Aug 2014 12:20:47 +0000 (12:20 +0000)]
am 4c37afb7: Get the native bridge library from the framework.

* commit '4c37afb7b207424ff788ab8d8778ea4e8d4ac324':
  Get the native bridge library from the framework.

10 years agoam 20ae1d77: Clean up native bridge
Ian Rogers [Thu, 14 Aug 2014 12:20:46 +0000 (12:20 +0000)]
am 20ae1d77: Clean up native bridge

* commit '20ae1d77463d1c3f206eac8d541124b4555464de':
  Clean up native bridge

10 years agoART: Fix wrong command line parameter
Andreas Gampe [Fri, 8 Aug 2014 19:05:10 +0000 (12:05 -0700)]
ART: Fix wrong command line parameter

Bug: 16843953

(cherry picked from commit c4a7acf505944e7d937f0670b322e12302dd38dc)

Change-Id: Ib59e10a5d97a20ea1a013587645e0eeb204eda8d

10 years agoGet the native bridge library from the framework.
Calin Juravle [Thu, 7 Aug 2014 13:53:41 +0000 (14:53 +0100)]
Get the native bridge library from the framework.

Framework now passes the name of the native bridge to the runtime so
there's no need to do the reading in libart.

Bug: 16843953

(cherry picked from commit 421b6466977d4b1ccd453f23b7b492f219099702)

Change-Id: I9a0a8b8c64949e05c6f90bc846d68f0797640f6d

10 years agoClean up native bridge
Ian Rogers [Thu, 17 Jul 2014 18:09:10 +0000 (11:09 -0700)]
Clean up native bridge

(partially cherry picked from commit
68d8b42ddec39ec0174162d90d4abaa004d1983e)

Change-Id: I85813e97d73b1b331646dd0e880108dfbfe80f69

10 years agoART: Fix another potential N-th visitor issue
Andreas Gampe [Thu, 14 Aug 2014 06:05:38 +0000 (23:05 -0700)]
ART: Fix another potential N-th visitor issue

Bug: 16867274
Change-Id: I5466af563032041ef4a547894f40f303871302c6

10 years agoam ba10b501: Merge "ART: Tolerate shallow call stack in VMStack_getCallingClassLoader"
Andreas Gampe [Thu, 14 Aug 2014 05:32:33 +0000 (05:32 +0000)]
am ba10b501: Merge "ART: Tolerate shallow call stack in VMStack_getCallingClassLoader"

* commit 'ba10b501818e89b828dcb2d8b60a7c9048c06262':
  ART: Tolerate shallow call stack in VMStack_getCallingClassLoader

10 years agoam 7e9cdbbc: Merge "ART: Tolerate shallow call stack in VMStack_getCallingClassLoader...
Andreas Gampe [Thu, 14 Aug 2014 05:21:55 +0000 (05:21 +0000)]
am 7e9cdbbc: Merge "ART: Tolerate shallow call stack in VMStack_getCallingClassLoader" into lmp-dev

* commit '7e9cdbbc14c015028d4b239a09c5af33ffc2087c':
  ART: Tolerate shallow call stack in VMStack_getCallingClassLoader

10 years agoam c85a899b: Revert "Revert "Remove GCC atomic workarounds.""
Dan Albert [Thu, 14 Aug 2014 05:21:54 +0000 (05:21 +0000)]
am c85a899b: Revert "Revert "Remove GCC atomic workarounds.""

* commit 'c85a899b23327c3d5693c8dabf5b482c3fb5ded8':
  Revert "Revert "Remove GCC atomic workarounds.""

10 years agoam f0a37663: Initialize art::Atomic\'s value to 0.
Dan Albert [Thu, 14 Aug 2014 05:14:18 +0000 (05:14 +0000)]
am f0a37663: Initialize art::Atomic\'s value to 0.

* commit 'f0a37663309e468f11858bffa3221e7223cf577d':
  Initialize art::Atomic's value to 0.

10 years agoMore efficient stack walk in exception throwing.
Hiroshi Yamauchi [Wed, 13 Aug 2014 18:12:22 +0000 (11:12 -0700)]
More efficient stack walk in exception throwing.

In the exception handling code, we currently walk down the stack
twice, once to get the stack height which we use to compute frame IDs
(the bottom frame is zero), and once more to find the catch block to
jump to.

For a deep stack, this could result in very slow exception
handling. That is, if have a lot of finally or catch blocks that we
end up jumping to in a deep stack, we need to do a lot of
catch/rethrow chains. Since we'd need to walk down to the bottom each
time to compute frames IDs in each catch/rethrow, we'd need to walk
down O(N^2) frames at the worst case.

Instead of frames IDs ((the bottom frame is zero), we will use the
frame depth (the top frame is zero) and no longer need to walk down
the stack just to get the stack height. We walk down O(N) frames.

This was what was happening with
code.google.gson.functional.CircularReferenceTest. With this change,
the test run time went from ~120s down to ~3s on N5 and it no longer
crashes due to the thread suspension timeout.

Bug: 16800209
Change-Id: Ie815df1e3e8fb9d82e40685d4cc2b8838fd8aa07

10 years agoam e8bf3df2: Merge "Use homogeneous space compaction for non low memory devices."
Mathieu Chartier [Thu, 14 Aug 2014 02:30:15 +0000 (02:30 +0000)]
am e8bf3df2: Merge "Use homogeneous space compaction for non low memory devices."

* commit 'e8bf3df2bcc61c12a7e66b4995a083f9ed3939e0':
  Use homogeneous space compaction for non low memory devices.

10 years agoRevert "Revert "Remove GCC atomic workarounds.""
Dan Albert [Mon, 11 Aug 2014 23:38:02 +0000 (16:38 -0700)]
Revert "Revert "Remove GCC atomic workarounds.""

This reverts commit 626a2468e4e4f39db7b0f35a4fee87293e360e92.

(cherry picked from commit aab0f86e3b079598d41c3a00bfa765a7589c5110)

Change-Id: I2333b54dcfd5ee8227a6479d2e3814b25377bdfd

10 years agoInitialize art::Atomic's value to 0.
Dan Albert [Tue, 12 Aug 2014 18:48:34 +0000 (11:48 -0700)]
Initialize art::Atomic's value to 0.

art::Mutex and art::ConditionVariable were DCHECKing that the value was
zero on entering the constructor without ever initializing the value.
Since 0 is a sensible default, make it the default for art::Atomic
rather than initializing for each use.

Bug: 16301104

(cherry picked from commit 6a3f8d93ddf09b5f6667820089e488958cba8361)

Change-Id: Iab69bccac9f904111a72eff8162c7f0ca979a08a

10 years agoam a7a45aa4: Merge "Ensure alternate signal stack is minimum size."
Ian Rogers [Thu, 14 Aug 2014 01:49:58 +0000 (01:49 +0000)]
am a7a45aa4: Merge "Ensure alternate signal stack is minimum size."

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

10 years agoresolved conflicts for merge of 57504548 to lmp-dev-plus-aosp
Ian Rogers [Thu, 14 Aug 2014 01:23:21 +0000 (18:23 -0700)]
resolved conflicts for merge of 57504548 to lmp-dev-plus-aosp

Change-Id: I17dba9a68f3af09033cd0a5a221bb8474aa18502