OSDN Git Service

android-x86/art.git
9 years agoam 0ca8ab6b: am 496cd337: Fix segfault if running without image.
Alex Light [Fri, 29 Aug 2014 19:07:06 +0000 (19:07 +0000)]
am 0ca8ab6b: am 496cd337: Fix segfault if running without image.

* commit '0ca8ab6ba37a25d13a2893932d73e307a982e327':
  Fix segfault if running without image.

9 years agoam 799ddafd: Merge "Fix mips build for nested signal handler"
Dave Allison [Fri, 29 Aug 2014 18:53:30 +0000 (18:53 +0000)]
am 799ddafd: Merge "Fix mips build for nested signal handler"

* commit '799ddafdcc30783471698b7a9a05eeac8ef6f141':
  Fix mips build for nested signal handler

9 years agoam 6d0fa0e4: am 2cc42e30: Merge "Quick compiler: Fix MIPS build" into lmp-dev
buzbee [Fri, 29 Aug 2014 18:52:09 +0000 (18:52 +0000)]
am 6d0fa0e4: am 2cc42e30: Merge "Quick compiler: Fix MIPS build" into lmp-dev

* commit '6d0fa0e48c19ff2790c04e14e3ae1af751a0b4d5':
  Quick compiler: Fix MIPS build

9 years agoam c09af433: am 8ac3356d: Avoid null pointer dereference when sending JDWP packets
Sebastien Hertz [Fri, 29 Aug 2014 18:50:33 +0000 (18:50 +0000)]
am c09af433: am 8ac3356d: Avoid null pointer dereference when sending JDWP packets

* commit 'c09af433d353713440b19601db2cabb78332c9aa':
  Avoid null pointer dereference when sending JDWP packets

9 years agoam 8dc2b9e3: am 6a6a8965: Fix Mac build
Brian Carlstrom [Fri, 29 Aug 2014 18:49:15 +0000 (18:49 +0000)]
am 8dc2b9e3: am 6a6a8965: Fix Mac build

* commit '8dc2b9e37b630dd1f60eb5d172f80dcf6978b25b':
  Fix Mac build

9 years agoam cb747bf9: am 6c050b5f: Fix incorect variable name.
Alex Light [Fri, 29 Aug 2014 18:47:40 +0000 (18:47 +0000)]
am cb747bf9: am 6c050b5f: Fix incorect variable name.

* commit 'cb747bf945396c013308428723832de6e601fa66':
  Fix incorect variable name.

9 years agoam b0fc290d: (-s ours) am 1f019816: Change /dalvik-cache to be owned by root.
Alex Light [Fri, 29 Aug 2014 18:47:39 +0000 (18:47 +0000)]
am b0fc290d: (-s ours) am 1f019816: Change /dalvik-cache to be owned by root.

* commit 'b0fc290d8f0ae980754ce7740fa17667251b6aca':
  Change /dalvik-cache to be owned by root.

9 years agoMerge "Fix mips build for nested signal handler"
Dave Allison [Fri, 29 Aug 2014 18:29:06 +0000 (18:29 +0000)]
Merge "Fix mips build for nested signal handler"

9 years agoam eb9266cb: Merge "Fix segfault if running without image."
Brian Carlstrom [Fri, 29 Aug 2014 18:24:38 +0000 (18:24 +0000)]
am eb9266cb: Merge "Fix segfault if running without image."

* commit 'eb9266cb953f15f0101da33f0d5a94590b1bd14b':
  Fix segfault if running without image.

9 years agoFix mips build for nested signal handler
Dave Allison [Fri, 29 Aug 2014 18:05:17 +0000 (11:05 -0700)]
Fix mips build for nested signal handler

Bug: 17006816

(cherry picked from commit 5a18dde067daeb55f1368d5791c61e315bfa1d99)

Change-Id: Ia538e30012fed46cefba33092395c5361c571062

9 years agoam 496cd337: Fix segfault if running without image.
Alex Light [Fri, 29 Aug 2014 18:18:23 +0000 (18:18 +0000)]
am 496cd337: Fix segfault if running without image.

