View | Details | Return to bug 60931 | Differences between
and this patch

Collapse All | Expand All

(-)a/libgo/go/runtime/mem.go (-2 / +2 lines)
Lines 50-57 type MemStats struct { Link Here
50
	DebugGC      bool
50
	DebugGC      bool
51
51
52
	// Per-size allocation statistics.
52
	// Per-size allocation statistics.
53
	// 61 is NumSizeClasses in the C code.
53
	// 73 is NumSizeClasses in the C code.
54
	BySize [61]struct {
54
	BySize [73]struct {
55
		Size    uint32
55
		Size    uint32
56
		Mallocs uint64
56
		Mallocs uint64
57
		Frees   uint64
57
		Frees   uint64
(-)a/libgo/runtime/malloc.h (-2 / +2 lines)
Lines 90-96 typedef struct GCStats GCStats; Link Here
90
90
91
enum
91
enum
92
{
92
{
93
	PageShift	= 12,
93
	PageShift	= 16,
94
	PageSize	= 1<<PageShift,
94
	PageSize	= 1<<PageShift,
95
	PageMask	= PageSize - 1,
95
	PageMask	= PageSize - 1,
96
};
96
};
Lines 103-109 enum Link Here
103
	// size classes.  NumSizeClasses is that number.  It's needed here
103
	// size classes.  NumSizeClasses is that number.  It's needed here
104
	// because there are static arrays of this length; when msize runs its
104
	// because there are static arrays of this length; when msize runs its
105
	// size choosing algorithm it double-checks that NumSizeClasses agrees.
105
	// size choosing algorithm it double-checks that NumSizeClasses agrees.
106
	NumSizeClasses = 61,
106
	NumSizeClasses = 73,
107
107
108
	// Tunable constants.
108
	// Tunable constants.
109
	MaxSmallSize = 32<<10,
109
	MaxSmallSize = 32<<10,

Return to bug 60931