summaryrefslogtreecommitdiff
path: root/src/runtime
AgeCommit message (Collapse)AuthorFilesLines
2009-03-24move amd64-specific (but os-independent) pieces of runtimeRuss Cox4-126/+133
into amd64/ directory. split rt2_amd64.c into closure.c and traceback.c. TBR=r OCL=26678 CL=26678
2009-03-23add test for close/closed, fix a few implementation bugs.Russ Cox1-28/+30
R=ken OCL=26664 CL=26664
2009-03-23allow range on nil mapsRuss Cox1-0/+4
R=ken OCL=26663 CL=26663
2009-03-20embarassing bug in allocator:Russ Cox2-2/+2
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-03-17binary search on type switches.Ken Thompson1-0/+17
new feature 'case nil:' in type switch will match iff the interface is nil. R=r OCL=26404 CL=26404
2009-03-16change format of Sigt and SigiKen Thompson1-71/+96
to allow room for type hash needed for log-time type switch. R=r OCL=26354 CL=26354
2009-03-13close/closed on chansKen Thompson1-33/+117
R=r OCL=26281 CL=26285
2009-03-12chan flags close/closed installedKen Thompson1-2/+47
runtime not finished. R=r OCL=26217 CL=26217
2009-03-061. type switchesKen Thompson1-1/+1
2. fixed fault on bug128 3. got rid of typeof 4. fixed bug in t,ok = I2T R=r OCL=25873 CL=25873
2009-02-15build nitsRuss Cox1-2/+2
R=r DELTA=8 (0 added, 6 deleted, 2 changed) OCL=25045 CL=25045
2009-02-11fix gc bug. i think this is tgs's second bug.Russ Cox2-3/+8
i stumbled across it in all.bash. TBR=r OCL=24912 CL=24912
2009-02-06tgs's gc bug.Russ Cox1-3/+10
R=r DELTA=10 (7 added, 0 deleted, 3 changed) OCL=24577 CL=24577
2009-02-06closures - runtime and debugger support, test caseRuss Cox3-4/+142
R=r DELTA=257 (250 added, 1 deleted, 6 changed) OCL=24509 CL=24565
2009-02-02minor tweaksRuss Cox2-11/+8
R=r DELTA=9 (2 added, 5 deleted, 2 changed) OCL=24107 CL=24152
2009-01-29if take address of local, move to heap.Russ Cox2-13/+28
heuristic to not print bogus strings. fix one error message format. R=ken OCL=23849 CL=23851
2009-01-28Use explicit allspan list instead ofRuss Cox7-40/+43
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-27pragma textflagKen Thompson1-0/+4
fixes latent bugs in go and defer R=r OCL=23613 CL=23613
2009-01-27various race conditions.Russ Cox3-14/+38
R=r DELTA=43 (29 added, 5 deleted, 9 changed) OCL=23608 CL=23611
2009-01-27spellingKen Thompson2-6/+5
R=r OCL=23602 CL=23602
2009-01-27deferKen Thompson3-6/+66
R=r OCL=23592 CL=23592
2009-01-26gc #0. mark and sweep collector.Russ Cox13-42/+429
R=r,gri DELTA=472 (423 added, 2 deleted, 47 changed) OCL=23522 CL=23541
2009-01-26in hash implementation, if data >= 8, align to 8.Russ Cox1-7/+16
R=ken OCL=23519 CL=23521
2009-01-26interface speedups and fixes.Russ Cox3-44/+143
more caching, better hash functions, proper locking. fixed a bug in interface comparison too. R=ken DELTA=177 (124 added, 10 deleted, 43 changed) OCL=23491 CL=23493
2009-01-26implement new restrictions on whatRuss Cox5-68/+80
can be compared/hashed. R=r DELTA=351 (201 added, 80 deleted, 70 changed) OCL=23423 CL=23481
2009-01-24bug in async select readKen Thompson1-19/+22
buganizer 1589219 channel is returning same values multiple times R=r OCL=23447 CL=23447
2009-01-22move math routines from package sys to package math,Russ Cox10-348/+358
though they still build in src/runtime. use cgo instead of hand-written wrappers. R=r DELTA=740 (289 added, 300 deleted, 151 changed) OCL=23326 CL=23331
2009-01-21disallow P.t for lowercase t and not our package P.Russ Cox1-0/+7
implement hiding lowercase methods m in signatures by adding in a hash of the package name to the type hash code. remove remaining checks for internally-generated _ names: they are all gone. R=ken OCL=23236 CL=23238
2009-01-20* delete exportRuss Cox1-1/+1
* rename init functions R=ken OCL=23122 CL=23126
2009-01-16casify, cleanup sysRuss Cox15-315/+84
R=r OCL=22978 CL=22984
2009-01-14Add cgo2c program to translate mixed Go/C code into C. ThisIan Lance Taylor5-36/+619
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-13Add USED declarations for SysUnused parameters.Ian Lance Taylor1-0/+2
R=rsc DELTA=2 (2 added, 0 deleted, 0 changed) OCL=22640 CL=22642
2009-01-13Tweak code to make it easier to compile with gcc.Ian Lance Taylor7-49/+90
+ 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-09free(nil)Russ Cox1-0/+3
R=iant DELTA=3 (3 added, 0 deleted, 0 changed) OCL=22467 CL=22471
2009-01-09add sys.callerRuss Cox1-0/+55
R=r DELTA=139 (101 added, 38 deleted, 0 changed) OCL=22462 CL=22466
2009-01-09update sys.reflect and sys.unreflect to accomodateRuss Cox2-46/+84
the possibility of large objects in interface values. R=r DELTA=171 (97 added, 22 deleted, 52 changed) OCL=22382 CL=22382
2009-01-08many interface bug fixes.Russ Cox2-16/+16
also, after func g() (int, int) func f(int, int) allow f(g()) and func h() (int, int) { return g() } R=ken DELTA=356 (252 added, 26 deleted, 78 changed) OCL=22319 CL=22325
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-19[] and struct in interfaces.Russ Cox2-81/+144
other [] cleanup. convert() is gone. R=r DELTA=352 (144 added, 68 deleted, 140 changed) OCL=21660 CL=21662
2008-12-19chan and map of [] and structRuss Cox5-47/+70
R=r DELTA=192 (145 added, 8 deleted, 39 changed) OCL=21609 CL=21614
2008-12-19malloc bug fixes.Russ Cox9-87/+260
use malloc by default. free stacks. R=r DELTA=424 (333 added, 29 deleted, 62 changed) OCL=21553 CL=21584
2008-12-18convert *[] to [].Russ Cox1-4/+4
R=r OCL=21563 CL=21571
2008-12-18print(array)Ken Thompson2-11/+11
R=r OCL=21570 CL=21570
2008-12-18arraysKen Thompson2-46/+33
R=r OCL=21564 CL=21564
2008-12-18malloc in runtime (not used by default)Russ Cox10-1/+1377
R=r DELTA=1551 (1550 added, 0 deleted, 1 changed) OCL=21404 CL=21538
2008-12-17small bugKen Thompson2-11/+21
new printarray R=r OCL=21429 CL=21429
2008-12-15new convention, direction bit isKen Thompson1-0/+1
always left cleared. changed compiler generated memcpy and memset to assume CLD. R=r OCL=21215 CL=21215
2008-12-15off-by-one error assigning src files to functionsRuss Cox1-0/+2
R=r DELTA=2 (2 added, 0 deleted, 0 changed) OCL=21178 CL=21187
2008-12-15check printf format stringsRuss Cox2-2/+18
R=r DELTA=18 (16 added, 0 deleted, 2 changed) OCL=21177 CL=21185
2008-12-15correct arg register in bsdthread_createRuss Cox1-1/+1
R=r DELTA=1 (0 added, 0 deleted, 1 changed) OCL=21040 CL=21176
2008-12-10string hash function faults w empty stringKen Thompson1-0/+2
fixes maps[""] R=r OCL=20909 CL=20911