* commit '496cd337c19ca8386fec24633160f82c01993bbd':
  Fix segfault if running without image.

9 years agoFix segfault if running without image.
Alex Light [Fri, 29 Aug 2014 17:28:25 +0000 (10:28 -0700)]
Fix segfault if running without image.

Bug: 17325091

(cherry picked from commit 7adb7ac3913364de8cc57b8934024dd12e1d3bea)

Change-Id: I343099543ce0abf02219da84d61d9ce2dfc47980

9 years agoMerge "Fix segfault if running without image."
Brian Carlstrom [Fri, 29 Aug 2014 18:02:02 +0000 (18:02 +0000)]
Merge "Fix segfault if running without image."

9 years agoam f0174a01: Merge "Fix signal chain to allow for signal() call to be used"
Dave Allison [Fri, 29 Aug 2014 17:59:43 +0000 (17:59 +0000)]
am f0174a01: Merge "Fix signal chain to allow for signal() call to be used"

* commit 'f0174a016915037f954f98ea1c910536686b83c5':
  Fix signal chain to allow for signal() call to be used

9 years agoMerge "Fix signal chain to allow for signal() call to be used"
Dave Allison [Fri, 29 Aug 2014 17:39:38 +0000 (17:39 +0000)]
Merge "Fix signal chain to allow for signal() call to be used"

9 years agoFix segfault if running without image.
Alex Light [Fri, 29 Aug 2014 17:28:25 +0000 (10:28 -0700)]
Fix segfault if running without image.

Bug: 17325091
Change-Id: I343099543ce0abf02219da84d61d9ce2dfc47980

9 years agoam 2cc42e30: Merge "Quick compiler: Fix MIPS build" into lmp-dev
buzbee [Fri, 29 Aug 2014 17:07:52 +0000 (17:07 +0000)]
am 2cc42e30: Merge "Quick compiler: Fix MIPS build" into lmp-dev

* commit '2cc42e3029182ad6c6443376c1a4cbf9c1e6a784':
  Quick compiler: Fix MIPS build

9 years agoMerge "Quick compiler: Fix MIPS build" into lmp-dev
buzbee [Fri, 29 Aug 2014 16:59:46 +0000 (16:59 +0000)]
Merge "Quick compiler: Fix MIPS build" into lmp-dev

9 years agoQuick compiler: Fix MIPS build
buzbee [Thu, 28 Aug 2014 20:48:56 +0000 (13:48 -0700)]
Quick compiler: Fix MIPS build

b/16484538

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

(cherry-picked from commit sha 3a658077af2a931e5d7f6cd22b777c57112c19df)

Change-Id: Id726ff1ea0f5cbcc8dba6fa3aacb3fd4fc043a63

9 years agoam 8ac3356d: Avoid null pointer dereference when sending JDWP packets
Sebastien Hertz [Fri, 29 Aug 2014 12:27:00 +0000 (12:27 +0000)]
am 8ac3356d: Avoid null pointer dereference when sending JDWP packets

* commit '8ac3356db74f5e38c70406cc5f5e65a49ff41fd7':
  Avoid null pointer dereference when sending JDWP packets

9 years agoam c84b7c54: Merge "ART: Check for no gaps only when we will have an immune region"
Andreas Gampe [Fri, 29 Aug 2014 11:39:59 +0000 (11:39 +0000)]
am c84b7c54: Merge "ART: Check for no gaps only when we will have an immune region"

* commit 'c84b7c54c2251344018a4b4e78b122caf7c03b64':
  ART: Check for no gaps only when we will have an immune region

9 years agoam 519af184: Merge "Fix Mac build"
Brian Carlstrom [Fri, 29 Aug 2014 11:39:58 +0000 (11:39 +0000)]
am 519af184: Merge "Fix Mac build"

* commit '519af184ae2d1245ed73004c1a1a457a400f66d5':
  Fix Mac build

9 years agoam 9ca7d1a9: Merge "Fix incorect variable name."
Brian Carlstrom [Fri, 29 Aug 2014 11:39:16 +0000 (11:39 +0000)]
am 9ca7d1a9: Merge "Fix incorect variable name."

