diff options
| author | Russ Cox <rsc@golang.org> | 2009-03-20 16:34:13 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-03-20 16:34:13 -0700 |
| commit | c1e748bd2e440dde4cf9778af622e726a39ef0ae (patch) | |
| tree | 491e3743300c535d52e605d1a60887610272009f /src/runtime/malloc.h | |
| parent | 90943c8ee4cf2ccef11b72ba01ea729edd8b3c66 (diff) | |
| download | go-c1e748bd2e440dde4cf9778af622e726a39ef0ae.tar.xz | |
embarassing bug in allocator:
was applying wrong waste check,
resulting in many more size classes
than necessary.
R=r
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=26602
CL=26605
Diffstat (limited to 'src/runtime/malloc.h')
| -rw-r--r-- | src/runtime/malloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/malloc.h b/src/runtime/malloc.h index d1d9e95e98..530dfc98f1 100644 --- a/src/runtime/malloc.h +++ b/src/runtime/malloc.h @@ -91,7 +91,7 @@ typedef uintptr PageID; // address >> PageShift enum { // Tunable constants. - NumSizeClasses = 150, // Number of size classes (must match msize.c) + NumSizeClasses = 67, // Number of size classes (must match msize.c) MaxSmallSize = 32<<10, FixAllocChunk = 128<<10, // Chunk size for FixAlloc |
