From da0a7d7b8f896bc2117ce488c4e245d626ef8aba Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 19 Dec 2008 03:13:39 -0800 Subject: malloc bug fixes. use malloc by default. free stacks. R=r DELTA=424 (333 added, 29 deleted, 62 changed) OCL=21553 CL=21584 --- src/runtime/runtime.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/runtime/runtime.h') diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index a8d40f84ff..fc4e5ba462 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h @@ -76,10 +76,6 @@ enum true = 1, false = 0, }; -enum -{ - SmallFreeClasses = 168, // number of small free lists in malloc -}; /* * structures @@ -158,6 +154,7 @@ struct M int32 siz1; int32 siz2; int32 id; + int32 mallocing; Note havenextg; G* nextg; M* schedlink; -- cgit v1.3