summaryrefslogtreecommitdiff
path: root/src/runtime
AgeCommit message (Collapse)AuthorFilesLines
2008-11-12converting uint bits back into floatsRob Pike1-0/+28
R=rsc DELTA=32 (32 added, 0 deleted, 0 changed) OCL=19084 CL=19091
2008-11-10* accept all NaNs, not just the one sys.NaN() returns.Russ Cox1-36/+60
* use union, not cast, to convert between uint64 and float64, to avoid possible problems with gcc in future. R=r DELTA=75 (39 added, 15 deleted, 21 changed) OCL=18926 CL=18926
2008-11-10handle Inf, NaN in float printRuss Cox3-25/+34
R=r DELTA=48 (23 added, 14 deleted, 11 changed) OCL=18707 CL=18922
2008-11-06bug in select defaultKen Thompson1-31/+36
R=r OCL=18741 CL=18741
2008-11-06add sys.float32bits, sys.float64bitsRob Pike1-0/+17
R=rsc DELTA=21 (21 added, 0 deleted, 0 changed) OCL=18709 CL=18718
2008-11-05select defaultKen Thompson3-10/+12
R=r OCL=18646 CL=18646
2008-11-05more runtime support for chan select defaultRuss Cox1-1/+39
R=ken OCL=18630 CL=18630
2008-11-05runtime support for default in select.Russ Cox1-2/+13
assumes cas->send == 2 for default case. R=ken OCL=18628 CL=18628
2008-11-05allow any type at all in sys.unreflect;Russ Cox1-8/+0
accomodate empty type table in 6l. R=r DELTA=10 (2 added, 8 deleted, 0 changed) OCL=18601 CL=18605
2008-11-05new interface error messagesRuss Cox1-6/+28
package main func main() { var i interface { } = 1; a := i.(*[]byte); } interface { } is int, not *[]uint8 throw: interface conversion package main func main() { var i interface { }; a := i.(*[]byte); } interface is nil, not *[]uint8 throw: interface conversion package main func main() { i := sys.unreflect(0, "*bogus"); a := i.(*[]byte); } interface { } is *bogus, not *[]uint8 throw: interface conversion R=r DELTA=30 (24 added, 2 deleted, 4 changed) OCL=18548 CL=18565
2008-11-056g interface changes:Russ Cox1-26/+2
* allow conversion between nil interface and any type. * mark signatures as DUPOK so that multiple .6 can contain sigt.*[]byte and only one gets used. R=ken OCL=18538 CL=18542
2008-11-03runtime support for interface ok,Russ Cox1-8/+71
whatever the final syntax ends up being. R=ken OCL=18414 CL=18414
2008-11-036l: generate gotypesigs on demand.Russ Cox1-0/+72
add sys.unreflect, which uses gotypesigs. R=r DELTA=170 (152 added, 12 deleted, 6 changed) OCL=18396 CL=18404
2008-11-03rename various magic names.Russ Cox1-18/+18
sigi and sigt: sys·sigi_inter -> sigi·inter sys·sigt_int -> sigt·int Package·sigt_Type -> sigt·Package.Type local type T in file x.go T_x -> T·x second one T_x_1 -> T·x·1 method names M on T T_M -> T·M correctly handle local embedded types init functions are the only place left that use underscores R=ken OCL=18377 CL=18377
2008-11-03in traceback, handle the case where we've called through a nil function pointerRob Pike1-0/+7
R=rsc DELTA=7 (7 added, 0 deleted, 0 changed) OCL=18372 CL=18372
2008-10-29bug 113Ken Thompson1-0/+5
R=r OCL=18081 CL=18081
2008-10-216g: use full type in sigt[0].nameRuss Cox1-26/+52
sys: add sys.reflect runtime: add canfail flag for later R=ken OCL=17583 CL=17583
2008-10-15interface on arbitrary typesKen Thompson1-4/+37
global signatures for basic types R=r OCL=17238 CL=17240
2008-10-14delete hack for interface equality now that it supported by the 6g compilerRob Pike1-19/+0
R=rsc DELTA=21 (0 added, 21 deleted, 0 changed) OCL=17123 CL=17136
2008-10-14interface equality (strings specifically)Ken Thompson1-10/+11
R=r OCL=17134 CL=17134
2008-10-14interface equalityKen Thompson1-0/+47
R=r OCL=17116 CL=17118
2008-10-10handle zeroed interface in ifaceI2IRuss Cox1-8/+9
R=r OCL=16938 CL=16938
2008-10-10add sys.BUG_intereq to compare interfaces for equalityRuss Cox1-0/+18
R=r OCL=16929 CL=16929
2008-10-08more interface checks:Russ Cox1-4/+9
- pointer to interface cannot have methods - record type names for better runtime error R=r,ken DELTA=85 (80 added, 0 deleted, 5 changed) OCL=16658 CL=16722
2008-10-07sys.stringtorune doesn't need a length parameter.Rob Pike2-3/+3
R=rsc DELTA=7 (0 added, 0 deleted, 7 changed) OCL=16600 CL=16630
2008-10-03interfaces of all typesKen Thompson1-13/+17
R=r OCL=16462 CL=16462
2008-10-02added printn and panicnKen Thompson1-0/+12
prints that insert spaces and new line R=r OCL=16370 CL=16370
2008-09-30for loops in hashmap.Russ Cox1-36/+28
a few missing FLUSH. R=ken OCL=16221 CL=16221
2008-09-28toward methods on any typeKen Thompson1-7/+16
R=r OCL=16068 CL=16068
2008-09-27change print(float) from 5 to 7 sig digitsKen Thompson1-1/+1
R=r OCL=16045 CL=16045
2008-09-26go/acid/goRuss Cox3-6/+5
R=r DELTA=99 (95 added, 1 deleted, 3 changed) OCL=15983 CL=15992
2008-09-26test and fix non-blocking chan ops on buffered chansRuss Cox1-1/+18
R=ken DELTA=68 (19 added, 0 deleted, 49 changed) OCL=15966 CL=15969
2008-09-24cleanup; sys.sleep can go.Russ Cox6-44/+0
R=r OCL=15786 CL=15792
2008-09-24get rid of per-G Note, avoids per-G kernel semaphore on Mac.Russ Cox2-14/+18
2.14u 19.82s 22.17r 6.out 100000 # old 1.87u 0.43s 2.31r 6.out 100000 # new R=r OCL=15762 CL=15772
2008-09-24only use mach kernel semaphores for actual contention.Russ Cox2-8/+33
running rob's powser p.go: 3.21u 2.58s 5.80r 6.out # old 1.48u 0.05s 1.54r 6.out # new R=r OCL=15748 CL=15750
2008-09-22change string([]byte) to pass array, rather than &a[0],Russ Cox1-0/+9
to string convert. if the byte array has length 0, the computation of &a[0] throws an index bounds error. for fixed size arrays, this ends up invoking arrays2d unnecessarily, but it works. R=ken DELTA=304 (44 added, 28 deleted, 232 changed) OCL=15674 CL=15678
2008-09-22vectors bugKen Thompson1-37/+83
R=r OCL=15664 CL=15664
2008-09-22implement spec: when main.main returns, the program exitsRuss Cox1-2/+7
R=r DELTA=9 (7 added, 2 deleted, 0 changed) OCL=15628 CL=15643
2008-09-22test cleanupRuss Cox4-12/+30
- do not print tracebacks if $GOTRACEBACK=0 - set GOTRACEBACK=0 during tests - filter out pc numbers in errors R=r DELTA=70 (22 added, 30 deleted, 18 changed) OCL=15618 CL=15642
2008-09-22now method/interface codeKen Thompson4-197/+212
R=r OCL=15627 CL=15627
2008-09-20another async select bugKen Thompson1-0/+1
R=r OCL=15599 CL=15599
2008-09-19fix bugs in asynch selectKen Thompson1-17/+51
R=r OCL=15586 CL=15586
2008-09-19add gobuild.Russ Cox2-20/+0
use gobuild-generated Makefile for math and os. other makefile tweaks. move math/main.go to test/math.go R=r OCL=15529 CL=15537
2008-09-18proper handling of signals.Russ Cox8-36/+137
do not run init on g0. R=r DELTA=161 (124 added, 23 deleted, 14 changed) OCL=15490 CL=15497
2008-09-17fix printing of -(1<<63)Russ Cox1-4/+8
R=r OCL=15441 CL=15445
2008-09-17add network listening & testsRuss Cox1-1/+1
R=r,presotto OCL=15410 CL=15440
2008-09-14methods on any typeKen Thompson2-3/+5
-- but only *struct tested R=r OCL=15326 CL=15326
2008-09-13Automated g4 rollback of changelist 15312.Ken Thompson1-4/+3
*** Reason for rollback *** <enter reason for rollback> *** Original change description *** correct signal name thru package rename R=r OCL=15313 CL=15313
2008-09-13correct signal name thru package renameKen Thompson1-3/+4
R=r OCL=15312 CL=15312
2008-09-13remove special trap-handling code for array out of bounds -Rob Pike2-76/+11
compiler doesn't generate them any more R=ken OCL=15309 CL=15309