summaryrefslogtreecommitdiff
path: root/src/runtime
AgeCommit message (Collapse)AuthorFilesLines
2015-05-02Imported Upstream version 1.4.2upstream/1.4.2upstream-sidTianon Gravi3-4/+17
2015-01-15Imported Upstream version 1.4.1upstream/1.4.1Tianon Gravi10-51/+172
2015-01-15Imported Upstream version 1.4upstream/1.4Tianon Gravi414-0/+80158
2009-06-06move src/runtime -> src/lib/runtime;Russ Cox74-14718/+0
only automatic g4 mv here. R=r OCL=30002 CL=30007
2009-06-05fix 386 malloc tests,Russ Cox1-1/+1
detect 386 darwin breakpoint line. R=r DELTA=22 (4 added, 0 deleted, 18 changed) OCL=29929 CL=29944
2009-06-05fix 386 log testRuss Cox1-12/+11
R=r DELTA=13 (0 added, 1 deleted, 12 changed) OCL=29928 CL=29943
2009-06-04386-related fixes and guardsRuss Cox6-22/+33
R=r DELTA=44 (19 added, 1 deleted, 24 changed) OCL=29912 CL=29915
2009-06-04more 386 runtime fixes.Russ Cox4-9/+64
can pass many tests; current stumbling block is an 8l bug. R=r DELTA=122 (83 added, 8 deleted, 31 changed) OCL=29872 CL=29876
2009-06-02386 library updatesRuss Cox1-1/+1
R=r DELTA=161 (153 added, 0 deleted, 8 changed) OCL=29802 CL=29809
2009-06-0232-bit fixes in lessstack.Russ Cox4-25/+28
avoid tight coupling between deferreturn and jmpdefer. before, jmpdefer knew the exact frame size of deferreturn in order to pop it off the stack. now, deferreturn passes jmpdefer a pointer to the frame above it explicitly. that avoids a magic constant and should be less fragile. R=r DELTA=32 (6 added, 3 deleted, 23 changed) OCL=29801 CL=29804
2009-05-29Fix godoc deadlock.Russ Cox1-2/+9
The code was already careful not to use malloc/free for stack growth during calls to malloc. Avoid them during calls to free too. R=r DELTA=9 (7 added, 0 deleted, 2 changed) OCL=29606 CL=29610
2009-05-2964-bit integer arithmetic.Russ Cox1-0/+14
passes ridiculous test from CL 29569. R=ken OCL=29571 CL=29573
2009-05-28detect recursive initializationKen Thompson1-0/+6
R=r OCL=29544 CL=29544
2009-05-27added protection against race conditionKen Thompson1-6/+10
between first and second pass of converting []int to string. R=r OCL=29467 CL=29467
2009-05-27string([]int) conversionKen Thompson1-0/+22
R=r OCL=29466 CL=29466
2009-05-268g: 64-bit arithmetic and assorted bug fixes;Russ Cox3-2/+32
can run 64-bit sieve and powser. interfaces are limping along. next hurdle is floating point. R=ken OCL=29418 CL=29423
2009-05-26add NUL when allocating strings, to make useRuss Cox2-5/+9
of getenv by low-level runtime easier. fix 32-bit bug in gc (there are still more). R=ken OCL=29415 CL=29415
2009-05-2632-bit stack switching bug fixRuss Cox2-2/+2
R=ken OCL=29412 CL=29412
2009-05-268g: hello world works againRuss Cox1-2/+2
* string format changed * files got renamed * new files that i forgot to check in last time updates are all copy and paste from 6g R=ken OCL=29385 CL=29400
2009-05-26Added enough arm related scaffolding to create a simpleKai Backman9-2/+197
hello.c program linking against the runtime. R=rsc APPROVED=rsc DELTA=178 (175 added, 0 deleted, 3 changed) OCL=29283 CL=29380
2009-05-20stricter interface conversion rule: i.(T)Russ Cox1-8/+31
must have non-nil i. R=ken OCL=29136 CL=29136
2009-05-20change representation of interface values.Russ Cox3-175/+306
this is not a user-visible change. before, all interface values were struct Itype { Sigt *type; Sigi *inter; void *method[n]; } struct Iface { void *addr; Itype *itype; } the itype is basically a vtable, but it's unnecessary if the static type is interface{ }. for interface values with static type empty, the new representation is struct Eface { void *addr; Sigt *type; } this complicates the code somewhat, but it reduces the number of Itypes that have to be computed and cached, it opens up opportunities to avoid function calls in a few common cases, and it will make it possible to lay out interface{} values at compile time, which i think i'll need for the new reflection. R=ken OCL=28701 CL=29121
2009-05-15fix handling of line numbers for first functionRuss Cox1-1/+2
R=r DELTA=2 (1 added, 0 deleted, 1 changed) OCL=28949 CL=28951
2009-05-08move things out of sys into os and runtimeRuss Cox18-58/+70
R=r OCL=28569 CL=28573
2009-05-08Move sys.Reflect and sys.Unreflect into unsafe.Rob Pike1-5/+5
R=rsc DELTA=19 (4 added, 5 deleted, 10 changed) OCL=28563 CL=28566
2009-05-056g tweaksRuss Cox1-8/+0
* byteastring is no longer used * do not generate ODCL, OAS for globals (wasn't generating any code but might save one or two init functions) * do not call self from Init function R=ken OCL=28309 CL=28309
2009-05-03more morestack fiddlingKen Thompson1-0/+39
R=r OCL=28204 CL=28204
2009-05-01code improvementKen Thompson1-0/+24
better calling of morestack R=r OCL=28179 CL=28179
2009-04-29don't set CLONE_PTRACE -- it confuses straceRuss Cox1-1/+3
R=r DELTA=4 (3 added, 1 deleted, 0 changed) OCL=28063 CL=28065
2009-04-29Ignore SIGPIPE such that write returns EPIPE.Brendan O'Dea2-2/+2
Currently a http server will be killed on receipt of SIGPIPE if a client closes a socket which the server is trying to write to. R=rsc APPROVED=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=27959 CL=28055
2009-04-15fix traceback prints - %S was not advancing pointer enoughRuss Cox1-1/+5
R=r DELTA=6 (5 added, 1 deleted, 0 changed) OCL=27500 CL=27525
2009-04-14do not create interfaces containing interfacesRuss Cox1-0/+5
R=r DELTA=16 (14 added, 0 deleted, 2 changed) OCL=27464 CL=27466
2009-04-13runtime nits: variable name and commentsRuss Cox1-10/+10
R=r DELTA=10 (0 added, 0 deleted, 10 changed) OCL=27374 CL=27388
2009-04-12tweakKen Thompson1-16/+13
R=r OCL=27344 CL=27344
2009-04-12fix string range to have full unicode range (up to 10FFFF).Rob Pike3-98/+116
add test for string range. test has minor failure: after loop the index == len(s); should be len(s)-1 in this case. according to spec, vars are left at position at last iteration. R=ken,rsc DELTA=259 (161 added, 96 deleted, 2 changed) OCL=27343 CL=27343
2009-04-12change replacement rune to its correct value, fffdRob Pike1-1/+1
R=ken OCL=27342 CL=27342
2009-04-10range over stringsKen Thompson1-0/+156
R=r OCL=27332 CL=27332
2009-04-09change representation of stringsKen Thompson7-114/+99
R=r OCL=27293 CL=27293
2009-04-02implement some more 8gRuss Cox1-0/+4
package main func main() { println("hello,", 123); } R=ken OCL=27043 CL=27043
2009-04-02clarification suggested by robRuss Cox1-0/+4
R=r DELTA=4 (4 added, 0 deleted, 0 changed) OCL=26983 CL=27041
2009-04-01fix runtime stack overflow bug that gri ran into:Russ Cox2-155/+211
160 - 75 was just barely not enough for deferproc + morestack. added enum names and bumped to 256 - 128. added explanation. changed a few mal() (garbage-collected) to malloc()/free() (manually collected). R=ken OCL=26981 CL=26981
2009-03-31test for and fix bug involving reflect v.Interface() and ==.Russ Cox2-7/+64
R=r DELTA=156 (149 added, 2 deleted, 5 changed) OCL=26973 CL=26973
2009-03-31more 386 runtime:Russ Cox11-12/+939
remove use of _subv in vlrt.c darwin/386/signal.c darwin/386/* linux/386/* (forgotten before) can run empty program on darwin/386 now. R=r DELTA=1140 (1021 added, 114 deleted, 5 changed) OCL=26942 CL=26968
2009-03-30more 386 runtime - can run tiny c programs.Russ Cox25-92/+1720
R=r DELTA=1926 (1727 added, 168 deleted, 31 changed) OCL=26876 CL=26878
2009-03-24fix build:Russ Cox3-5/+6
install runtime lib in correct location. fix one bad type definition in defs.h. clear out $GOROOT/lib in clean.bash. TBR=r OCL=26691 CL=26691
2009-03-24split heapmap, which is specific to 64-bit pointer addresses,Russ Cox4-201/+214
out of malloc proper. TBR=r OCL=26689 CL=26689
2009-03-24convert Linux to auto-generated defs.hRuss Cox7-189/+292
TBR=r OCL=26686 CL=26688
2009-03-24convert darwin to use godefs-generated defs.h.Russ Cox6-429/+490
this change is much smaller if you ignore the machine-generated defs.h. TBR=r OCL=26684 CL=26684
2009-03-24split rt1.c into signal.c and thread.c.Russ Cox6-430/+476
move out of arch-specific directory: only os-specific. rm sys_types.h (unused). TBR=r OCL=26681 CL=26681
2009-03-24move darwin specific code into runtime/darwin/Russ Cox11-28/+20
move darwin-amd64 specific code into runtime/darwin/amd64/ repeat for linux. move rt0 into runtime.a instead of keeping a separate .6 file. 6l seems to have no problem with that. TBR=r OCL=26680 CL=26680