OSDN Git Service

android-x86/art.git
10 years agoam a092ee40: Merge "Use non volatile lock words in semispace collector."
Mathieu Chartier [Thu, 17 Apr 2014 23:22:36 +0000 (23:22 +0000)]
am a092ee40: Merge "Use non volatile lock words in semispace collector."

* commit 'a092ee404ababbf8fc945111dc4a571284c9f02f':
  Use non volatile lock words in semispace collector.

10 years agoam 94e8a973: Merge "Add untested x86-64 downcall and exception assembly."
Ian Rogers [Thu, 17 Apr 2014 23:22:30 +0000 (23:22 +0000)]
am 94e8a973: Merge "Add untested x86-64 downcall and exception assembly."

* commit '94e8a97310af35cb0bae309e796b554cdb586ca5':
  Add untested x86-64 downcall and exception assembly.

10 years agoam b99985a0: Merge "Fix a class-loading bug in the verifier when throwing NPE"
Andreas Gampe [Thu, 17 Apr 2014 23:22:29 +0000 (23:22 +0000)]
am b99985a0: Merge "Fix a class-loading bug in the verifier when throwing NPE"

* commit 'b99985a089e23929c920201c14875b51c5b6217e':
  Fix a class-loading bug in the verifier when throwing NPE

10 years agoam 425640d6: Merge "Use LIRSlowPath for throwing NPE."
Mingyao Yang [Thu, 17 Apr 2014 23:22:01 +0000 (23:22 +0000)]
am 425640d6: Merge "Use LIRSlowPath for throwing NPE."

* commit '425640d6fac3432a44e236a002e8401a7cd59c5c':
  Use LIRSlowPath for throwing NPE.

10 years agoam 79f2c53f: Merge "String.IndexOf method handles negative start index value in incor...
Bill Buzbee [Thu, 17 Apr 2014 23:21:59 +0000 (23:21 +0000)]
am 79f2c53f: Merge "String.IndexOf method handles negative start index value in incorrect way"

* commit '79f2c53f3cb8649c19aeded82f7b8dcc96015808':
  String.IndexOf method handles negative start index value in incorrect way

10 years agoMerge "Use non volatile lock words in semispace collector."
Mathieu Chartier [Thu, 17 Apr 2014 23:06:26 +0000 (23:06 +0000)]
Merge "Use non volatile lock words in semispace collector."

10 years agoUse non volatile lock words in semispace collector.
Mathieu Chartier [Thu, 17 Apr 2014 21:43:39 +0000 (14:43 -0700)]
Use non volatile lock words in semispace collector.

GSS FormulaEvaluationActions.EvaluateAndApplyChanges:
Before GC time: 9.1s
After GC time: 7.98s

Fixed timing logger errors.

Change-Id: I4193c6ccbbbe7a7220dfaabbf3472a5dcebae616

10 years agoMerge "Add untested x86-64 downcall and exception assembly."
Ian Rogers [Thu, 17 Apr 2014 21:57:26 +0000 (21:57 +0000)]
Merge "Add untested x86-64 downcall and exception assembly."

10 years agoMerge "Fix a class-loading bug in the verifier when throwing NPE"
Andreas Gampe [Thu, 17 Apr 2014 21:10:52 +0000 (21:10 +0000)]
Merge "Fix a class-loading bug in the verifier when throwing NPE"

10 years agoFix a class-loading bug in the verifier when throwing NPE
Andreas Gampe [Thu, 17 Apr 2014 19:28:43 +0000 (12:28 -0700)]
Fix a class-loading bug in the verifier when throwing NPE

When throwing an NPE for invocation, we try to resolve the class of
the method being called. When in the interpreter and having quickened
code, that failed.

Bug: 14133618
Change-Id: I4964b908bb26a82a12263fb86f5dc39c9042479b

10 years agoMerge "Use LIRSlowPath for throwing NPE."
Mingyao Yang [Thu, 17 Apr 2014 17:31:48 +0000 (17:31 +0000)]
Merge "Use LIRSlowPath for throwing NPE."

10 years agoAdd untested x86-64 downcall and exception assembly.
Ian Rogers [Thu, 17 Apr 2014 00:33:27 +0000 (17:33 -0700)]
Add untested x86-64 downcall and exception assembly.

Change-Id: Ic555f9f5af8c3a2110a92e55772ff6c0128e5c19

10 years agoMerge "String.IndexOf method handles negative start index value in incorrect way"
Bill Buzbee [Thu, 17 Apr 2014 17:10:45 +0000 (17:10 +0000)]
Merge "String.IndexOf method handles negative start index value in incorrect way"

