[OS/2] Bug 404407: improve memory consumption on OS/2. Part 1, call heapmin after cycle collection, r=dbaron

This commit is contained in:
mozilla@weilbacher.org 2008-01-09 13:14:08 -08:00
Родитель c593efcead
Коммит 7ee592b381
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -2139,6 +2139,13 @@ nsCycleCollector::Collect(PRUint32 aTryCollections)
mCollectionInProgress = PR_FALSE;
#ifdef XP_OS2
// Now that the cycle collector has freed some memory, we can try to
// force the C library to give back as much memory to the system as
// possible.
_heapmin();
#endif
#ifdef COLLECT_TIME_DEBUG
printf("cc: Collect() took %lldms\n",
(PR_Now() - start) / PR_USEC_PER_MSEC);