* commit '9ca7d1a973f463f6c53f0b9975c500370ab50ef4':
  Fix incorect variable name.

9 years agoam 4eab6436: Merge "Change /dalvik-cache to be owned by root."
Brian Carlstrom [Fri, 29 Aug 2014 11:39:15 +0000 (11:39 +0000)]
am 4eab6436: Merge "Change /dalvik-cache to be owned by root."

* commit '4eab6436fc68105363178cc5b50dd5eefb807386':
  Change /dalvik-cache to be owned by root.

9 years agoam f843a4fd: Merge "Honor the read barrier option in IRT::Get()."
Hiroshi Yamauchi [Fri, 29 Aug 2014 11:39:14 +0000 (11:39 +0000)]
am f843a4fd: Merge "Honor the read barrier option in IRT::Get()."

* commit 'f843a4fd87dd289aea75235feb27f253de90ab60':
  Honor the read barrier option in IRT::Get().

9 years agoam d84be7ed: Merge "Fix issue with Thread.setName hanging after Thread.start"
Brian Carlstrom [Fri, 29 Aug 2014 11:39:13 +0000 (11:39 +0000)]
am d84be7ed: Merge "Fix issue with Thread.setName hanging after Thread.start"

* commit 'd84be7edd31cbcb42ffaf0c6a51f9b48974552b0':
  Fix issue with Thread.setName hanging after Thread.start

9 years agoam 0ed6c6f7: Merge "Move the glibc unlimited stack hack into GetThreadStack."
Elliott Hughes [Fri, 29 Aug 2014 11:39:12 +0000 (11:39 +0000)]
am 0ed6c6f7: Merge "Move the glibc unlimited stack hack into GetThreadStack."

* commit '0ed6c6f72eea586c684cb3e2bc7037deff87d1ba':
  Move the glibc unlimited stack hack into GetThreadStack.

9 years agoam 14515d73: Merge "Fix an assert failure in art::DumpNativeStack()."
Hiroshi Yamauchi [Fri, 29 Aug 2014 11:39:11 +0000 (11:39 +0000)]
am 14515d73: Merge "Fix an assert failure in art::DumpNativeStack()."

* commit '14515d738dadf88e3e00b7dd1bd69899c4df4b91':
  Fix an assert failure in art::DumpNativeStack().

9 years agoam 79e909bc: Merge "Quick compiler: Fix MIPS build"
buzbee [Fri, 29 Aug 2014 11:39:10 +0000 (11:39 +0000)]
am 79e909bc: Merge "Quick compiler: Fix MIPS build"

* commit '79e909bc9d95c3952be85af846ba8bda344531f5':
  Quick compiler: Fix MIPS build

9 years agoam 6950ae42: Merge "Filling hole between subclass and superclass."
Mathieu Chartier [Fri, 29 Aug 2014 11:39:08 +0000 (11:39 +0000)]
am 6950ae42: Merge "Filling hole between subclass and superclass."

* commit '6950ae42dc0f64c825bf61cb13c0bfb254ad97bd':
  Filling hole between subclass and superclass.

9 years agoam 063f73c2: Merge "Prevent exception bugs in class linker"
Mathieu Chartier [Fri, 29 Aug 2014 11:39:07 +0000 (11:39 +0000)]
am 063f73c2: Merge "Prevent exception bugs in class linker"

* commit '063f73c2678f91ec0292b31b2dba0021cb911f3e':
  Prevent exception bugs in class linker

9 years agoam 83c11593: Merge "Avoid null pointer dereference when sending JDWP packets"
Sebastien Hertz [Fri, 29 Aug 2014 11:39:05 +0000 (11:39 +0000)]
am 83c11593: Merge "Avoid null pointer dereference when sending JDWP packets"

* commit '83c115930b403db2b6b38d9dcb4828e31feb792f':
  Avoid null pointer dereference when sending JDWP packets

9 years agoAvoid null pointer dereference when sending JDWP packets
Sebastien Hertz [Thu, 28 Aug 2014 16:50:36 +0000 (18:50 +0200)]
Avoid null pointer dereference when sending JDWP packets

