RESOLVED FIXED146685
[Win] Add memory pressure handler.
https://bugs.webkit.org/show_bug.cgi?id=146685
Summary [Win] Add memory pressure handler.
peavo
Reported 2015-07-07 10:46:04 PDT
Windows does not yet have a memory pressure handler implementation.
Attachments
Patch (11.16 KB, patch)
2015-07-07 11:10 PDT, peavo
no flags
Patch (11.91 KB, patch)
2015-07-08 14:04 PDT, peavo
no flags
peavo
Comment 1 2015-07-07 11:10:29 PDT
Alex Christensen
Comment 2 2015-07-07 11:39:48 PDT
Comment on attachment 256309 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=256309&action=review > Source/WebCore/platform/win/MemoryPressureHandlerWin.cpp:85 > + // Only install a memory check timer for Win32, since Win64 has much more memory to play with. This is not necessarily true. 64-bit windows can be installed on systems with 1GB of memory, for example. I don't think the memory pressure handler should be 32-bit only. > Source/WebCore/platform/win/MemoryPressureHandlerWin.cpp:88 > + memCheckTimer()->startRepeating(60.0); This just checks the memory every minute, right?
peavo
Comment 3 2015-07-07 12:53:06 PDT
(In reply to comment #2) > Thanks for reviewing :) > > Source/WebCore/platform/win/MemoryPressureHandlerWin.cpp:85 > > + // Only install a memory check timer for Win32, since Win64 has much more memory to play with. > > This is not necessarily true. 64-bit windows can be installed on systems > with 1GB of memory, for example. I don't think the memory pressure handler > should be 32-bit only. > I agree, I will update the patch. > > Source/WebCore/platform/win/MemoryPressureHandlerWin.cpp:88 > > + memCheckTimer()->startRepeating(60.0); > > This just checks the memory every minute, right? Yes.
peavo
Comment 4 2015-07-08 14:04:32 PDT
Brent Fulgham
Comment 5 2015-07-09 09:33:39 PDT
Comment on attachment 256404 [details] Patch Very nice! r=me.
peavo
Comment 6 2015-07-09 10:08:15 PDT
(In reply to comment #5) > Comment on attachment 256404 [details] > Patch > > Very nice! r=me. Thanks!
WebKit Commit Bot
Comment 7 2015-07-09 13:38:55 PDT
Comment on attachment 256404 [details] Patch Clearing flags on attachment: 256404 Committed r186607: <http://trac.webkit.org/changeset/186607>
WebKit Commit Bot
Comment 8 2015-07-09 13:38:59 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.