10 years agoam 984cd08f: Merge "Code cleanup in preparation for x64 backend."
Nicolas Geoffray [Thu, 17 Apr 2014 17:08:02 +0000 (17:08 +0000)]
am 984cd08f: Merge "Code cleanup in preparation for x64 backend."

* commit '984cd08f363153aabfa436b61277c30ad6fa4e7d':
  Code cleanup in preparation for x64 backend.

10 years agoam c2b2bbf1: Merge "Simplify HInvokeStatic code generation."
Nicolas Geoffray [Thu, 17 Apr 2014 17:08:02 +0000 (17:08 +0000)]
am c2b2bbf1: Merge "Simplify HInvokeStatic code generation."

* commit 'c2b2bbf1bbdf6273298b79d6006611593ed9f3a0':
  Simplify HInvokeStatic code generation.

10 years agoam e8b2e6e7: Merge "Preparation for transition to libc++."
Ian Rogers [Thu, 17 Apr 2014 17:08:01 +0000 (17:08 +0000)]
am e8b2e6e7: Merge "Preparation for transition to libc++."

* commit 'e8b2e6e70decca7ce324350c9c03c9a432ed64d6':
  Preparation for transition to libc++.

10 years agoMerge "Code cleanup in preparation for x64 backend."
Nicolas Geoffray [Thu, 17 Apr 2014 14:17:09 +0000 (14:17 +0000)]
Merge "Code cleanup in preparation for x64 backend."

10 years agoCode cleanup in preparation for x64 backend.
Nicolas Geoffray [Thu, 17 Apr 2014 13:56:23 +0000 (14:56 +0100)]
Code cleanup in preparation for x64 backend.

- Use InvokeDexCallingConventionVisitor for setting
  up HParameterValues
- Use kVregSize instead of kX86WordSize when dealing with
  virtual registers.

Change-Id: Ia520223010194c70a3ff0ed659077f55cec4e7d8

10 years agoMerge "Simplify HInvokeStatic code generation."
Nicolas Geoffray [Thu, 17 Apr 2014 13:23:49 +0000 (13:23 +0000)]
Merge "Simplify HInvokeStatic code generation."

10 years agoSimplify HInvokeStatic code generation.
Nicolas Geoffray [Wed, 16 Apr 2014 16:38:32 +0000 (17:38 +0100)]
Simplify HInvokeStatic code generation.

HPushArgument is not needed for now (but might be when we start
optimizing). Also, calling convention for 64bits backend will
require to know more about the argument than the argument's
index. Therefore currently let HInvokeStatic setup the arguments,
which is possible because arguments of a calls are virtual registers
and not instructions.

Change-Id: I8753ed6083aa083c5180ab53b436dc8de4f1fe31

10 years agoString.IndexOf method handles negative start index value in incorrect way
Alexei Zavjalov [Wed, 16 Apr 2014 18:55:43 +0000 (01:55 +0700)]
String.IndexOf method handles negative start index value in incorrect way

The standard implementation of String.IndexOf converts the negative value of
the start index to 0 and searching will start from the beginning of the string.
But current implementation may start searching from the incorrect memory
offset, that can lead to sigsegv or return incorrect result.
This patch adds the handler for cases when fromIndex is negative.

Change-Id: I3ac86290712789559eaf5e46bef0006872395bfa
Signed-off-by: Alexei Zavjalov <alexei.zavjalov@intel.com>
10 years agoMerge "Preparation for transition to libc++."
Ian Rogers [Thu, 17 Apr 2014 00:13:27 +0000 (00:13 +0000)]
Merge "Preparation for transition to libc++."

10 years agoPreparation for transition to libc++.
Ian Rogers [Wed, 16 Apr 2014 23:34:44 +0000 (16:34 -0700)]
Preparation for transition to libc++.

Move the dependency on libc++ to its own makefile so that we can switch in a
single place between libc++ and stlport.

Change-Id: Ie61e7d054dcd049e36d5e7298c27d8a4abe6edf7

10 years agoam f7933e7f: Merge "Disable another timing sensitive test on dist builds"
Brian Carlstrom [Wed, 16 Apr 2014 22:28:39 +0000 (22:28 +0000)]
am f7933e7f: Merge "Disable another timing sensitive test on dist builds"

* commit 'f7933e7f295bfe61cb0baf89469581c563032e96':
  Disable another timing sensitive test on dist builds

