Description[WeakMemoryCache] Field-Trial: Make Reference from MemoryCache to Resource weak
This CL adds two RuntimeEnabledFeatures controlled by Field Trials to evaluate
their feasibility:
- |WeakMemoryCache| switches whether the references from MemoryCache to
Resource are weak or not.
A corresponding flag |enable-weak-memorycache| is added to chrome://flags.
Null checks are added to MemoryCache to handle weak pointers.
- |DoNotUnlockSharedBuffer| skips SharedBuffer::unlock() in Resource::unlock().
This CL will be reverted before going to stable (or even before going to beta).
BUG=603462
Committed: https://crrev.com/e46449c9825bf0891d9b2ba9d0bcaa6ce6cc959f
Cr-Commit-Position: refs/heads/master@{#397312}
Patch Set 1 #Patch Set 2 : Weak=True #Patch Set 3 : #Patch Set 4 : #Patch Set 5 : #Patch Set 6 : #Patch Set 7 : #Patch Set 8 : Do not enable features on tests. #Patch Set 9 : Rebase. #Patch Set 10 : Rebase #Patch Set 11 : Rebase. #
Total comments: 4
Patch Set 12 : Add DCHECK #Patch Set 13 : Rebase. #Messages
Total messages: 69 (33 generated)
|