Chromium Code Reviews| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 92 return totalSize; | 92 return totalSize; |
| 93 } | 93 } |
| 94 | 94 |
| 95 static void decommitFreeableMemory(); | 95 static void decommitFreeableMemory(); |
| 96 | 96 |
| 97 static void reportMemoryUsageHistogram(); | 97 static void reportMemoryUsageHistogram(); |
| 98 | 98 |
| 99 static void dumpMemoryStats(PartitionStatsDumper*); | 99 static void dumpMemoryStats(PartitionStatsDumper*); |
| 100 | 100 |
| 101 private: | 101 private: |
| 102 static int s_lock; | |
|
tkent
2015/07/14 00:42:36
let's give more descriptive name. e.g. s_initiali
| |
| 102 static bool s_initialized; | 103 static bool s_initialized; |
| 103 static PartitionAllocatorGeneric m_fastMallocAllocator; | 104 static PartitionAllocatorGeneric m_fastMallocAllocator; |
| 104 static PartitionAllocatorGeneric m_bufferAllocator; | 105 static PartitionAllocatorGeneric m_bufferAllocator; |
| 105 static SizeSpecificPartitionAllocator<3328> m_objectModelAllocator; | 106 static SizeSpecificPartitionAllocator<3328> m_objectModelAllocator; |
| 106 static SizeSpecificPartitionAllocator<1024> m_layoutAllocator; | 107 static SizeSpecificPartitionAllocator<1024> m_layoutAllocator; |
| 107 static HistogramEnumerationFunction m_histogramEnumeration; | 108 static HistogramEnumerationFunction m_histogramEnumeration; |
| 108 }; | 109 }; |
| 109 | 110 |
| 110 } // namespace WTF | 111 } // namespace WTF |
| 111 | 112 |
| 112 #endif // Partitions_h | 113 #endif // Partitions_h |
| OLD | NEW |