10 years agoam 520ab876: Merge "Build dex2oat as 64b for the target when using zygote64"
Andreas Gampe [Wed, 16 Apr 2014 22:24:06 +0000 (22:24 +0000)]
am 520ab876: Merge "Build dex2oat as 64b for the target when using zygote64"

* commit '520ab8768791cf4d51a543023960991c30a75e69':
  Build dex2oat as 64b for the target when using zygote64

10 years agoMerge "Disable another timing sensitive test on dist builds"
Brian Carlstrom [Wed, 16 Apr 2014 22:19:47 +0000 (22:19 +0000)]
Merge "Disable another timing sensitive test on dist builds"

10 years agoMerge "Build dex2oat as 64b for the target when using zygote64"
Andreas Gampe [Wed, 16 Apr 2014 22:17:24 +0000 (22:17 +0000)]
Merge "Build dex2oat as 64b for the target when using zygote64"

10 years agoam 5e17616b: Merge "Fix volatile wide put/get to be atomic on x86 arch"
Ian Rogers [Wed, 16 Apr 2014 22:13:22 +0000 (22:13 +0000)]
am 5e17616b: Merge "Fix volatile wide put/get to be atomic on x86 arch"

* commit '5e17616b7386159cef8f2fb6ffe3cbc4fb1373e4':
  Fix volatile wide put/get to be atomic on x86 arch

10 years agoDisable another timing sensitive test on dist builds
Brian Carlstrom [Wed, 16 Apr 2014 22:12:45 +0000 (15:12 -0700)]
Disable another timing sensitive test on dist builds

Change-Id: I1c0dc16ff22b23dbd238cbeba3f4c078c3ffeaed

10 years agoMerge "Fix volatile wide put/get to be atomic on x86 arch"
Ian Rogers [Wed, 16 Apr 2014 22:08:29 +0000 (22:08 +0000)]
Merge "Fix volatile wide put/get to be atomic on x86 arch"

10 years agoam a214996d: Merge "Decrease target utilization for foreground apps."
Mathieu Chartier [Wed, 16 Apr 2014 22:07:49 +0000 (22:07 +0000)]
am a214996d: Merge "Decrease target utilization for foreground apps."

* commit 'a214996df216757456b548eb9484fe04f8f9b08b':
  Decrease target utilization for foreground apps.

10 years agoFix volatile wide put/get to be atomic on x86 arch
Yevgeny Rouban [Wed, 16 Apr 2014 11:13:10 +0000 (18:13 +0700)]
Fix volatile wide put/get to be atomic on x86 arch

Current implementation puts memory barriers for volatile fields.
Volatile semantics needs atomicity, which are not guaranteed by memory barriers.

The patch forces all wide volatile fields to be loaded/stored using
xmm registers.

Change-Id: Ie78e186d13ffa237e6e93747b71d26651fa02866
Signed-off-by: Yevgeny Rouban <yevgeny.y.rouban@intel.com>
10 years agoBuild dex2oat as 64b for the target when using zygote64
Andreas Gampe [Wed, 16 Apr 2014 22:03:11 +0000 (15:03 -0700)]
Build dex2oat as 64b for the target when using zygote64

In single-zygote 64b builds we should build dex2oat as 64b to
avoid installd issues

Change-Id: I5f281d90fbd44abbca4182e39162b184be9f1b35

10 years agoMerge "Decrease target utilization for foreground apps."
Mathieu Chartier [Wed, 16 Apr 2014 22:01:38 +0000 (22:01 +0000)]
Merge "Decrease target utilization for foreground apps."

10 years agoUse LIRSlowPath for throwing NPE.
Mingyao Yang [Tue, 8 Apr 2014 18:02:52 +0000 (11:02 -0700)]
Use LIRSlowPath for throwing NPE.

Get rid of launchpads for throwing NPE and use LIRSlowPath instead.
Also clean up some code of using LIRSlowPath for checking div
by zero.

Bug: 13170824

Change-Id: I0c20a49c39feff3eb1f147755e557d9bc0ff15bb

10 years agoam df4f96ab: Merge "Fix thread join hangs"
Ian Rogers [Wed, 16 Apr 2014 19:47:04 +0000 (19:47 +0000)]
am df4f96ab: Merge "Fix thread join hangs"

* commit 'df4f96abfea464b834da858d839efc98cc032728':
  Fix thread join hangs

10 years agoDecrease target utilization for foreground apps.
Mathieu Chartier [Tue, 15 Apr 2014 22:37:02 +0000 (15:37 -0700)]
Decrease target utilization for foreground apps.

