bmalloc: Renamed LargeChunk => Chunk
[WebKit-https.git] / Source / bmalloc / bmalloc / VMHeap.h
index 2113c5e..520e28d 100644 (file)
@@ -27,8 +27,8 @@
 #define VMHeap_h
 
 #include "AsyncTask.h"
+#include "Chunk.h"
 #include "FixedVector.h"
-#include "LargeChunk.h"
 #include "LargeObject.h"
 #include "Range.h"
 #include "SegregatedFreeList.h"
@@ -54,7 +54,7 @@ public:
     void deallocateLargeObject(std::unique_lock<StaticMutex>&, LargeObject);
     
 private:
-    LargeObject allocateLargeChunk(std::lock_guard<StaticMutex>&);
+    LargeObject allocateChunk(std::lock_guard<StaticMutex>&);
 
     SegregatedFreeList m_largeObjects;
 
@@ -69,7 +69,7 @@ inline LargeObject VMHeap::allocateLargeObject(std::lock_guard<StaticMutex>& loc
         return largeObject;
 
     BASSERT(size <= largeMax);
-    return allocateLargeChunk(lock);
+    return allocateChunk(lock);
 }
 
 inline LargeObject VMHeap::allocateLargeObject(std::lock_guard<StaticMutex>& lock, size_t alignment, size_t size, size_t unalignedSize)
@@ -78,7 +78,7 @@ inline LargeObject VMHeap::allocateLargeObject(std::lock_guard<StaticMutex>& loc
         return largeObject;
 
     BASSERT(unalignedSize <= largeMax);
-    return allocateLargeChunk(lock);
+    return allocateChunk(lock);
 }
 
 inline void VMHeap::deallocateLargeObject(std::unique_lock<StaticMutex>& lock, LargeObject largeObject)