Changeset 34028 in webkit for trunk/JavaScriptCore
- Timestamp:
- May 22, 2008, 11:40:38 AM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r34024 r34028 1 2008-05-22 David Kilzer <[email protected]> 2 3 <rdar://problem/5954233> Add method to release free memory from FastMalloc 4 5 Patch suggested by Mark Rowe. Rubber-stamped by Maciej. 6 7 * JavaScriptCore.exp: Export _releaseFastMallocFreeMemory. 8 * wtf/FastMalloc.cpp: 9 (WTF::TCMallocStats::): Added releaseFastMallocFreeMemory() for both 10 system malloc and FastMalloc code paths. 11 * wtf/FastMalloc.h: Define releaseFastMallocFreeMemory(). 12 1 13 2008-05-22 Oliver Hunt <[email protected]> 2 14 -
trunk/JavaScriptCore/JavaScriptCore.exp
r34003 r34028 307 307 _jscore_fastmalloc_introspection 308 308 _kJSClassDefinitionEmpty 309 _releaseFastMallocFreeMemory -
trunk/JavaScriptCore/wtf/FastMalloc.cpp
r31049 r34028 197 197 } // namespace WTF 198 198 199 extern "C" { 200 void releaseFastMallocFreeMemory() { } 201 } 202 199 203 #if PLATFORM(DARWIN) 200 204 // This symbol is present in the JavaScriptCore exports file even when FastMalloc is disabled. … … 3624 3628 } 3625 3629 3630 extern "C" { 3631 void releaseFastMallocFreeMemory() 3632 { 3633 SpinLockHolder h(&pageheap_lock); 3634 pageheap->ReleaseFreePages(); 3635 } 3636 } 3637 3626 3638 #endif 3627 3639 -
trunk/JavaScriptCore/wtf/FastMalloc.h
r27712 r34028 71 71 WTF_PRIVATE_INLINE void* operator new[](size_t s) { return fastMalloc(s); } 72 72 WTF_PRIVATE_INLINE void operator delete[](void* p) { fastFree(p); } 73 74 extern "C" { 75 void releaseFastMallocFreeMemory(); 76 } 73 77 #endif 74 78
Note:
See TracChangeset
for help on using the changeset viewer.