Changeset 34755 in webkit for trunk/JavaScriptCore/wtf/FastMalloc.cpp
- Timestamp:
- Jun 23, 2008, 10:34:21 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/FastMalloc.cpp
r34028 r34755 865 865 void* objects; // Linked list of free objects 866 866 unsigned int free : 1; // Is the span free 867 #ifndef NO_TCMALLOC_SAMPLES 867 868 unsigned int sample : 1; // Sampled object? 869 #endif 868 870 unsigned int sizeclass : 8; // Size-class for small objects (or 0) 869 871 unsigned int refcount : 11; // Number of non-free objects … … 1287 1289 ASSERT(GetDescriptor(span->start + span->length - 1) == span); 1288 1290 span->sizeclass = 0; 1291 #ifndef NO_TCMALLOC_SAMPLES 1289 1292 span->sample = 0; 1293 #endif 1290 1294 1291 1295 // Coalesce -- we guarantee that "p" != 0, so no bounds checking … … 2953 2957 } 2954 2958 if (cl != 0) { 2959 #ifndef NO_TCMALLOC_SAMPLES 2955 2960 ASSERT(!pageheap->GetDescriptor(p)->sample); 2961 #endif 2956 2962 TCMalloc_ThreadCache* heap = TCMalloc_ThreadCache::GetCacheIfPresent(); 2957 2963 if (heap != NULL) { … … 2966 2972 ASSERT(reinterpret_cast<uintptr_t>(ptr) % kPageSize == 0); 2967 2973 ASSERT(span != NULL && span->start == p); 2974 #ifndef NO_TCMALLOC_SAMPLES 2968 2975 if (span->sample) { 2969 2976 DLL_Remove(span); … … 2971 2978 span->objects = NULL; 2972 2979 } 2980 #endif 2973 2981 pageheap->Delete(span); 2974 2982 }
Note:
See TracChangeset
for help on using the changeset viewer.