The JSString cache is a luxury for fast mapping from StringImpl* to JSString*. We should drop it under memory pressure.
Created attachment 230779 [details] Patch
Comment on attachment 230779 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=230779&action=review > Source/WebCore/platform/MemoryPressureHandler.cpp:112 > + { > + ReliefLogger log("Clearing JS string cache"); > + JSDOMWindow::commonVM().stringCache.clear(); > + } We really need to find a way for this to be less of a layering violation haven.
Comment on attachment 230779 [details] Patch Clearing flags on attachment: 230779 Committed r168235: <http://trac.webkit.org/changeset/168235>
All reviewed patches have been landed. Closing bug.