OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 size_t totalSizeOfSuperPages; | 258 size_t totalSizeOfSuperPages; |
259 unsigned numBuckets; | 259 unsigned numBuckets; |
260 unsigned maxAllocation; | 260 unsigned maxAllocation; |
261 bool initialized; | 261 bool initialized; |
262 char* nextSuperPage; | 262 char* nextSuperPage; |
263 char* nextPartitionPage; | 263 char* nextPartitionPage; |
264 char* nextPartitionPageEnd; | 264 char* nextPartitionPageEnd; |
265 PartitionSuperPageExtentEntry* currentExtent; | 265 PartitionSuperPageExtentEntry* currentExtent; |
266 PartitionSuperPageExtentEntry* firstExtent; | 266 PartitionSuperPageExtentEntry* firstExtent; |
267 PartitionPage* globalEmptyPageRing[kMaxFreeableSpans]; | 267 PartitionPage* globalEmptyPageRing[kMaxFreeableSpans]; |
268 size_t globalEmptyPageRingIndex; | 268 int16_t globalEmptyPageRingIndex; |
269 uintptr_t invertedSelf; | 269 uintptr_t invertedSelf; |
270 | 270 |
271 static int gInitializedLock; | 271 static int gInitializedLock; |
272 static bool gInitialized; | 272 static bool gInitialized; |
273 static PartitionPage gSeedPage; | 273 static PartitionPage gSeedPage; |
274 static PartitionBucket gPagedBucket; | 274 static PartitionBucket gPagedBucket; |
275 }; | 275 }; |
276 | 276 |
277 // Never instantiate a PartitionRoot directly, instead use PartitionAlloc. | 277 // Never instantiate a PartitionRoot directly, instead use PartitionAlloc. |
278 struct PartitionRoot : public PartitionRootBase { | 278 struct PartitionRoot : public PartitionRootBase { |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 using WTF::partitionAlloc; | 663 using WTF::partitionAlloc; |
664 using WTF::partitionFree; | 664 using WTF::partitionFree; |
665 using WTF::partitionAllocGeneric; | 665 using WTF::partitionAllocGeneric; |
666 using WTF::partitionFreeGeneric; | 666 using WTF::partitionFreeGeneric; |
667 using WTF::partitionReallocGeneric; | 667 using WTF::partitionReallocGeneric; |
668 using WTF::partitionAllocActualSize; | 668 using WTF::partitionAllocActualSize; |
669 using WTF::partitionAllocSupportsGetSize; | 669 using WTF::partitionAllocSupportsGetSize; |
670 using WTF::partitionAllocGetSize; | 670 using WTF::partitionAllocGetSize; |
671 | 671 |
672 #endif // WTF_PartitionAlloc_h | 672 #endif // WTF_PartitionAlloc_h |
OLD | NEW |