Bug: 16218394

(cherry picked from commit 60ed7da4d193e0f90b05c4236af77d3b276c0ea4)

Change-Id: I4882b3b6bb97facb8fca4c7ece65f4c7c96c57fe

9 years agoMerge "ART: Check for no gaps only when we will have an immune region"
Andreas Gampe [Fri, 29 Aug 2014 08:21:35 +0000 (08:21 +0000)]
Merge "ART: Check for no gaps only when we will have an immune region"

9 years agoam 6a6a8965: Fix Mac build
Brian Carlstrom [Fri, 29 Aug 2014 05:46:55 +0000 (05:46 +0000)]
am 6a6a8965: Fix Mac build

* commit '6a6a896572a76e3871f5f6b2901e3bb5dec1e2f3':
  Fix Mac build

9 years agoFix Mac build
Brian Carlstrom [Fri, 29 Aug 2014 05:17:13 +0000 (22:17 -0700)]
Fix Mac build

Bug: 17000769,16875245

(cherry picked from commit debdda0262bfbcb966a89e693d933cc74eb412ac)

Change-Id: I158f090c89587f176813a15e9edad917bd134cd0

9 years agoMerge "Fix Mac build"
Brian Carlstrom [Fri, 29 Aug 2014 05:29:14 +0000 (05:29 +0000)]
Merge "Fix Mac build"

9 years agoFix Mac build
Brian Carlstrom [Fri, 29 Aug 2014 05:17:13 +0000 (22:17 -0700)]
Fix Mac build

Bug: 17000769,16875245
Change-Id: Id5ff133e0c6c56db6972a187773c7e873b7062ee

9 years agoART: Check for no gaps only when we will have an immune region
Andreas Gampe [Wed, 27 Aug 2014 18:01:09 +0000 (11:01 -0700)]
ART: Check for no gaps only when we will have an immune region

In dex2oat, for example, this is not necessary. This CL enables running
dex2oat under valgrind.

Change-Id: Ia25c7bfb4903a613c80f4685030970b2a48e24f9

9 years agoam 6c050b5f: Fix incorect variable name.
Alex Light [Fri, 29 Aug 2014 03:34:25 +0000 (03:34 +0000)]
am 6c050b5f: Fix incorect variable name.

* commit '6c050b5f782b61a16083ae35c98931a2d51d0a33':
  Fix incorect variable name.

9 years agoam 1f019816: Change /dalvik-cache to be owned by root.
Alex Light [Fri, 29 Aug 2014 03:34:19 +0000 (03:34 +0000)]
am 1f019816: Change /dalvik-cache to be owned by root.

* commit '1f0198162044d015072cbb7824f4a6688d0300ee':
  Change /dalvik-cache to be owned by root.

9 years agoFix signal chain to allow for signal() call to be used
Dave Allison [Thu, 28 Aug 2014 23:12:40 +0000 (16:12 -0700)]
Fix signal chain to allow for signal() call to be used

Bug: 17320614
Change-Id: Ia917307fb1b593644f524518e11e295b3c64be01

9 years agoFix incorect variable name.
Alex Light [Thu, 28 Aug 2014 23:23:48 +0000 (16:23 -0700)]
Fix incorect variable name.

Bug: 16875245
(cherry picked from commit 1291e9bc87edc8fde56434bc66bef0c62d44a8e6)
Change-Id: Idd0f7ac677568a53569308a67f1ad613584949a5

9 years agoChange /dalvik-cache to be owned by root.
Alex Light [Wed, 27 Aug 2014 22:37:23 +0000 (15:37 -0700)]
Change /dalvik-cache to be owned by root.

Also prune the dalvik-cache during startup if we need to generate or
relocate an image.

Bug: 17000769,16875245

(cherry picked from commit 2539613be94f599c1713627f80c7398028d1a6aa)

Change-Id: I29a70215a2207bc4e0db02ab751d32a68edf4b66

9 years agoMerge "Fix incorect variable name."
Brian Carlstrom [Thu, 28 Aug 2014 23:27:53 +0000 (23:27 +0000)]
Merge "Fix incorect variable name."

