diff options
Diffstat (limited to 'prog/alloc.go')
| -rw-r--r-- | prog/alloc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prog/alloc.go b/prog/alloc.go index c47fc703d..344ec7a0e 100644 --- a/prog/alloc.go +++ b/prog/alloc.go @@ -57,7 +57,7 @@ func (ma *memAlloc) alloc(r *randGen, size0 uint64) uint64 { } size := (size0 + memAllocGranule - 1) / memAllocGranule end := ma.size - size - for start := uint64(0); start < end; start++ { + for start := uint64(0); start <= end; start++ { empty := true for i := uint64(0); i < size; i++ { if ma.get(start + i) { |
