OSDN Git Service
Elliott Hughes [Thu, 28 Aug 2014 22:25:34 +0000 (22:25 +0000)]
Merge "Move the glibc unlimited stack hack into GetThreadStack."
Hiroshi Yamauchi [Thu, 28 Aug 2014 22:19:37 +0000 (22:19 +0000)]
Merge "Fix an assert failure in art::DumpNativeStack()."
Hiroshi Yamauchi [Thu, 28 Aug 2014 21:55:56 +0000 (14:55 -0700)]
Fix an assert failure in art::DumpNativeStack().
When ThreadList::SuspendAll() times out (and aborts),
UnsafeLogFatalForThreadSuspendAllTimeout() will call
art::DumpNativeStack() but it does not have the mutator lock
shared-locked (as it failed while trying to exclusive-lock the mutator
lock) and the AssertSharedHeld() on the mutator lock fails. It's an
assert failure nested in an time-out abort.
This change avoids it by letting it print the native method frame info
only if the thread has a shared lock on the mutator lock, as opposed
to asserting that it has a shared lock.
Change-Id: I17851ebcaa37f4f67086c15243a2cffea3997a02
buzbee [Thu, 28 Aug 2014 21:11:05 +0000 (21:11 +0000)]
Merge "Quick compiler: Fix MIPS build"
buzbee [Thu, 28 Aug 2014 20:48:56 +0000 (13:48 -0700)]
Quick compiler: Fix MIPS build
In debug builds, the Quick compiler frequently runs a sanity checker
over the register pool. Among other things, it attempts to verify
consistent representation of register pairs. However, a register's
"wide" flag is meaningful only when the register pair is associated
with a Dalvik wide value (sreg != INVALID_SREG) rather than a temp
wide value.
The MIPS build was tripping over this bad assertion. Fixed here.
Note related cl/105461
Change-Id: Id726ff1ea0f5cbcc8dba6fa3aacb3fd4fc043a63
Mathieu Chartier [Thu, 28 Aug 2014 19:15:12 +0000 (19:15 +0000)]
Merge "Filling hole between subclass and superclass."
Fred Shih [Tue, 26 Aug 2014 00:24:27 +0000 (17:24 -0700)]
Filling hole between subclass and superclass.
Subclasses no longer need to be 4-byte aligned at the end. Any gaps
between a superclass and its subclasses will be filled in by halfword
or byte fields if possible.
Refactored the alignment and shuffling methods to use a priority queue
in order to reduce the amount of logic when laying out objects.
Change-Id: Ifed71af534e0c5e77bb14555c44b973fe66df6da
Mathieu Chartier [Thu, 28 Aug 2014 18:49:08 +0000 (18:49 +0000)]
Merge "Prevent exception bugs in class linker"
Mathieu Chartier [Wed, 27 Aug 2014 22:28:28 +0000 (15:28 -0700)]
Prevent exception bugs in class linker
There were some places that could throw exceptions but still succeed.
This caused the allocation entrypoints to occasionally allocate a
heap object with a pending exception.
Also added some additional AssertNoExceptionPending.
Bug:
17164348
(cherry picked from commit
58c016c3f85d6d5496cea25325778de3a8d9a3ac)
Change-Id: Id9918fa8f1a5d713b847cb95cdade925ff80a826
Elliott Hughes [Thu, 28 Aug 2014 17:24:44 +0000 (10:24 -0700)]
Move the glibc unlimited stack hack into GetThreadStack.
Optional cleanup that was previously a TODO.
Bug:
17111575
Change-Id: I7c20dbf1fdbcaf4604d7b55552930c10e166539d
Sebastien Hertz [Thu, 28 Aug 2014 17:16:05 +0000 (17:16 +0000)]
Merge "Avoid null pointer dereference when sending JDWP packets"
Elliott Hughes [Thu, 28 Aug 2014 16:58:34 +0000 (16:58 +0000)]
Merge "Actually ask the pthread implementation for the stack guard size."
Elliott Hughes [Wed, 27 Aug 2014 18:47:01 +0000 (11:47 -0700)]
Actually ask the pthread implementation for the stack guard size.
(cherry-pick
307091dc306c34ce9e4ee6cc3b467807b3a3bd12.)
Bug:
17111575
Change-Id: I23919b1e8aeff627a65daf57f1109bec60b196cc
Sebastien Hertz [Thu, 28 Aug 2014 16:50:36 +0000 (18:50 +0200)]
Avoid null pointer dereference when sending JDWP packets
Bug:
16218394
Change-Id: Id0ab09401b01f3041ea36013330a000d7702d8fa
Sebastien Hertz [Thu, 28 Aug 2014 16:50:17 +0000 (16:50 +0000)]
Merge "Ensure proxy constructor is in dex cache"
Sebastien Hertz [Wed, 27 Aug 2014 13:32:56 +0000 (15:32 +0200)]
Ensure proxy constructor is in dex cache
Bug:
17262039
Change-Id: I879341fa9c66f18ec64d6d4bf6a222a452c27739
Ian Rogers [Wed, 27 Aug 2014 23:12:35 +0000 (23:12 +0000)]
Merge "Fix gcstress and gcverify test targets"
Alex Light [Wed, 27 Aug 2014 23:08:57 +0000 (16:08 -0700)]
Fix gcstress and gcverify test targets
Make the build system look at the right variables to determine if these
should be on.
Change-Id: Iede993714eee773716cdc99181b10b280e96ca2a
Bill Buzbee [Wed, 27 Aug 2014 21:33:14 +0000 (21:33 +0000)]
Merge "ART: Change temporaries to positive names"
Dave Allison [Wed, 27 Aug 2014 21:18:03 +0000 (21:18 +0000)]
Merge "Handle nested signals"
Dave Allison [Tue, 26 Aug 2014 18:07:58 +0000 (11:07 -0700)]
Handle nested signals
This allows for signals to be raised inside the ART signal handler.
This can occur when the JavaStackTraceHandler attempts to generate
a stack trace and something goes wrong.
It also fixes an issue where the fault manager was not being
correctly shut down inside the signal chaining code. In this
case the signal handler was not restored to the original.
Bug:
17006816
Bug:
17133266
(cherry picked from commit
fabe91e0d558936ac26b98d2b4ee1af08f58831d)
Change-Id: I10730ef52d5d8d34610a5293253b3be6caf4829e
Brian Carlstrom [Wed, 27 Aug 2014 19:01:17 +0000 (19:01 +0000)]
Merge "Really fix tests."
Alex Light [Wed, 27 Aug 2014 18:13:47 +0000 (11:13 -0700)]
Really fix tests.
Remove extra line in Android.run-test.mk.
Update junit code in 082 and 021.
Set correct bootclasspath for --no-image.
Make host core.art depend on dex files being installed.
Make 118 pass in the correct bootclasspath.
Bug:
17290452
Change-Id: I415eddfa3632ec7eda927abe95925202de193749
Ian Rogers [Wed, 27 Aug 2014 18:11:01 +0000 (18:11 +0000)]
Merge "Various run-test makefile fixes."
Ian Rogers [Wed, 27 Aug 2014 17:54:11 +0000 (10:54 -0700)]
Various run-test makefile fixes.
Reduce number of test combinations based on global flags, rather than just
specific tests, to keep known broken list as small as possible.
Fix dist goal known broken definition.
Fix naming of rules in define-test-art-run-test to match the make target.
Undefine more variables after use.
Change-Id: I4b4eadd37fc1f816bc61d78c5866bfcee7b60244
Ian Rogers [Wed, 27 Aug 2014 03:40:19 +0000 (03:40 +0000)]
Merge "Fix builds where dist_goal is defined."
Ian Rogers [Wed, 27 Aug 2014 03:39:04 +0000 (20:39 -0700)]
Fix builds where dist_goal is defined.
Change-Id: I93b3fb468cf760aa84d792b2651cdde366fc6033
Ian Rogers [Wed, 27 Aug 2014 03:01:34 +0000 (03:01 +0000)]
Merge "Fix test build targets."
Ian Rogers [Wed, 27 Aug 2014 02:59:52 +0000 (19:59 -0700)]
Fix test build targets.
Missing includes for libarttest.
Missed merge for adding IMAGE_TYPES to known broken tests.
Change-Id: I64227b3410bac9a1de8e0efd3b89eab78cd3cf5b
Razvan A Lupusoru [Sat, 7 Jun 2014 00:04:52 +0000 (17:04 -0700)]
ART: Change temporaries to positive names
Changes compiler temporaries to have positive names. The numbering now
puts them above the code VRs (locals + ins, in that order). The patch also
introduces APIs to query the number of temporaries, locals and ins.
The compiler temp infrastructure suffered from several issues
which are also addressed by this patch:
-There is no longer a queue of compiler temps. This would be polluted
with Method* when post opts were called multiple times.
-Sanity checks have been added to allow requesting of temps from BE
and to prevent temps after frame is committed.
-None of the structures holding temps can overflow because they are
allocated to allow holding maximum temps. Thus temps can be requested
by BE with no problem.
-Since the queue of compiler temps is no longer maintained, it is no
longer possible to refer to a temp that has invalid ssa (because it
was requested before ssa was run).
-The BE can now request temps after all ME allocations and it is guaranteed
to actually receive them.
-ME temps are now treated like normal VRs in all cases with no special
handling. Only the BE temps are handled specially because there are no
references to them from MIRs.
-Deprecated and removed several fields in CompilationUnit that saved
register information and updated callsites to call the new interface from
MIRGraph.
Change-Id: Ia8b1fec9384a1a83017800a59e5b0498dfb2698c
Signed-off-by: Razvan A Lupusoru <razvan.a.lupusoru@intel.com>
Signed-off-by: Udayan Banerji <udayan.banerji@intel.com>
Ian Rogers [Wed, 27 Aug 2014 01:05:55 +0000 (01:05 +0000)]
Merge changes Id3113019,I89c26a90
* changes:
Add run-test support for running without a working patchoat/dex2oat
Support booting without functioning boot.oat/art patchoat.
Mathieu Chartier [Wed, 27 Aug 2014 00:37:27 +0000 (00:37 +0000)]
Merge "Reduce interpret-only compile time."
Ian Rogers [Wed, 27 Aug 2014 00:36:31 +0000 (00:36 +0000)]
Merge "ART: Added dirty flag to optimizations"
Alex Light [Mon, 25 Aug 2014 20:25:56 +0000 (13:25 -0700)]
Add run-test support for running without a working patchoat/dex2oat
Also add it to the test-art target.
Bug:
17262039
Change-Id: Id31130194c46df66fc48852d6f8884f14cb08db4
Ian Rogers [Wed, 27 Aug 2014 00:26:00 +0000 (00:26 +0000)]
Merge "ART: Add capability for a pass to have options"
Razvan A Lupusoru [Thu, 3 Jul 2014 01:16:51 +0000 (18:16 -0700)]
ART: Add capability for a pass to have options
This patch adds capability to have pass options. These are needed when a pass
has multiple flags that can be tweaked. The user is now allowed to pass those
options via command line.
Since passes are treated as singletons and they are immutable, the overridden
options provided by user are set on the compilation unit. Doing this way also
allows a selectivity system to tweak the option per compilation instead of
doing it globally (due to the single pass existing).
The following command line flags have been added:
--print-pass-options - This prints all passes that have options along with
their defaults.
--pass-options= - This is used to pass the overridden options in format of
PassName:PassOption:PassOptionSetting
Change-Id: Ib5156f5d2ff51a0c64c4ea0fa050bd2170663417
Signed-off-by: Razvan A Lupusoru <razvan.a.lupusoru@intel.com>
Signed-off-by: Jean Christophe Beyler <jean.christophe.beyler@intel.com>
Jean Christophe Beyler [Fri, 18 Jul 2014 22:33:57 +0000 (15:33 -0700)]
ART: Added dirty flag to optimizations
- Added a dirty flag to the PassMEDataHolder and use it to determine
if we want to perform the post-optimization passes or not.
Change-Id: I59a85f5198f9224d5fe8893397bfaf68a978d8f1
Signed-off-by: Jean Christophe Beyler <jean.christophe.beyler@intel.com>
Alex Light [Sat, 23 Aug 2014 00:49:35 +0000 (17:49 -0700)]
Support booting without functioning boot.oat/art patchoat.
Bug:
17000769
Change-Id: I89c26a905af12ea288742368c2c038afd57a879a
Ian Rogers [Tue, 26 Aug 2014 23:37:01 +0000 (23:37 +0000)]
Merge "Use loops to build combinations of run-tests."
Ian Rogers [Tue, 19 Aug 2014 23:52:36 +0000 (16:52 -0700)]
Use loops to build combinations of run-tests.
Add a JNI force copy test.
Split tracing from GC, relocation from prebuilding.
As the combinations of tests is sufficiently large to cause make serious work,
only build rules for tests that will be executed. Default to small number of
tests rather than full. Use ART_TEST_FULL=true to override.
Change-Id: Ic25431f29071b840d2e2295be6853511c0b52cfa
Ian Rogers [Tue, 26 Aug 2014 22:55:27 +0000 (22:55 +0000)]
Merge "ART: Add non-temporal store support"
Mathieu Chartier [Tue, 19 Aug 2014 21:29:46 +0000 (14:29 -0700)]
Reduce interpret-only compile time.
Before:
39.04user 5.18system 0:29.24elapsed 151%CPU (0avgtext+0avgdata 164176maxresident)k
38.87user 5.16system 0:29.14elapsed 151%CPU (0avgtext+0avgdata 164144maxresident)k
After:
36.26user 3.25system 0:27.00elapsed 146%CPU (0avgtext+0avgdata 162592maxresident)k
36.25user 3.28system 0:26.28elapsed 150%CPU (0avgtext+0avgdata 162688maxresident)k
Disabled implicit stack protection for the compiler, this reduces page faults.
Added support for not timing every method compilation and verification. NanoTime is
slow and adds ~2 seconds of real time. This is currently enabled since people want
to know which methods are slow to compile.
Bug:
16853450
Change-Id: I349ffb3f36db8c437137387aa6914dc17d743f09
Jean Christophe Beyler [Fri, 25 Jul 2014 19:32:18 +0000 (12:32 -0700)]
ART: Add non-temporal store support
Added non-temporal store support as a hint from the ME.
Added the implementation of the memory barrier
extended instruction that supports non-temporal stores
by explicitly serializing all previous store-to-memory instructions.
Change-Id: I8205a92083f9725253d8ce893671a133a0b6849d
Signed-off-by: Jean Christophe Beyler <jean.christophe.beyler@intel.com>
Signed-off-by: Chao-ying Fu <chao-ying.fu@intel.com>
Mathieu Chartier [Tue, 26 Aug 2014 18:03:03 +0000 (18:03 +0000)]
Merge "Fix race condition in TransitionCollector."
Mathieu Chartier [Sat, 23 Aug 2014 20:56:03 +0000 (13:56 -0700)]
Fix race condition in TransitionCollector.
There was a minor race condition that could happen if multiple
threads called TransitionCollector at the same time. Starting out
in CMS:
Thread 1: TransitionCollector(SS).
Thread 2: TransitionCollector(CMS) sees that it is already CMS so
has copying_transition == false. But then thread 2 changes to SS.
Thread 1 resumes but incorrectly doesn't check the
disable_moving_gc_count_ possibly resulting in errors if
disable_moving_gc_count_ != 0 due to JNI since we are going from
SS -> CMS and are goign to move objects.
(cherry picked from commit
de2233bbf64c7dde96513a729f6a97aebc2f0424)
Change-Id: I2fdda85f7cb7cbb0df3d1466a3c74853c5304c1b
Andreas Gampe [Tue, 26 Aug 2014 17:55:56 +0000 (17:55 +0000)]
Merge "ART: Improve error message on oat writer failure"
Andreas Gampe [Tue, 22 Jul 2014 05:56:08 +0000 (22:56 -0700)]
ART: Improve error message on oat writer failure
Try to log the pending exception to help resolve issues.
Bug:
16406811
Change-Id: I035ae9e59a5ee02b9e90c35c0644ec088d3c7d12
Ian Rogers [Tue, 26 Aug 2014 17:36:09 +0000 (17:36 +0000)]
Merge "Fix usage of literals within a macro."
Ian Rogers [Tue, 26 Aug 2014 17:34:09 +0000 (10:34 -0700)]
Fix usage of literals within a macro.
Macs handle arguments in macros as $num meaning literals must be $$num.
Change-Id: Ia30c7ef4e089561e9f23f353d7080e800b117d70
Mathieu Chartier [Tue, 26 Aug 2014 17:17:09 +0000 (17:17 +0000)]
Merge "Map heap maps at a lower address."
Mathieu Chartier [Mon, 25 Aug 2014 23:32:41 +0000 (16:32 -0700)]
Map heap maps at a lower address.
We now map the heap mmaps at a lower address in case the app needs
larger continuous address space.
Bug:
16502380
(cherry picked from commit
18bacb60e09fa8aa20ae0a1d7a4a8968d4913fb0)
Change-Id: I66447f853e439448c72923e2d1c657c94c5f1543
Andreas Gampe [Tue, 26 Aug 2014 17:11:38 +0000 (17:11 +0000)]
Merge "ART: kSuper also has IncompatibleClassChangeError"
Andreas Gampe [Tue, 26 Aug 2014 03:55:01 +0000 (20:55 -0700)]
ART: kSuper also has IncompatibleClassChangeError
When resolving methods, kSuper can also have
IncompatibleClassChangeError.
Bug:
17266767
(cherry picked from commit
9cb8d7a9a5013dd1e6734d9643573a4750d869e2)
Change-Id: I5fafe03ad578f605825a3d0c89f1254a4a385b76
Andreas Gampe [Tue, 26 Aug 2014 17:09:59 +0000 (17:09 +0000)]
Merge "ART: Fix IncompatibleClassChange check for ArtMethod"
Andreas Gampe [Tue, 26 Aug 2014 03:46:31 +0000 (20:46 -0700)]
ART: Fix IncompatibleClassChange check for ArtMethod
In case of kSuper we should complain sometimes.
Bug:
17265201
(cherry picked from commit
249907fe09afd9243c9675a67b157b98378fa3cf)
Change-Id: Ifad903a750495963c7128296713fbd7c4add71cd
buzbee [Tue, 26 Aug 2014 14:42:32 +0000 (14:42 +0000)]
Merge "Quick compiler: fix DCHECK"
buzbee [Mon, 25 Aug 2014 16:34:03 +0000 (09:34 -0700)]
Quick compiler: fix DCHECK
Cherry-pick from internal 532582
A DCHECK intended to verify the soundness of the mapping between
a wide Dalvik value and a pair of temp registers incorrectly fired
when the temp register pair was associated with a wide temporary
(i.e. - when (SReg() == INVALID_SREG)).
In this particular situation, the wideness flag is meaningful only when
there is an associated valid vreg. Code rearranged to only perform
the DCHECK and reset the partner's wideness bit when we're dealing with
a live wide value.
b/
16484538
Change-Id: I3b8a7bebc5d918c65ea56ae8db0a8a5cd8003386
Brian Carlstrom [Tue, 26 Aug 2014 06:40:32 +0000 (06:40 +0000)]
Merge "CheckAndClearResolveException should allow LinkageError"
Brian Carlstrom [Tue, 26 Aug 2014 06:07:30 +0000 (23:07 -0700)]
CheckAndClearResolveException should allow LinkageError
Bug:
16565964
(cherry picked from commit
118785c6f82ac1ec7074b5efe367b3dafd904940)
Change-Id: I7bc170e7a9ee9bd19defdd20187ee36a2381bf5d
Mathieu Chartier [Tue, 26 Aug 2014 03:31:59 +0000 (03:31 +0000)]
Merge "Reduce GC log spam."
Mathieu Chartier [Tue, 26 Aug 2014 02:46:57 +0000 (19:46 -0700)]
Reduce GC log spam.
Homogeneous compaction and collector transitions now print to
VLOG(gc) instead of LOG(INFO).
Bug:
17166556
(cherry picked from commit
0ab56e95e203806dae347056d3331a3e6037457d)
Change-Id: I33157ca27da86cbb741759bb0bda6d38d1f5bfcd
Mathieu Chartier [Tue, 26 Aug 2014 01:30:04 +0000 (01:30 +0000)]
Merge "Fixed typo in entrypoint stub."
Fred Shih [Tue, 26 Aug 2014 01:19:50 +0000 (18:19 -0700)]
Fixed typo in entrypoint stub.
Fixed typo for x86 stub causing mac build failure.
Change-Id: I5e063fb87c598c2d9beb22f6d5b97b7fd4df9b84
Hiroshi Yamauchi [Tue, 26 Aug 2014 00:27:55 +0000 (00:27 +0000)]
Merge "Remove an intermediate field array in ClassLinker::InitializeClass."
Hiroshi Yamauchi [Fri, 22 Aug 2014 19:12:56 +0000 (12:12 -0700)]
Remove an intermediate field array in ClassLinker::InitializeClass.
This improves on CL 105090 by removing the need for the intermediate
field array by iterating two iterators in parallel.
Bug:
12687968
Change-Id: I32d4570948a9d39ccb1c20a02e18b48f15ed0738
Ian Rogers [Mon, 25 Aug 2014 22:52:34 +0000 (22:52 +0000)]
Merge "ART: Extending FlagsOf"
Mathieu Chartier [Mon, 25 Aug 2014 21:23:50 +0000 (21:23 +0000)]
Merge "Reduced memory usage of primitive fields smaller than 4-bytes"
Jean Christophe Beyler [Tue, 29 Jul 2014 20:20:42 +0000 (13:20 -0700)]
ART: Extending FlagsOf
Modified FlagsOf to handle extended flags.
Change-Id: I9e47e0c42816136b2b53512c914200dd9dd11376
Signed-off-by: Jean Christophe Beyler <jean.christophe.beyler@intel.com>
Fred Shih [Thu, 17 Jul 2014 01:38:08 +0000 (18:38 -0700)]
Reduced memory usage of primitive fields smaller than 4-bytes
Reduced memory used by byte and boolean fields from 4 bytes down to a
single byte and shorts and chars down to two bytes. Fields are now
arranged as Reference followed by decreasing component sizes, with
fields shuffled forward as needed.
Bug:
8135266
Change-Id: I65eaf31ed27e5bd5ba0c7d4606454b720b074752
Brian Carlstrom [Mon, 25 Aug 2014 18:12:06 +0000 (18:12 +0000)]
Merge "Reduce log spam by changing a LOG(INFO) to VLOG(startup)"
Alex Light [Thu, 21 Aug 2014 16:45:00 +0000 (09:45 -0700)]
Reduce log spam by changing a LOG(INFO) to VLOG(startup)
Bug:
17166556
Change-Id: I9975ba07ad8f119a6e367e2770a60040a462149b
Brian Carlstrom [Mon, 25 Aug 2014 17:51:38 +0000 (17:51 +0000)]
Merge "Support running without a boot image."
Mathieu Chartier [Mon, 25 Aug 2014 17:47:37 +0000 (17:47 +0000)]
Merge "Fix GC memory overhead accounting."
Mathieu Chartier [Thu, 21 Aug 2014 19:21:48 +0000 (12:21 -0700)]
Fix GC memory overhead accounting.
There was some missing null checks.
Bug:
16238192
(cherry picked from commit
2e290fb35ba1959e5a0ac85e87591ab9623808c1)
Change-Id: I4220272ac9c194e30fc307fca9918a4bb725e261
Alex Light [Tue, 19 Aug 2014 21:23:13 +0000 (14:23 -0700)]
Support running without a boot image.
Bug:
17000769
Change-Id: I6404d5050c8a2f4ee6e70d58532eb25ee9de248e
Mathieu Chartier [Mon, 25 Aug 2014 16:50:39 +0000 (16:50 +0000)]
Merge "Clean up Handle usage."
Mathieu Chartier [Sat, 23 Aug 2014 23:37:27 +0000 (16:37 -0700)]
Clean up Handle usage.
Prefer using ConstHandle instead of Handle as function arguments
since you can't assign new references to ConstHandle which helps
prevent bugs.
Changed NullHandle to be a ConstHandle so that you can never modify
it to be a non null reference.
Change-Id: I81cb979f6f8d5b49e5614966a2caf28c3701dd4f
Andreas Gampe [Sat, 23 Aug 2014 05:47:17 +0000 (05:47 +0000)]
Merge "ART: Clean up compiler"
Andreas Gampe [Wed, 13 Aug 2014 06:19:23 +0000 (23:19 -0700)]
ART: Clean up compiler
Clean up the compiler: less extern functions, dis-entangle
compilers, hide some compiler specifics, lower global includes.
Change-Id: Ibaf88d02505d86994d7845cf0075be5041cc8438
Mathieu Chartier [Sat, 23 Aug 2014 01:09:34 +0000 (01:09 +0000)]
Merge "Add fallback for non moving space being full."
Mathieu Chartier [Fri, 22 Aug 2014 21:53:04 +0000 (14:53 -0700)]
Add fallback for non moving space being full.
When the non moving space becomes full, we disable moving GC and
make the main space the new non moving space.
Also added a runtime option for changing the non moving space size:
-XX:NonMovingSpaceCapacity.
Bug:
17189964
(cherry picked from commit
4c5a469683e433f126c9863cd393747d2e7c4a29)
Change-Id: If82e3c6f8a0f389e37e14a0b1e6d5126d571fd7a
Ian Rogers [Fri, 22 Aug 2014 23:14:27 +0000 (23:14 +0000)]
Merge "ART: Support MIRGraph constant interface"
Razvan A Lupusoru [Mon, 4 Aug 2014 19:30:20 +0000 (12:30 -0700)]
ART: Support MIRGraph constant interface
-Adds a helper to be able to ask for a wide constant.
-Allows MIRGraph to provide interface to set constants.
Change-Id: Id282ee1604a0bd0bce6f495176d6bca35dcd5a00
Signed-off-by: Razvan A Lupusoru <razvan.a.lupusoru@intel.com>
Ian Rogers [Fri, 22 Aug 2014 21:59:25 +0000 (21:59 +0000)]
Merge "Using the correct time for wait_start_ms when lock contention logging is enabled"
Xin Guan [Fri, 22 Aug 2014 16:55:37 +0000 (11:55 -0500)]
Using the correct time for wait_start_ms when lock contention logging is enabled
Bug:
17208457
Change-Id: I35555e0acf3b37bb3776a62c64d59ae93403b237
(cherry picked from commit
b894a19dfd668b6779de939cf5265b7e409d8809)
Andreas Gampe [Fri, 22 Aug 2014 20:34:16 +0000 (20:34 +0000)]
Merge "ART: Reject field accesses to non-reference vregs."
Stephen Kyle [Fri, 22 Aug 2014 14:03:07 +0000 (15:03 +0100)]
ART: Reject field accesses to non-reference vregs.
The verifier will now reject any iget/iput insts
that do not have a reference object in vB.
Bug:
17207857
Change-Id: I2826f0f7abfc88561f4da9486588592f4b296d14
Signed-off-by: Stuart Monteith <stuart.monteith@arm.com>
Hiroshi Yamauchi [Fri, 22 Aug 2014 18:43:16 +0000 (18:43 +0000)]
Merge "Handlerize MethodVerifier::mirror_method_."
Hiroshi Yamauchi [Fri, 22 Aug 2014 18:13:12 +0000 (11:13 -0700)]
Handlerize MethodVerifier::mirror_method_.
The method (mirror_method_) wasn't handlerized across some
allocation/GC points such as the ResolveType() call in
ScanTryCatchBlocks() and the GetReturnType() calls in
CodeFlowVerifyInstruction().
Bug:
12687968
Change-Id: I95323de14459eb5a7c4abfcf44f882f86d59be64
Mathieu Chartier [Fri, 22 Aug 2014 17:30:28 +0000 (17:30 +0000)]
Merge "Fix testing wrong variable for non zygote."
Mathieu Chartier [Fri, 22 Aug 2014 01:28:20 +0000 (18:28 -0700)]
Fix testing wrong variable for non zygote.
For non zygote we want to only have a single non moving space to
let dex2oat use RosAlloc for all allocations.
Fixed stale low memory logic in parsed options.
Bug:
17189964
(cherry picked from commit
a12c2a945fe3f10d3ed31aa5db3e422cc1ad7f98)
Change-Id: I4fc00b277db6780ed410eab4cd969e8f004d5348
Calin Juravle [Fri, 22 Aug 2014 17:12:00 +0000 (17:12 +0000)]
Merge "Always setup the native bridge library"
Calin Juravle [Fri, 22 Aug 2014 11:53:59 +0000 (12:53 +0100)]
Always setup the native bridge library
... even if the string is empty. This will initialize the native bridge
library but mark it as unavailable.
- also, rename native_bridge_library_path to
native_bridge_library_filename to be closer to the actual meaning (it's
just the filename without any path).
Bug:
16404669
(cherry picked from commit I94628639691459d48d1fbf0841f36b68d51818e7)
Change-Id: I94628639691459d48d1fbf0841f36b68d51818e7
Ian Rogers [Fri, 22 Aug 2014 16:27:44 +0000 (16:27 +0000)]
Merge "GetDalvikDisassembly should work even without SSA info"
Ian Rogers [Fri, 22 Aug 2014 16:19:17 +0000 (16:19 +0000)]
Merge "ART: Fix frontend to allow possibility of multiple code units"
Ian Rogers [Fri, 22 Aug 2014 14:48:40 +0000 (14:48 +0000)]
Merge "ARM64: Avoid the duplication of condition codes."
Ian Rogers [Fri, 22 Aug 2014 14:33:14 +0000 (14:33 +0000)]
Merge "AArch64: Improve MIR to LIR translation for abs"
Alexandre Rames [Fri, 22 Aug 2014 13:08:36 +0000 (14:08 +0100)]
ARM64: Avoid the duplication of condition codes.
Andreas Gampe [Fri, 22 Aug 2014 04:44:19 +0000 (04:44 +0000)]
Merge "ART: Add dex dependency for gtest"
Dave Allison [Fri, 22 Aug 2014 01:16:56 +0000 (01:16 +0000)]
Merge "Fix signal test build"