Chromium Code Reviews
Descriptionandroid: Move PendingSpawnQueue into ChildConnectionAllocator
This simplifies locking between allocator and queue:
{allocate or enqueue} and {free and dequeue} need to be atomic
operations, and this was previously achieved by exposing the lock in
PendingSpawnQueue outside of its class. See
https://codereview.chromium.org/1725643003
By moving PendingSpawnQueue, can get rid of the lock in Queue
entirely and just use the Allocator lock instead.
Everything else is more or less fallout from this change:
* Pass entire SpawnData to allocate call so it may be enqueued
* Add isForWarmup to SpawnData; warmup allocations are never queued
* Rename PendingSpawnData to SpawnData since it's no longer just for
pending allocations
* Add comments
* clang-format made some questionable format choices
BUG=689758
Review-Url: https://codereview.chromium.org/2689673007
Cr-Commit-Position: refs/heads/master@{#450201}
Committed: https://chromium.googlesource.com/chromium/src/+/22b31729529579fea43962f4bd0d20a760d027f5
Patch Set 1 #Patch Set 2 : fix #Patch Set 3 : complete #Patch Set 4 : comment #
Total comments: 4
Patch Set 5 : review #Messages
Total messages: 16 (11 generated)
|