diff options
author | 2015-09-02 16:16:58 -0700 | |
---|---|---|
committer | 2015-09-03 10:45:21 -0700 | |
commit | fdbd13c7af91a042eda753e436eeebf0e1937250 (patch) | |
tree | c1fb370c9a4a30b9e589802c9c75dcc4919fc6e9 /runtime/lambda/box_table.h | |
parent | fe3879e6011f629d0dd6b04fab00b9496bd4ea08 (diff) |
Some fixes for the CC collector.
- Remove a DCHECK in DisableMarkingCheckpoint, which caused
occasional (false) failures.
- Check the thread-local GetWeakRefAccessEnabled in boxed lambdas weak
access.
- Add missing BroadcastForNewAllocationRecords and
BroadcastForNewWeakBoxedLambdas. The lack of the former caused
occasional deadlocks in the ddmc test.
- Remove the 'ensure system weaks disallowed' calls, which weren't
useful and dead.
Bug: 12687968
Change-Id: I33850c8d12e6e1a3aed1c2bb18eba263cbab76e8
Diffstat (limited to 'runtime/lambda/box_table.h')
-rw-r--r-- | runtime/lambda/box_table.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lambda/box_table.h b/runtime/lambda/box_table.h index 312d811b9b..9ffda6658f 100644 --- a/runtime/lambda/box_table.h +++ b/runtime/lambda/box_table.h @@ -67,8 +67,8 @@ class BoxTable FINAL { void AllowNewWeakBoxedLambdas() REQUIRES(!Locks::lambda_table_lock_); - // GC callback: Verify that the state is now blocking anyone from touching the map. - void EnsureNewWeakBoxedLambdasDisallowed() + // GC callback: Unblock any readers who have been queued waiting to touch the map. + void BroadcastForNewWeakBoxedLambdas() REQUIRES(!Locks::lambda_table_lock_); BoxTable(); |