We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BumpPtrAllocator.swift
1 parent 13a6e7a commit 528c7f5Copy full SHA for 528c7f5
Sources/SwiftSyntax/BumpPtrAllocator.swift
@@ -15,7 +15,7 @@
15
public class BumpPtrAllocator {
16
typealias Slab = UnsafeMutableRawBufferPointer
17
18
- static private var GLOWTH_DELAY: Int = 128
+ static private var GROWTH_DELAY: Int = 128
19
static private var SLAB_ALIGNMENT: Int = 8
20
21
/// Initial slab size.
@@ -54,8 +54,8 @@ public class BumpPtrAllocator {
54
55
/// Calculate the size of the slab at the index.
56
private func slabSize(at index: Int) -> Int {
57
- // Double the slab size every 'GLOWTH_DELAY' slabs.
58
- return self.slabSize * (1 << min(30, index / Self.GLOWTH_DELAY))
+ // Double the slab size every 'GROWTH_DELAY' slabs.
+ return self.slabSize * (1 << min(30, index / Self.GROWTH_DELAY))
59
}
60
61
private func startNewSlab() {
0 commit comments