summaryrefslogtreecommitdiff
path: root/src/runtime/malloc.h
AgeCommit message (Collapse)AuthorFilesLines
2015-01-15Imported Upstream version 1.4upstream/1.4Tianon Gravi1-0/+621
2009-06-06move src/runtime -> src/lib/runtime;Russ Cox1-308/+0
only automatic g4 mv here. R=r OCL=30002 CL=30007
2009-03-30more 386 runtime - can run tiny c programs.Russ Cox1-2/+5
R=r DELTA=1926 (1727 added, 168 deleted, 31 changed) OCL=26876 CL=26878
2009-03-24split heapmap, which is specific to 64-bit pointer addresses,Russ Cox1-94/+1
out of malloc proper. TBR=r OCL=26689 CL=26689
2009-03-20embarassing bug in allocator:Russ Cox1-1/+1
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
2009-01-28Use explicit allspan list instead ofRuss Cox1-3/+11
trying to find all the places where spans might be recorded. Free can cascade into complicated span manipulations that move them from list to list; the old code had the possibility of accidentally processing a span twice or jumping to a different list, causing an infinite loop. R=r DELTA=70 (28 added, 25 deleted, 17 changed) OCL=23704 CL=23710
2009-01-26gc #0. mark and sweep collector.Russ Cox1-4/+24
R=r,gri DELTA=472 (423 added, 2 deleted, 47 changed) OCL=23522 CL=23541
2009-01-14Add cgo2c program to translate mixed Go/C code into C. ThisIan Lance Taylor1-0/+4
lets us use a single source file for both 6c and gcc, handling the incompatible handling of return values. R=rsc DELTA=649 (613 added, 35 deleted, 1 changed) OCL=22682 CL=22730
2009-01-13Tweak code to make it easier to compile with gcc.Ian Lance Taylor1-1/+1
+ Use macros to name symbols with non-ASCII characters. + Make some variables unsigned, because they are compared against unsigned values. + Fix a few void* pointers to be MLink*. R=rsc DELTA=94 (44 added, 3 deleted, 47 changed) OCL=22303 CL=22638
2009-01-08Remove duplicate typedef declarations.Ian Lance Taylor1-7/+0
R=rsc DELTA=7 (0 added, 7 deleted, 0 changed) OCL=22267 CL=22281
2008-12-19malloc bug fixes.Russ Cox1-5/+14
use malloc by default. free stacks. R=r DELTA=424 (333 added, 29 deleted, 62 changed) OCL=21553 CL=21584
2008-12-18malloc in runtime (not used by default)Russ Cox1-0/+364
R=r DELTA=1551 (1550 added, 0 deleted, 1 changed) OCL=21404 CL=21538