GC time in FormulaEvaluationActions.EvaluateAndApplyChanges goes from
26.1s to 23.2s. Benchmark score goes down ~50 in
FormulaEvaluationActions.EvaluateAndApplyChanges, and up ~50 in
GenericCalcActions.MemAllocTest.

Bug: 8788501
Change-Id: I412af1205f8b67e70a12237c990231ea62167bc0

10 years agoMerge "Fix thread join hangs"
Ian Rogers [Wed, 16 Apr 2014 19:14:21 +0000 (19:14 +0000)]
Merge "Fix thread join hangs"

10 years agoam d0235a3a: Merge "Fix typo in ISA centralization"
Andreas Gampe [Wed, 16 Apr 2014 18:41:46 +0000 (18:41 +0000)]
am d0235a3a: Merge "Fix typo in ISA centralization"

* commit 'd0235a3ab3da419cb8cc1f678569473bff97a752':
  Fix typo in ISA centralization

10 years agoMerge "Fix typo in ISA centralization"
Andreas Gampe [Wed, 16 Apr 2014 18:35:07 +0000 (18:35 +0000)]
Merge "Fix typo in ISA centralization"

10 years agoFix typo in ISA centralization
Andreas Gampe [Wed, 16 Apr 2014 18:23:27 +0000 (11:23 -0700)]
Fix typo in ISA centralization

X86 needs sign-extension.

Change-Id: I1253fbc9aa0e732e37b976a0723ec89155e7e2e7

10 years agoam b94fae66: Merge "Centralize instruction-set pointer-size, alignment, 64b-width...
Andreas Gampe [Wed, 16 Apr 2014 15:23:46 +0000 (15:23 +0000)]
am b94fae66: Merge "Centralize instruction-set pointer-size, alignment, 64b-width code in instruction_set.h/cc"

* commit 'b94fae66dac14be955c68028447cdad84ee22bf9':
  Centralize instruction-set pointer-size, alignment, 64b-width code in instruction_set.h/cc

10 years agoMerge "Centralize instruction-set pointer-size, alignment, 64b-width code in instruct...
Andreas Gampe [Wed, 16 Apr 2014 15:18:13 +0000 (15:18 +0000)]
Merge "Centralize instruction-set pointer-size, alignment, 64b-width code in instruction_set.h/cc"

10 years agoam 2faf284e: Merge "Long support in optimizing compiler."
Nicolas Geoffray [Wed, 16 Apr 2014 13:28:30 +0000 (13:28 +0000)]
am 2faf284e: Merge "Long support in optimizing compiler."

* commit '2faf284e072230d4fd447955fa72ac4d9a3b51a0':
  Long support in optimizing compiler.

10 years agoMerge "Long support in optimizing compiler."
Nicolas Geoffray [Wed, 16 Apr 2014 13:22:37 +0000 (13:22 +0000)]
Merge "Long support in optimizing compiler."

10 years agoLong support in optimizing compiler.
Nicolas Geoffray [Fri, 11 Apr 2014 16:43:50 +0000 (17:43 +0100)]
Long support in optimizing compiler.

- Add stack locations to the Location class.
- Change logic of parameter passing/setup by setting the
  location of such instructions the ones for the calling
  convention.

Change-Id: I4730ad58732813dcb9c238f44f55dfc0baa18799

10 years agoFix thread join hangs
Yevgeny Rouban [Wed, 16 Apr 2014 11:26:09 +0000 (18:26 +0700)]
Fix thread join hangs

Current implementation notifies only one of joining threads on thread exit.
This causes the other joining threads to hang.

This patch notifies all joining threads: just call NotifyAll() instead of Notify().

Change-Id: If75f101d3d3d876f1aa7dcf537e56a37cc347803
Signed-off-by: Yevgeny Rouban <yevgeny.y.rouban@intel.com>
10 years agoam a3eaf66b: Merge "Disable JDWP field watchpoint capabilities"
Sebastien Hertz [Wed, 16 Apr 2014 10:14:27 +0000 (10:14 +0000)]
am a3eaf66b: Merge "Disable JDWP field watchpoint capabilities"

* commit 'a3eaf66b968270b938a2795fe55e778c55f1c24b':
  Disable JDWP field watchpoint capabilities

10 years agoMerge "Disable JDWP field watchpoint capabilities"
Sebastien Hertz [Wed, 16 Apr 2014 10:10:28 +0000 (10:10 +0000)]
Merge "Disable JDWP field watchpoint capabilities"

10 years agoDisable JDWP field watchpoint capabilities
Sebastien Hertz [Wed, 16 Apr 2014 10:03:00 +0000 (12:03 +0200)]
Disable JDWP field watchpoint capabilities

