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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // - Per-object bucketing (instead of per-size) is mostly available at the API, | 82 // - Per-object bucketing (instead of per-size) is mostly available at the API, |
83 // but not used yet. | 83 // but not used yet. |
84 // - No randomness of freelist entries or bucket position. | 84 // - No randomness of freelist entries or bucket position. |
85 // - Better checking for wild pointers in free(). | 85 // - Better checking for wild pointers in free(). |
86 // - Better freelist masking function to guarantee fault on 32-bit. | 86 // - Better freelist masking function to guarantee fault on 32-bit. |
87 | 87 |
88 #include "wtf/Assertions.h" | 88 #include "wtf/Assertions.h" |
89 #include "wtf/BitwiseOperations.h" | 89 #include "wtf/BitwiseOperations.h" |
90 #include "wtf/ByteSwap.h" | 90 #include "wtf/ByteSwap.h" |
91 #include "wtf/CPU.h" | 91 #include "wtf/CPU.h" |
92 #include "wtf/PageAllocator.h" | |
93 #include "wtf/SpinLock.h" | 92 #include "wtf/SpinLock.h" |
94 #include "wtf/TypeTraits.h" | 93 #include "wtf/TypeTraits.h" |
| 94 #include "wtf/allocator/PageAllocator.h" |
95 | 95 |
96 #include <limits.h> | 96 #include <limits.h> |
97 | 97 |
98 #if defined(MEMORY_TOOL_REPLACES_ALLOCATOR) | 98 #if defined(MEMORY_TOOL_REPLACES_ALLOCATOR) |
99 #include <stdlib.h> | 99 #include <stdlib.h> |
100 #endif | 100 #endif |
101 | 101 |
102 #if ENABLE(ASSERT) | 102 #if ENABLE(ASSERT) |
103 #include <string.h> | 103 #include <string.h> |
104 #endif | 104 #endif |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 using WTF::partitionAlloc; | 869 using WTF::partitionAlloc; |
870 using WTF::partitionFree; | 870 using WTF::partitionFree; |
871 using WTF::partitionAllocGeneric; | 871 using WTF::partitionAllocGeneric; |
872 using WTF::partitionFreeGeneric; | 872 using WTF::partitionFreeGeneric; |
873 using WTF::partitionReallocGeneric; | 873 using WTF::partitionReallocGeneric; |
874 using WTF::partitionAllocActualSize; | 874 using WTF::partitionAllocActualSize; |
875 using WTF::partitionAllocSupportsGetSize; | 875 using WTF::partitionAllocSupportsGetSize; |
876 using WTF::partitionAllocGetSize; | 876 using WTF::partitionAllocGetSize; |
877 | 877 |
878 #endif // WTF_PartitionAlloc_h | 878 #endif // WTF_PartitionAlloc_h |
OLD | NEW |