Add cgroup v2 support for memory limit (#18905)

This commit is contained in:
Anis Eleuch
2024-01-30 20:13:27 +01:00
committed by GitHub
parent 7ffc162ea8
commit a669946357
4 changed files with 36 additions and 20 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ type BytePoolCap struct {
// NewBytePoolCap creates a new BytePool bounded to the given maxSize, with new
// byte arrays sized based on width.
func NewBytePoolCap(maxSize int, width int, capwidth int) (bp *BytePoolCap) {
func NewBytePoolCap(maxSize uint64, width int, capwidth int) (bp *BytePoolCap) {
if capwidth > 0 && capwidth < 64 {
panic("buffer capped with smaller than 64 bytes is not supported")
}