9 years agoFix incorect variable name.
Alex Light [Thu, 28 Aug 2014 23:23:48 +0000 (16:23 -0700)]
Fix incorect variable name.

Bug: 16875245
Change-Id: Idd0f7ac677568a53569308a67f1ad613584949a5

9 years agoMerge "Change /dalvik-cache to be owned by root."
Brian Carlstrom [Thu, 28 Aug 2014 23:17:01 +0000 (23:17 +0000)]
Merge "Change /dalvik-cache to be owned by root."

9 years agoMerge "Honor the read barrier option in IRT::Get()."
Hiroshi Yamauchi [Thu, 28 Aug 2014 23:02:45 +0000 (23:02 +0000)]
Merge "Honor the read barrier option in IRT::Get()."

9 years agoam ba14a447: am e6caf046: Merge "Fix issue with Thread.setName hanging after Thread...
Brian Carlstrom [Thu, 28 Aug 2014 23:02:13 +0000 (23:02 +0000)]
am ba14a447: am e6caf046: Merge "Fix issue with Thread.setName hanging after Thread.start" into lmp-dev

* commit 'ba14a447405980211cc68203fa8845a75d97e929':
  Fix issue with Thread.setName hanging after Thread.start

9 years agoam e6caf046: Merge "Fix issue with Thread.setName hanging after Thread.start" into...
Brian Carlstrom [Thu, 28 Aug 2014 22:48:35 +0000 (22:48 +0000)]
am e6caf046: Merge "Fix issue with Thread.setName hanging after Thread.start" into lmp-dev

* commit 'e6caf04639aec134f7b668bf71cd6797a4759dd9':
  Fix issue with Thread.setName hanging after Thread.start

9 years agoMerge "Fix issue with Thread.setName hanging after Thread.start"
Brian Carlstrom [Thu, 28 Aug 2014 22:44:30 +0000 (22:44 +0000)]
Merge "Fix issue with Thread.setName hanging after Thread.start"

9 years agoFix issue with Thread.setName hanging after Thread.start
Brian Carlstrom [Thu, 28 Aug 2014 06:43:46 +0000 (23:43 -0700)]
Fix issue with Thread.setName hanging after Thread.start

When suspending a thread by peer the invariant that only attached threads are
suspended must be maintained. Add a ThreadList::Contains check which requires
making this method non-static.
Add some extra thread logging.

Bug: 17302037

(cherry picked from commit 37c16453a92bbf1a47f042000318a1b60381017d)

Change-Id: I51832785d4b4b431e035318e75635f442e89a1fb

9 years agoHonor the read barrier option in IRT::Get().
Hiroshi Yamauchi [Thu, 28 Aug 2014 22:29:26 +0000 (15:29 -0700)]
Honor the read barrier option in IRT::Get().

Bug: 12687968
Change-Id: Ia69570d57542891a873213e00242953825a1458d

9 years agoMerge "Move the glibc unlimited stack hack into GetThreadStack."
Elliott Hughes [Thu, 28 Aug 2014 22:25:34 +0000 (22:25 +0000)]
Merge "Move the glibc unlimited stack hack into GetThreadStack."

9 years agoMerge "Fix issue with Thread.setName hanging after Thread.start" into lmp-dev
Brian Carlstrom [Thu, 28 Aug 2014 22:23:09 +0000 (22:23 +0000)]
Merge "Fix issue with Thread.setName hanging after Thread.start" into lmp-dev

9 years agoMerge "Fix an assert failure in art::DumpNativeStack()."
Hiroshi Yamauchi [Thu, 28 Aug 2014 22:19:37 +0000 (22:19 +0000)]
Merge "Fix an assert failure in art::DumpNativeStack()."

9 years agoFix 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

9 years agoMerge "Quick compiler: Fix MIPS build"
buzbee [Thu, 28 Aug 2014 21:11:05 +0000 (21:11 +0000)]
Merge "Quick compiler: Fix MIPS build"

9 years agoQuick 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

