Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: third_party/WebKit/Source/wtf/Partitions.cpp

Issue 1840163002: Replace all occurrences of RELEASE_ASSERT in wtf with CHECK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use CHECK_NE instead of CHECK. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/PartitionAllocator.h ('k') | third_party/WebKit/Source/wtf/TerminatedArrayBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698