We're not poking libcache to purge caches in response to fake memory pressure.
Created attachment 283446 [details] Patch
Comment on attachment 283446 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=283446&action=review > Source/WebCore/platform/MemoryPressureHandler.h:146 > + bool m_isFakeMemoryPressure { false }; What is the official name, "fake" or "simulated"?
Comment on attachment 283446 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=283446&action=review >> Source/WebCore/platform/MemoryPressureHandler.h:146 >> + bool m_isFakeMemoryPressure { false }; > > What is the official name, "fake" or "simulated"? +1 for simulated
"simulated" sounds nice, let's call it that instead!
Comment on attachment 283446 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=283446&action=review R=me with comments. >>> Source/WebCore/platform/MemoryPressureHandler.h:146 >>> + bool m_isFakeMemoryPressure { false }; >> >> What is the official name, "fake" or "simulated"? > > +1 for simulated Let's rename then. > Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm:142 > + m_isFakeMemoryPressure = true; Can we use WTF TemporaryChange?
(In reply to comment #5) > Comment on attachment 283446 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=283446&action=review > > R=me with comments. Thanks! > > Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm:142 > > + m_isFakeMemoryPressure = true; > > Can we use WTF TemporaryChange? Unfortunately not, since the reset to false happens in a block that gets called on next runloop.
Created attachment 283487 [details] Patch for landing
Comment on attachment 283487 [details] Patch for landing Clearing flags on attachment: 283487 Committed r203149: <http://trac.webkit.org/changeset/203149>
All reviewed patches have been landed. Closing bug.
<rdar://problem/25479969>