DescriptionRemove SharedBuffer::unlock() and keep Resource's SharedBuffer always locked
This CL makes Resource's SharedBuffer always locked and never unlocked by
removing SharedBuffer::unlock(), and
propagates the change by removing the following:
- Resource::lock(), unlock() (does nothing and returns always true)
- Resource::isPurgeable() (always false)
- Resource::isSafeToUnlock() (no longer called)
- SharedBuffer::lock(), unlock(), isLocked() (always true)
- PurgeableVector::lock(), unlock(), isLocked() (always true)
- Unit tests related to SharedBuffer/PurgeableVector::lock()/unlock() from
PurgeableVectorTest and ResourceTest.
After this CL, the SharedBuffer is still allocated as discardable memory.
The SharedBuffer will be turned into non-discardable by
https://codereview.chromium.org/2247073007/.
BUG=603791, 569162
Committed: https://crrev.com/18d61e56cf1b2c1deaa0dec1a4cda1f1fd825f57
Cr-Commit-Position: refs/heads/master@{#414005}
Patch Set 1 #Patch Set 2 : Remove NoCrash test, because weno longer lock Resource #Patch Set 3 : Propagate changes #Patch Set 4 : Fix #Patch Set 5 : Comments #Patch Set 6 : Rebase #
Total comments: 5
Patch Set 7 : Fix #Patch Set 8 : Remove Resource::unlock() #Patch Set 9 : Remove Resource::isSafeToUnlock() #
Total comments: 2
Patch Set 10 : Use hasClientsOrObservers() for live_size #Messages
Total messages: 28 (12 generated)
|