We do not fully support field watchpoint yet. We can only enable these
capabilities when we do report these events.

Bug: 8267708
Change-Id: I07ccf7ddffdd26e143b7fb0f13ebe030d75e8491

10 years agoam 51f32a65: Merge "Allow use of instance filter for JDWP events"
Sebastien Hertz [Wed, 16 Apr 2014 08:45:32 +0000 (08:45 +0000)]
am 51f32a65: Merge "Allow use of instance filter for JDWP events"

* commit '51f32a651666b06f3cdac4a80a65db1d7bc90aac':
  Allow use of instance filter for JDWP events

10 years agoam 172109b7: Merge "Fix JDWP count event modifier"
Sebastien Hertz [Wed, 16 Apr 2014 08:35:31 +0000 (08:35 +0000)]
am 172109b7: Merge "Fix JDWP count event modifier"

* commit '172109b72383f109f0ee240955e15643ba755f63':
  Fix JDWP count event modifier

10 years agoMerge "Allow use of instance filter for JDWP events"
Sebastien Hertz [Wed, 16 Apr 2014 08:08:11 +0000 (08:08 +0000)]
Merge "Allow use of instance filter for JDWP events"

10 years agoMerge "Fix JDWP count event modifier"
Sebastien Hertz [Wed, 16 Apr 2014 07:29:10 +0000 (07:29 +0000)]
Merge "Fix JDWP count event modifier"

10 years agoam 9623c666: Merge "Less confusing heap transition message."
Mathieu Chartier [Tue, 15 Apr 2014 21:57:59 +0000 (21:57 +0000)]
am 9623c666: Merge "Less confusing heap transition message."

* commit '9623c6668962559e818d1e7f05a58dcb96c71fa9':
  Less confusing heap transition message.

10 years agoMerge "Less confusing heap transition message."
Mathieu Chartier [Tue, 15 Apr 2014 21:51:48 +0000 (21:51 +0000)]
Merge "Less confusing heap transition message."

10 years agoLess confusing heap transition message.
Mathieu Chartier [Tue, 15 Apr 2014 19:40:17 +0000 (12:40 -0700)]
Less confusing heap transition message.

The heap transition message now just says how long the transition
took and up to how much memory was saved (it can still be negative).

Change-Id: If421dcc2aa9cc40740b858dcc2ff1b8e595f9a40

10 years agoam ebc726a9: Merge "Don\'t call SetFootprintLimit in CreateZygoteSpace."
Mathieu Chartier [Tue, 15 Apr 2014 19:23:03 +0000 (19:23 +0000)]
am ebc726a9: Merge "Don\'t call SetFootprintLimit in CreateZygoteSpace."

* commit 'ebc726a931fd76a83a7dcdd3cf3505cee387cead':
  Don't call SetFootprintLimit in CreateZygoteSpace.

10 years agoMerge "Don't call SetFootprintLimit in CreateZygoteSpace."
Mathieu Chartier [Tue, 15 Apr 2014 19:17:01 +0000 (19:17 +0000)]
Merge "Don't call SetFootprintLimit in CreateZygoteSpace."

10 years agoDon't call SetFootprintLimit in CreateZygoteSpace.
Mathieu Chartier [Tue, 15 Apr 2014 19:01:58 +0000 (12:01 -0700)]
Don't call SetFootprintLimit in CreateZygoteSpace.

Since SetFootprintLimit uses the allocators accounting it can set a
word inside of the zygote space mem map. This was causing issues
since it was occasionally clobbering one of the object classes. This
occured since we compact objects into the space which was used by the
allocator's internal accounting during zygote bin packing.

Also addressed some TODO.

Bug: 14056343
Change-Id: I9fc5a61174fa141c0f44d0ed0ae0cc6d77cb4e0a

10 years agoAllow use of instance filter for JDWP events
Sebastien Hertz [Fri, 11 Apr 2014 10:07:41 +0000 (12:07 +0200)]
Allow use of instance filter for JDWP events

Bug: 13922844
Change-Id: Ic4e6d7af7c80928c25417db5f43049614d225c97

10 years agoFix JDWP count event modifier
Sebastien Hertz [Tue, 15 Apr 2014 14:03:27 +0000 (16:03 +0200)]
Fix JDWP count event modifier

Bug: 14053614
Change-Id: I736f6d6802e58e7a4fb29d0558bdd2abd3b2a48e

10 years agoam c311d0c8: Merge "Prepare field watchpoint support"
Sebastien Hertz [Tue, 15 Apr 2014 09:01:09 +0000 (09:01 +0000)]
am c311d0c8: Merge "Prepare field watchpoint support"