9 years agoChange /dalvik-cache to be owned by root.
Alex Light [Wed, 27 Aug 2014 22:37:23 +0000 (15:37 -0700)]
Change /dalvik-cache to be owned by root.

Also prune the dalvik-cache during startup if we need to generate or
relocate an image.

Bug: 17000769,16875245

Change-Id: I29a70215a2207bc4e0db02ab751d32a68edf4b66

9 years agoMerge "Filling hole between subclass and superclass."
Mathieu Chartier [Thu, 28 Aug 2014 19:15:12 +0000 (19:15 +0000)]
Merge "Filling hole between subclass and superclass."

9 years agoam 5e894e1f: am 7654123b: Merge "Ensure proxy constructor is in dex cache" into lmp-dev
Brian Carlstrom [Thu, 28 Aug 2014 19:13:30 +0000 (19:13 +0000)]
am 5e894e1f: am 7654123b: Merge "Ensure proxy constructor is in dex cache" into lmp-dev

* commit '5e894e1f84c267f1a259f0831a5cdd5d2b9d6fa3':
  Ensure proxy constructor is in dex cache

9 years agoam 7654123b: Merge "Ensure proxy constructor is in dex cache" into lmp-dev
Brian Carlstrom [Thu, 28 Aug 2014 19:01:48 +0000 (19:01 +0000)]
am 7654123b: Merge "Ensure proxy constructor is in dex cache" into lmp-dev

* commit '7654123b2fd7abeb40522dac791fa26a1364d030':
  Ensure proxy constructor is in dex cache

9 years agoam 0bf01ef1: am 679c3ced: Merge "Prevent exception bugs in class linker" into lmp-dev
Mathieu Chartier [Thu, 28 Aug 2014 19:01:29 +0000 (19:01 +0000)]
am 0bf01ef1: am 679c3ced: Merge "Prevent exception bugs in class linker" into lmp-dev

* commit '0bf01ef1c5ac31ff35cb044b3fc48c3ea90b04be':
  Prevent exception bugs in class linker

9 years agoFilling 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

9 years agoMerge "Ensure proxy constructor is in dex cache" into lmp-dev
Brian Carlstrom [Thu, 28 Aug 2014 18:54:15 +0000 (18:54 +0000)]
Merge "Ensure proxy constructor is in dex cache" into lmp-dev

9 years agoMerge "Prevent exception bugs in class linker"
Mathieu Chartier [Thu, 28 Aug 2014 18:49:08 +0000 (18:49 +0000)]
Merge "Prevent exception bugs in class linker"

9 years agoam 679c3ced: Merge "Prevent exception bugs in class linker" into lmp-dev
Mathieu Chartier [Thu, 28 Aug 2014 18:48:33 +0000 (18:48 +0000)]
am 679c3ced: Merge "Prevent exception bugs in class linker" into lmp-dev

* commit '679c3cedaf1550113104f5113b23f0fdec6175c0':
  Prevent exception bugs in class linker

9 years agoPrevent 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

9 years agoMerge "Prevent exception bugs in class linker" into lmp-dev
Mathieu Chartier [Thu, 28 Aug 2014 18:37:29 +0000 (18:37 +0000)]
Merge "Prevent exception bugs in class linker" into lmp-dev

9 years agoEnsure 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

(cherry picked from commit ae94e350f100207359b8345d8d21e78e7cfb44c4)

Change-Id: I1cfc8dac1f63b9012fa098804135be8847b1daee

9 years agoFix issue with Thread.setName hanging after Thread.start
Brian Carlstrom [Thu, 28 Aug 2014 06:43:46 +0000 (23:43 -0700)]
Fix issue with Thread.setName hanging after Thread.start

When suspending a thread by peer the invariant that only attached threads are
suspended must be maintained. Add a ThreadList::Contains check which requires
making this method non-static.
Add some extra thread logging.

Bug: 17302037
Change-Id: I89af9840e398c2ceadeb736c431dfe3be8f3ba06

9 years agoPrevent 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

Change-Id: Ic6dd3b0cce9955349176503dd7f6c3da7ab0a6f1

9 years agoMove the glibc unlimited stack hack into GetThreadStack.
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

