| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 #if !ENABLE(OILPAN) | 77 #if !ENABLE(OILPAN) |
| 78 (void) m_nodeAllocator.shutdown(); | 78 (void) m_nodeAllocator.shutdown(); |
| 79 #endif | 79 #endif |
| 80 (void) m_bufferAllocator.shutdown(); | 80 (void) m_bufferAllocator.shutdown(); |
| 81 (void) m_fastMallocAllocator.shutdown(); | 81 (void) m_fastMallocAllocator.shutdown(); |
| 82 } | 82 } |
| 83 } | 83 } |
| 84 | 84 |
| 85 void Partitions::decommitFreeableMemory() | 85 void Partitions::decommitFreeableMemory() |
| 86 { | 86 { |
| 87 RELEASE_ASSERT(isMainThread()); | 87 CHECK(isMainThread()); |
| 88 if (!s_initialized) | 88 if (!s_initialized) |
| 89 return; | 89 return; |
| 90 | 90 |
| 91 partitionPurgeMemoryGeneric(bufferPartition(), PartitionPurgeDecommitEmptyPa
ges); | 91 partitionPurgeMemoryGeneric(bufferPartition(), PartitionPurgeDecommitEmptyPa
ges); |
| 92 partitionPurgeMemoryGeneric(fastMallocPartition(), PartitionPurgeDecommitEmp
tyPages); | 92 partitionPurgeMemoryGeneric(fastMallocPartition(), PartitionPurgeDecommitEmp
tyPages); |
| 93 #if !ENABLE(OILPAN) | 93 #if !ENABLE(OILPAN) |
| 94 partitionPurgeMemory(nodePartition(), PartitionPurgeDecommitEmptyPages); | 94 partitionPurgeMemory(nodePartition(), PartitionPurgeDecommitEmptyPages); |
| 95 #endif | 95 #endif |
| 96 partitionPurgeMemory(layoutPartition(), PartitionPurgeDecommitEmptyPages); | 96 partitionPurgeMemory(layoutPartition(), PartitionPurgeDecommitEmptyPages); |
| 97 } | 97 } |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 if (totalUsage >= 64 * 1024 * 1024) | 210 if (totalUsage >= 64 * 1024 * 1024) |
| 211 partitionsOutOfMemoryUsing64M(); | 211 partitionsOutOfMemoryUsing64M(); |
| 212 if (totalUsage >= 32 * 1024 * 1024) | 212 if (totalUsage >= 32 * 1024 * 1024) |
| 213 partitionsOutOfMemoryUsing32M(); | 213 partitionsOutOfMemoryUsing32M(); |
| 214 if (totalUsage >= 16 * 1024 * 1024) | 214 if (totalUsage >= 16 * 1024 * 1024) |
| 215 partitionsOutOfMemoryUsing16M(); | 215 partitionsOutOfMemoryUsing16M(); |
| 216 partitionsOutOfMemoryUsingLessThan16M(); | 216 partitionsOutOfMemoryUsingLessThan16M(); |
| 217 } | 217 } |
| 218 | 218 |
| 219 } // namespace WTF | 219 } // namespace WTF |
| OLD | NEW |