Fixing comment in nsMemoryImpl.cpp
authorDoug Turner <dougt@dougt.org>
Tue, 01 Dec 2009 12:29:55 -0800
changeset 35396 e2f77caaa367f905ec5b3820289336da2eaea0d5
parent 35395 410468c50ca16de043a0558babd73fc6e26386c8
child 35397 f91a016416d11272380828cc0b20c97a7c8cf851
push idunknown
push userunknown
push dateunknown
milestone1.9.3a1pre
Fixing comment in nsMemoryImpl.cpp
xpcom/base/nsMemoryImpl.cpp
--- a/xpcom/base/nsMemoryImpl.cpp
+++ b/xpcom/base/nsMemoryImpl.cpp
@@ -124,18 +124,16 @@ nsMemoryImpl::IsLowMemory(PRBool *result
     *result = PR_FALSE;
 #elif defined(XP_WIN)
     MEMORYSTATUSEX stat;
     stat.dwLength = sizeof stat;
     GlobalMemoryStatusEx(&stat);
     *result = (stat.ullAvailPageFile < kRequiredMemory) &&
         ((float)stat.ullAvailPageFile / stat.ullTotalPageFile) < 0.1;
 #elif defined(NS_OSSO)
-    // We see about 1/4 of the cost by caching the fd and using
-    // rewind.  XXX leaking this fd.
     static int osso_highmark_fd = -1;
     if (osso_highmark_fd == -1) {
         osso_highmark_fd = open (kHighMark, O_RDONLY);
 
         if (osso_highmark_fd == -1) {
             NS_ERROR("can't find the osso highmark file");    
             *result = PR_FALSE;
             return NS_OK;