Changeset 41660 in webkit for trunk/JavaScriptCore/wtf/FastMalloc.cpp
- Timestamp:
- Mar 12, 2009, 8:33:27 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/FastMalloc.cpp
r41443 r41660 95 95 #endif 96 96 97 #define TCMALLOC_TRACK_DECOMMITED_SPANS (HAVE(VIRTUALALLOC) )97 #define TCMALLOC_TRACK_DECOMMITED_SPANS (HAVE(VIRTUALALLOC) || HAVE(MADV_FREE_REUSE)) 98 98 99 99 #ifndef NDEBUG … … 1404 1404 static ALWAYS_INLINE void mergeDecommittedStates(Span* destination, Span* other) 1405 1405 { 1406 if (other->decommitted) 1406 if (destination->decommitted && !other->decommitted) { 1407 TCMalloc_SystemRelease(reinterpret_cast<void*>(other->start << kPageShift), 1408 static_cast<size_t>(other->length << kPageShift)); 1409 } else if (other->decommitted && !destination->decommitted) { 1410 TCMalloc_SystemRelease(reinterpret_cast<void*>(destination->start << kPageShift), 1411 static_cast<size_t>(destination->length << kPageShift)); 1407 1412 destination->decommitted = true; 1413 } 1408 1414 } 1409 1415 #endif
Note:
See TracChangeset
for help on using the changeset viewer.