* commit 'c311d0c85e17773042daaa7a4abc58b3e3c0a0c1':
  Prepare field watchpoint support

10 years agoam 0a01b382: Merge "Clear unused roots from debugger"
Sebastien Hertz [Tue, 15 Apr 2014 09:01:09 +0000 (09:01 +0000)]
am 0a01b382: Merge "Clear unused roots from debugger"

* commit '0a01b38244053e72f33339e733b3ae5e15a5966b':
  Clear unused roots from debugger

10 years agoam 1837bcb6: Merge "Deduplicate code starting JDWP thread"
Sebastien Hertz [Tue, 15 Apr 2014 09:01:08 +0000 (09:01 +0000)]
am 1837bcb6: Merge "Deduplicate code starting JDWP thread"

* commit '1837bcb6e9b3b41a0cec8af19cd3bbf8ebebbf22':
  Deduplicate code starting JDWP thread

10 years agoMerge "Prepare field watchpoint support"
Sebastien Hertz [Tue, 15 Apr 2014 06:43:14 +0000 (06:43 +0000)]
Merge "Prepare field watchpoint support"

10 years agoPrepare field watchpoint support
Sebastien Hertz [Fri, 4 Apr 2014 15:50:18 +0000 (17:50 +0200)]
Prepare field watchpoint support

Adds field read/write events in the instrumentation. The debugger now registers
as a listener for these events so JDWP field access and field modification
events can be reported.

This CL will be followed by another one to report these events from the
interpreter. Therefore no JDWP field access and field modification events
can be sent for now.

Bug: 8267708
Change-Id: If2a93eb590805567d69015c83cce9cd2ab712cbd

10 years agoMerge "Clear unused roots from debugger"
Sebastien Hertz [Tue, 15 Apr 2014 06:29:54 +0000 (06:29 +0000)]
Merge "Clear unused roots from debugger"

10 years agoMerge "Deduplicate code starting JDWP thread"
Sebastien Hertz [Tue, 15 Apr 2014 06:29:43 +0000 (06:29 +0000)]
Merge "Deduplicate code starting JDWP thread"

10 years agoam 30143fda: Merge "Fix clang build."
Mathieu Chartier [Mon, 14 Apr 2014 23:56:12 +0000 (23:56 +0000)]
am 30143fda: Merge "Fix clang build."

* commit '30143fdafa238f9d6922b056931a2fbe005129f6':
  Fix clang build.

10 years agoMerge "Fix clang build."
Mathieu Chartier [Mon, 14 Apr 2014 23:51:15 +0000 (23:51 +0000)]
Merge "Fix clang build."

10 years agoFix clang build.
Mathieu Chartier [Mon, 14 Apr 2014 22:52:08 +0000 (15:52 -0700)]
Fix clang build.

Change-Id: Iaf0b76cfc02bac5f49ab98d494db9a774211f453

10 years agoam 949e5fdd: Merge "art_quick_unlock_object uses comparison incorrectly"
Ian Rogers [Mon, 14 Apr 2014 22:33:26 +0000 (22:33 +0000)]
am 949e5fdd: Merge "art_quick_unlock_object uses comparison incorrectly"

* commit '949e5fdd1e46935ca770ac64e0a030a0a0f096a7':
  art_quick_unlock_object uses comparison incorrectly

10 years agoMerge "art_quick_unlock_object uses comparison incorrectly"
Ian Rogers [Mon, 14 Apr 2014 22:26:07 +0000 (22:26 +0000)]
Merge "art_quick_unlock_object uses comparison incorrectly"

10 years agoam d6b9b627: Merge "Refactor space bitmap to support different alignments."
Mathieu Chartier [Mon, 14 Apr 2014 19:09:12 +0000 (19:09 +0000)]
am d6b9b627: Merge "Refactor space bitmap to support different alignments."

* commit 'd6b9b62748e120f7a02eb315e5cc8179312a5d1a':
  Refactor space bitmap to support different alignments.

10 years agoam 107cbcc0: Merge "Reduce bump pointer space capacity."
Mathieu Chartier [Mon, 14 Apr 2014 19:09:11 +0000 (19:09 +0000)]
am 107cbcc0: Merge "Reduce bump pointer space capacity."

* commit '107cbcc013df137cdad2a2eb238607b7673c5819':
  Reduce bump pointer space capacity.

10 years agoMerge "Refactor space bitmap to support different alignments."
Mathieu Chartier [Mon, 14 Apr 2014 19:02:50 +0000 (19:02 +0000)]
Merge "Refactor space bitmap to support different alignments."