9 years agoam aad269d7: Merge "Actually ask the pthread implementation for the stack guard size."
Elliott Hughes [Thu, 28 Aug 2014 17:21:32 +0000 (17:21 +0000)]
am aad269d7: Merge "Actually ask the pthread implementation for the stack guard size."

* commit 'aad269d708cb1dd18fe3a319a862f91f01696435':
  Actually ask the pthread implementation for the stack guard size.

9 years agoMerge "Avoid null pointer dereference when sending JDWP packets"
Sebastien Hertz [Thu, 28 Aug 2014 17:16:05 +0000 (17:16 +0000)]
Merge "Avoid null pointer dereference when sending JDWP packets"

9 years agoam 044489b4: am 5b41c2a8: Merge "Actually ask the pthread implementation for the...
Elliott Hughes [Thu, 28 Aug 2014 17:13:52 +0000 (17:13 +0000)]
am 044489b4: am 5b41c2a8: Merge "Actually ask the pthread implementation for the stack guard size." into lmp-dev

* commit '044489b463722e1377b49477b1c555f569389336':
  Actually ask the pthread implementation for the stack guard size.

9 years agoam 1b761a95: am d1e4e735: Merge "Revert "Avoid using NanoTime for compiler and verifi...
Ian Rogers [Thu, 28 Aug 2014 17:13:51 +0000 (17:13 +0000)]
am 1b761a95: am d1e4e735: Merge "Revert "Avoid using NanoTime for compiler and verifier"" into lmp-dev

* commit '1b761a957961329d845a55f2dac41200ac9b244f':
  Revert "Avoid using NanoTime for compiler and verifier"

9 years agoam dbc0ca70: Merge "Ensure proxy constructor is in dex cache"
Sebastien Hertz [Thu, 28 Aug 2014 17:07:16 +0000 (17:07 +0000)]
am dbc0ca70: Merge "Ensure proxy constructor is in dex cache"

* commit 'dbc0ca70bcee22561c2f0ab7129a7721369e9aea':
  Ensure proxy constructor is in dex cache

9 years agoam 5b41c2a8: Merge "Actually ask the pthread implementation for the stack guard size...
Elliott Hughes [Thu, 28 Aug 2014 17:00:01 +0000 (17:00 +0000)]
am 5b41c2a8: Merge "Actually ask the pthread implementation for the stack guard size." into lmp-dev

* commit '5b41c2a8f8e4a745b18685413b51c883cd993403':
  Actually ask the pthread implementation for the stack guard size.

9 years agoam d1e4e735: Merge "Revert "Avoid using NanoTime for compiler and verifier"" into...
Ian Rogers [Thu, 28 Aug 2014 17:00:00 +0000 (17:00 +0000)]
am d1e4e735: Merge "Revert "Avoid using NanoTime for compiler and verifier"" into lmp-dev

* commit 'd1e4e735cdf98e2ece7fa9a5dfeaad98d0c37cd1':
  Revert "Avoid using NanoTime for compiler and verifier"

9 years agoMerge "Actually ask the pthread implementation for the stack guard size."
Elliott Hughes [Thu, 28 Aug 2014 16:58:34 +0000 (16:58 +0000)]
Merge "Actually ask the pthread implementation for the stack guard size."

9 years agoActually 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

9 years agoAvoid null pointer dereference when sending JDWP packets
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

9 years agoMerge "Actually ask the pthread implementation for the stack guard size." into lmp-dev
Elliott Hughes [Thu, 28 Aug 2014 16:50:40 +0000 (16:50 +0000)]
Merge "Actually ask the pthread implementation for the stack guard size." into lmp-dev

9 years agoMerge "Revert "Avoid using NanoTime for compiler and verifier"" into lmp-dev
Ian Rogers [Thu, 28 Aug 2014 16:50:38 +0000 (16:50 +0000)]
Merge "Revert "Avoid using NanoTime for compiler and verifier"" into lmp-dev

9 years agoMerge "Ensure proxy constructor is in dex cache"
Sebastien Hertz [Thu, 28 Aug 2014 16:50:17 +0000 (16:50 +0000)]
Merge "Ensure proxy constructor is in dex cache"

