| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 // next extent (if there is one) at the very start of a superpage's metadata | 247 // next extent (if there is one) at the very start of a superpage's metadata |
| 248 // area. | 248 // area. |
| 249 struct PartitionSuperPageExtentEntry { | 249 struct PartitionSuperPageExtentEntry { |
| 250 PartitionRootBase* root; | 250 PartitionRootBase* root; |
| 251 char* superPageBase; | 251 char* superPageBase; |
| 252 char* superPagesEnd; | 252 char* superPagesEnd; |
| 253 PartitionSuperPageExtentEntry* next; | 253 PartitionSuperPageExtentEntry* next; |
| 254 }; | 254 }; |
| 255 | 255 |
| 256 struct WTF_EXPORT PartitionRootBase { | 256 struct WTF_EXPORT PartitionRootBase { |
| 257 size_t totalSizeOfCommittedPages; |
| 257 size_t totalSizeOfSuperPages; | 258 size_t totalSizeOfSuperPages; |
| 258 unsigned numBuckets; | 259 unsigned numBuckets; |
| 259 unsigned maxAllocation; | 260 unsigned maxAllocation; |
| 260 bool initialized; | 261 bool initialized; |
| 261 char* nextSuperPage; | 262 char* nextSuperPage; |
| 262 char* nextPartitionPage; | 263 char* nextPartitionPage; |
| 263 char* nextPartitionPageEnd; | 264 char* nextPartitionPageEnd; |
| 264 PartitionSuperPageExtentEntry* currentExtent; | 265 PartitionSuperPageExtentEntry* currentExtent; |
| 265 PartitionSuperPageExtentEntry* firstExtent; | 266 PartitionSuperPageExtentEntry* firstExtent; |
| 266 PartitionPage* globalEmptyPageRing[kMaxFreeableSpans]; | 267 PartitionPage* globalEmptyPageRing[kMaxFreeableSpans]; |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 using WTF::partitionAlloc; | 663 using WTF::partitionAlloc; |
| 663 using WTF::partitionFree; | 664 using WTF::partitionFree; |
| 664 using WTF::partitionAllocGeneric; | 665 using WTF::partitionAllocGeneric; |
| 665 using WTF::partitionFreeGeneric; | 666 using WTF::partitionFreeGeneric; |
| 666 using WTF::partitionReallocGeneric; | 667 using WTF::partitionReallocGeneric; |
| 667 using WTF::partitionAllocActualSize; | 668 using WTF::partitionAllocActualSize; |
| 668 using WTF::partitionAllocSupportsGetSize; | 669 using WTF::partitionAllocSupportsGetSize; |
| 669 using WTF::partitionAllocGetSize; | 670 using WTF::partitionAllocGetSize; |
| 670 | 671 |
| 671 #endif // WTF_PartitionAlloc_h | 672 #endif // WTF_PartitionAlloc_h |
| OLD | NEW |