10 years agoMerge "Reduce bump pointer space capacity."
Mathieu Chartier [Mon, 14 Apr 2014 19:02:30 +0000 (19:02 +0000)]
Merge "Reduce bump pointer space capacity."

10 years agoReduce bump pointer space capacity.
Mathieu Chartier [Mon, 14 Apr 2014 18:30:39 +0000 (11:30 -0700)]
Reduce bump pointer space capacity.

Bug: 14058912
Change-Id: I7ae53e667539530d56ca2f5d10214e69c9c994e2

10 years agoam 0cedc9b2: Merge "Recognize and ignore options \'-ea\' and \'-da\'"
Brian Carlstrom [Mon, 14 Apr 2014 18:48:54 +0000 (18:48 +0000)]
am 0cedc9b2: Merge "Recognize and ignore options \'-ea\' and \'-da\'"

* commit '0cedc9b2fda88305b5291dee78673197239f2b93':
  Recognize and ignore options '-ea' and '-da'

10 years agoMerge "Recognize and ignore options '-ea' and '-da'"
Brian Carlstrom [Mon, 14 Apr 2014 18:44:19 +0000 (18:44 +0000)]
Merge "Recognize and ignore options '-ea' and '-da'"

10 years agoCentralize instruction-set pointer-size, alignment, 64b-width code
Andreas Gampe [Fri, 11 Apr 2014 19:07:48 +0000 (12:07 -0700)]
Centralize instruction-set pointer-size, alignment, 64b-width code
in instruction_set.h/cc

This allows to clean up some places that currently make explicit
comparisons.

Change-Id: I0dcc924c52fa53306f706aceea93a2d4a655c5df

10 years agoRecognize and ignore options '-ea' and '-da'
Yevgeny Rouban [Mon, 24 Mar 2014 04:31:24 +0000 (11:31 +0700)]
Recognize and ignore options '-ea' and '-da'

-ea:<package or class> and -da:<package or class> options are ignored.

This patch just adds -ea and -da options without any package or
class specified.

Change-Id: Ide04b8eacb1b2edb415328130bc12e05dc3ddc7b
Signed-off-by: Yevgeny Rouban <yevgeny.y.rouban@intel.com>
10 years agoRefactor space bitmap to support different alignments.
Mathieu Chartier [Wed, 9 Apr 2014 21:51:05 +0000 (14:51 -0700)]
Refactor space bitmap to support different alignments.

Required for:
Using space bitmaps instead of std::set in mod union table +
remembered set.
Using a bitmap instead of set for large object marking.

Bug: 13571028

Change-Id: Id024e9563d4ca4278f79607cdb2f81895121b113

10 years agoDeduplicate code starting JDWP thread
Sebastien Hertz [Mon, 14 Apr 2014 12:38:24 +0000 (14:38 +0200)]
Deduplicate code starting JDWP thread

Also waits for thread_start_cond_ in a loop and removes needless mutex lock in
JdwpState::Run when checking thread state.

Change-Id: I6fca2151b5343b2906e9fa3b439029e6ad5b086d

10 years agoClear unused roots from debugger
Sebastien Hertz [Mon, 14 Apr 2014 09:59:08 +0000 (11:59 +0200)]
Clear unused roots from debugger

SingleStepControl and DebugInvokeReq hold roots which are only used during a
limited amount of time. Clear these roots once we finish using them.

Also cleans some code around single-step.

Change-Id: Ica2f65e04a4d60272199490cd40ad1803d3b9f02

10 years agoam 043a7a61: Merge "Fix hammerhead phone boot on master."
Mathieu Chartier [Sat, 12 Apr 2014 01:15:32 +0000 (01:15 +0000)]
am 043a7a61: Merge "Fix hammerhead phone boot on "

* commit '043a7a6182870964021476484b1534106ff20600':
  Fix hammerhead phone boot on master.

10 years agoMerge "Fix hammerhead phone boot on master."
Mathieu Chartier [Sat, 12 Apr 2014 01:09:46 +0000 (01:09 +0000)]
Merge "Fix hammerhead phone boot on master."

10 years agoFix hammerhead phone boot on master.
Mathieu Chartier [Sat, 12 Apr 2014 01:06:01 +0000 (18:06 -0700)]
Fix hammerhead phone boot on master.

Wasn't failing on AOSP.

Change-Id: I8e531bf7493d36dc2667afeaf3133ce8560a2ce1

