Description[heap] Introduce hard limit for external memory
We introduce, similar to regular heap, a hard and a soft limit for external memory.
- Upon reaching the hard limit we do a full GC. The hard limit is a a delta from
the size of external memory at last GC.
- Upon reaching the soft limit we start incremental marking. Each further
AdjustAmountOfExternalMemory will trigger a marking step. The step size depends
on how far we are away from the hard limit. Further away means we have still
some wiggle room and the step will be small. Being closer to the hard limit
makes it more likely to trigger a full GC, so we increase the step size.
BUG=chromium:621829
Committed: https://crrev.com/ce66eec800e7329b0967b0f8eec7db05b2b22218
Cr-Commit-Position: refs/heads/master@{#39133}
Patch Set 1 #Patch Set 2 : Do a memory reducing GC when reaching the hard limit #Patch Set 3 : Force memory #Patch Set 4 : ... #Patch Set 5 : Addressed offline comments #Patch Set 6 : Delta #Patch Set 7 : Make it a member on heap so that tests can use the hard limit #Patch Set 8 : Fix compilation #
Messages
Total messages: 24 (18 generated)
|