summaryrefslogtreecommitdiff
path: root/runtime/mirror/class-alloc-inl.h
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2020-01-07 17:05:42 +0000
committerTreehugger Robot <treehugger-gerrit@google.com>2020-01-07 19:55:17 +0000
commit93be70effba70b78596fc4bda6b583615c3b6d0c (patch)
treeda679b13dee39a03f4854c53c0edcff4dddea0e9 /runtime/mirror/class-alloc-inl.h
parent55d6fa4c352a1fadbd21b8d8e0929833e547b9e5 (diff)
Revert^2 "Make tests 1995, 2001, & 2005 less likely to OOME."
Test 2005 works by starting a bunch of threads, collecting all threads using the thread-group, suspending them and then performing redefinition work. Unfortunately due to the API there is a race between figuring out how many threads their are and getting them with enumerate. In cases where enumerate is called with a larger array then needed, due to some threads finishing ('run' returning) the enumerate doesn't fill in some of the array. This meant we called SuspendThreadList with 'null', which is interpreted as meaning the current thread. This leads to a deadlock. This reverts commit 01a09bfd3839401c32d537b9a03b7991c4ffd20c. Bug: 147190668 Bug: 147278184 Test: ./test.py --host Reason for revert: Fixed issue causing occasional deadlock in test 2005 Change-Id: I01fb9f38c4516730821106ac291836eb61534a73
Diffstat (limited to 'runtime/mirror/class-alloc-inl.h')
0 files changed, 0 insertions, 0 deletions