10 years agoam 95cd0662: Merge "Fix heap verification with SS/GSS."
Mathieu Chartier [Sat, 12 Apr 2014 00:23:11 +0000 (00:23 +0000)]
am 95cd0662: Merge "Fix heap verification with SS/GSS."

* commit '95cd06622b956d7cd5b65248b1f381e602753f2c':
  Fix heap verification with SS/GSS.

10 years agoMerge "Fix heap verification with SS/GSS."
Mathieu Chartier [Sat, 12 Apr 2014 00:16:55 +0000 (00:16 +0000)]
Merge "Fix heap verification with SS/GSS."

10 years agoFix heap verification with SS/GSS.
Mathieu Chartier [Fri, 11 Apr 2014 23:42:46 +0000 (16:42 -0700)]
Fix heap verification with SS/GSS.

Since I had removed the SwapSemiSpaces it was trying to verify
references in the from space of the semispace collector, which isn't
necessarily valid.

Bug: 13989162

Change-Id: I8e0b7119a1a53d63f2c71ecdb276290eda5bae07

10 years agoam 24801569: Merge "Fix an occasional ThreadStress crash."
Hiroshi Yamauchi [Fri, 11 Apr 2014 22:48:49 +0000 (22:48 +0000)]
am 24801569: Merge "Fix an occasional ThreadStress crash."

* commit '248015696ee087878656fb53e37cbf7be2b97e4d':
  Fix an occasional ThreadStress crash.

10 years agoam 37df2868: Merge "Clean-up heap spaces."
Mathieu Chartier [Fri, 11 Apr 2014 22:48:48 +0000 (22:48 +0000)]
am 37df2868: Merge "Clean-up heap spaces."

* commit '37df286803b39fe559dd0fe342a661115d96ae57':
  Clean-up heap spaces.

10 years agoMerge "Fix an occasional ThreadStress crash."
Hiroshi Yamauchi [Fri, 11 Apr 2014 22:43:08 +0000 (22:43 +0000)]
Merge "Fix an occasional ThreadStress crash."

10 years agoMerge "Clean-up heap spaces."
Mathieu Chartier [Fri, 11 Apr 2014 22:40:43 +0000 (22:40 +0000)]
Merge "Clean-up heap spaces."

10 years agoFix an occasional ThreadStress crash.
Hiroshi Yamauchi [Fri, 11 Apr 2014 22:31:09 +0000 (15:31 -0700)]
Fix an occasional ThreadStress crash.

Also, fix the NativeAllocations test for the case with the GSS
collector as the default GC. Since kGcCauseForAlloc (incorrect) was
being passed into the collector instead of kGcCauseForNativeAlloc
(correct) from Heap::RegisterNativeAllocation(), the GCC collector
never invoked a whole heap collection which was necessary to do
sufficent finalizations to pass the test.

Bug: 13988451
Bug: 11650816
Change-Id: Ib02f061751cd777e0d3bfa81b29e04a874dc58a0

10 years agoClean-up heap spaces.
Mathieu Chartier [Tue, 8 Apr 2014 21:40:03 +0000 (14:40 -0700)]
Clean-up heap spaces.

We now use the CMS collector instead of the semispace collector when
the phone is booting. We still perform compaction during the zygote
space creation. This reduces time spent in GC by ~2s during boot
and doesn't affect zygote space size.

Changed the space creation logic to create the temp space when a
background transition occurs.

Added a flag to each space which is true if you are allowed to
move objects that are within this space.

Removed SwapSemiSpaces call from the semi space collector, it is now
the job of the caller to do this with threads suspended. This
simplifies the logic in the zygote compaction / heap transition code
since these do not copy from one semispace to another.

Added Space::Clear to RosAllocSpace and DlMallocSpace. This greatly
simplifies the code used for collector transitions.

Time spent in GC creating zygote space:
Before: 3.4s, After: 1.28s
No change in zygote space size.

Bug: 13878055

Change-Id: I700348ab7d5bf3aa537c0cd70c0fed09aa4b0623

10 years agoam 9b417e4f: Merge "AArch64: List arm64 as instruction set option"
Andreas Gampe [Fri, 11 Apr 2014 14:31:49 +0000 (14:31 +0000)]
am 9b417e4f: Merge "AArch64: List arm64 as instruction set option"

* commit '9b417e4f0f87da6bfe8dc5f02c987acfcb6dca31':
  AArch64: List arm64 as instruction set option

10 years agoMerge "AArch64: List arm64 as instruction set option"
Andreas Gampe [Fri, 11 Apr 2014 14:22:52 +0000 (14:22 +0000)]
Merge "AArch64: List arm64 as instruction set option"