9 years agoEnsure 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

9 years agoam 782e743e: am cd7a048c: Merge "Support booting without functioning boot.oat/art...
Brian Carlstrom [Wed, 27 Aug 2014 23:59:16 +0000 (23:59 +0000)]
am 782e743e: am cd7a048c: Merge "Support booting without functioning boot.oat/art patchoat." into lmp-dev

* commit '782e743e949240ffb97a523801f9dc5997e2b61b':
  Support booting without functioning boot.oat/art patchoat.

9 years agoam cd7a048c: Merge "Support booting without functioning boot.oat/art patchoat." into...
Brian Carlstrom [Wed, 27 Aug 2014 23:47:50 +0000 (23:47 +0000)]
am cd7a048c: Merge "Support booting without functioning boot.oat/art patchoat." into lmp-dev

* commit 'cd7a048cfac23e6ec3e1ba3ab4c1dddb322eaadf':
  Support booting without functioning boot.oat/art patchoat.

9 years agoMerge "Support booting without functioning boot.oat/art patchoat." into lmp-dev
Brian Carlstrom [Wed, 27 Aug 2014 23:40:53 +0000 (23:40 +0000)]
Merge "Support booting without functioning boot.oat/art patchoat." into lmp-dev

9 years agoActually 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.

Bug: 17111575
Change-Id: I23919b1e8aeff627a65daf57f1109bec60b196cc

9 years agoam 9c188588: Merge "Fix gcstress and gcverify test targets"
Ian Rogers [Wed, 27 Aug 2014 23:30:28 +0000 (23:30 +0000)]
am 9c188588: Merge "Fix gcstress and gcverify test targets"

* commit '9c18858899738f79e75b5a31a96b91c8bfa8bdd7':
  Fix gcstress and gcverify test targets

9 years agoMerge "Fix gcstress and gcverify test targets"
Ian Rogers [Wed, 27 Aug 2014 23:12:35 +0000 (23:12 +0000)]
Merge "Fix gcstress and gcverify test targets"

9 years agoFix 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

9 years agoam 2602e205: am 074c8c6a: Merge "Avoid using NanoTime for compiler and verifier"...
Mathieu Chartier [Wed, 27 Aug 2014 22:06:02 +0000 (22:06 +0000)]
am 2602e205: am 074c8c6a: Merge "Avoid using NanoTime for compiler and verifier" into lmp-dev

* commit '2602e205729fe90cffff9adeb25d7f65a59bdf21':
  Avoid using NanoTime for compiler and verifier

9 years agoam 074c8c6a: Merge "Avoid using NanoTime for compiler and verifier" into lmp-dev
Mathieu Chartier [Wed, 27 Aug 2014 21:52:49 +0000 (21:52 +0000)]
am 074c8c6a: Merge "Avoid using NanoTime for compiler and verifier" into lmp-dev

* commit '074c8c6aac3bd42a173befd1a4eafd479ef12dc9':
  Avoid using NanoTime for compiler and verifier

9 years agoam 70644461: Merge "ART: Change temporaries to positive names"
Bill Buzbee [Wed, 27 Aug 2014 21:52:37 +0000 (21:52 +0000)]
am 70644461: Merge "ART: Change temporaries to positive names"

* commit '70644461909a68eb5cd032027ae0eb528143d99c':
  ART: Change temporaries to positive names

9 years agoRevert "Avoid using NanoTime for compiler and verifier"
Ian Rogers [Wed, 27 Aug 2014 21:46:57 +0000 (21:46 +0000)]
Revert "Avoid using NanoTime for compiler and verifier"

This reverts commit c89e6edbdce97c7d199b54bf63aed7ea01ebf1ff.

Change-Id: Id3b89121a19e64bf3c457c39b375f3d3c0fcc579

9 years agoMerge "Avoid using NanoTime for compiler and verifier" into lmp-dev
Mathieu Chartier [Wed, 27 Aug 2014 21:46:42 +0000 (21:46 +0000)]
Merge "Avoid using NanoTime for compiler and verifier" into lmp-dev