[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.15.1-1414-gc69ee75

hausmann at webkit.org hausmann at webkit.org
Thu Oct 29 20:31:47 UTC 2009


The following commit has been merged in the webkit-1.1 branch:
commit b2e2c9ce241b1ba616359bf7470d3e11c1c82251
Author: hausmann at webkit.org <hausmann at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Sep 22 10:30:55 2009 +0000

    Fix major memory leak in JavaScriptCore RegisterFile on Windows CE
    
    Patch by Joerg Bornemann <joerg.bornemann at nokia.com> on 2009-09-22
    Reviewed by Simon Hausmann.
    
    https://bugs.webkit.org/show_bug.cgi?id=29367
    
    On Widows CE we must decommit all committed pages before we release
    them. See VirtualFree documentation.
    Desktop Windows behaves much smoother in this situation.
    
    * interpreter/RegisterFile.cpp:
    (JSC::RegisterFile::~RegisterFile):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48623 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog
index 397638f..623f643 100644
--- a/JavaScriptCore/ChangeLog
+++ b/JavaScriptCore/ChangeLog
@@ -1,3 +1,18 @@
+2009-09-22  Joerg Bornemann  <joerg.bornemann at nokia.com>
+
+        Reviewed by Simon Hausmann.
+
+        Fix major memory leak in JavaScriptCore RegisterFile on Windows CE
+
+        https://bugs.webkit.org/show_bug.cgi?id=29367
+
+        On Widows CE we must decommit all committed pages before we release
+        them. See VirtualFree documentation.
+        Desktop Windows behaves much smoother in this situation.
+
+        * interpreter/RegisterFile.cpp:
+        (JSC::RegisterFile::~RegisterFile):
+
 2009-09-21  Greg Bolsinga  <bolsinga at apple.com>
 
         Reviewed by Simon Fraser & Sam Weinig.
diff --git a/JavaScriptCore/interpreter/RegisterFile.cpp b/JavaScriptCore/interpreter/RegisterFile.cpp
index 06ddefc..5424199 100644
--- a/JavaScriptCore/interpreter/RegisterFile.cpp
+++ b/JavaScriptCore/interpreter/RegisterFile.cpp
@@ -36,6 +36,9 @@ RegisterFile::~RegisterFile()
 #if HAVE(MMAP)
     munmap(m_buffer, ((m_max - m_start) + m_maxGlobals) * sizeof(Register));
 #elif HAVE(VIRTUALALLOC)
+#if PLATFORM(WINCE)
+    VirtualFree(m_buffer, DWORD(m_commitEnd) - DWORD(m_buffer), MEM_DECOMMIT);
+#endif
     VirtualFree(m_buffer, 0, MEM_RELEASE);
 #else
     fastFree(m_buffer);

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list