summaryrefslogtreecommitdiff
path: root/src/clean.bash
Commit message (Collapse)AuthorAgeFilesLines
* build: fix clean.bashMikio Hara2012-02-151-4/+5
| | | | | | R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/5672052
* build: use cmd/distRuss Cox2012-02-041-28/+5
| | | | | | R=bradfitz, ality, r, r, iant, mikioh.mikioh CC=golang-dev http://codereview.appspot.com/5615058
* build: remove Make.pkg, Make.toolRuss Cox2012-01-301-6/+13
| | | | | | | | | | | | | | | Consequently, remove many package Makefiles, and shorten the few that remain. gomake becomes 'go tool make'. Turn off test phases of run.bash that do not work, flagged with $BROKEN. Future CLs will restore these, but this seemed like a big enough CL already. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5601057
* test/bench/go1: first draft of Go 1 benchmark suiteRuss Cox2011-12-151-1/+1
| | | | | | | | | | | | | | | | | | I have included a few important microbenchmarks, but the overall intent is to have mostly end-to-end benchmarks timing real world operations. The jsondata.go file is a summary of agl's activity in various open source repositories. It gets used as test data for many of the benchmarks. Everything links into one binary (even the test data) so that it is easy to run the benchmarks on many computers: there is just one file to copy around. R=golang-dev, r, bradfitz, adg, r CC=golang-dev http://codereview.appspot.com/5484071
* test/garbage: move to test/bench/garbageRuss Cox2011-12-131-1/+1
| | | | | | | | (These are benchmarks for the garbage collector, not tests.) R=golang-dev, adg CC=golang-dev http://codereview.appspot.com/5484070
* fix build, sorryRuss Cox2011-12-131-1/+1
| | | | | | TBR=r CC=golang-dev http://codereview.appspot.com/5488066
* Housekeeping: Cleaning up the clean-up process.Lucio De Re2011-12-111-0/+2
| | | | | | | | | | | | | | src/clean.bash: Add clean-ups for previously overlooked directories. doc/codelab/wiki/Makefile: Dropped "index.html" from CLEANFILES so it will not be deleted on cleaning. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5476050 Committer: Rob Pike <r@golang.org>
* build: reenable clean.bash without gomakeGustavo Niemeyer2011-03-211-1/+2
| | | | | | | | | This change had already been made in revision 7371, but was then undone with changes in revision 7606. R=golang-dev, rsc1 CC=golang-dev http://codereview.appspot.com/4239064
* runtime: scheduler, cgo reorganizationRuss Cox2011-03-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Change use of m->g0 stack (aka scheduler stack). * Provide runtime.mcall(f) to invoke f() on m->g0 stack. * Replace scheduler loop entry with runtime.mcall(schedule). Runtime.mcall eliminates the need for fake scheduler states that exist just to run a bit of code on the m->g0 stack (Grecovery, Gstackalloc). The elimination of the scheduler as a loop that stops and starts using gosave and gogo fixes a bad interaction with the way cgo uses the m->g0 stack. Cgo runs external (gcc-compiled) C functions on that stack, and then when calling back into Go, it sets m->g0->sched.sp below the added call frames, so that other uses of m->g0's stack will not interfere with those frames. Unfortunately, gogo (longjmp) back to the scheduler loop at this point would end up running scheduler with the lower sp, which no longer points at a valid stack frame for a call to scheduler. If scheduler then wrote any function call arguments or local variables to where it expected the stack frame to be, it would overwrite other data on the stack. I realized this possibility while debugging a problem with calling complex Go code in a Go -> C -> Go cgo callback. This wasn't the bug I was looking for, it turns out, but I believe it is a real bug nonetheless. Switching to runtime.mcall, which only adds new frames to the stack and never jumps into functions running in existing ones, fixes this bug. * Move cgo-related code out of proc.c into cgocall.c. * Add very large comment describing cgo call sequences. * Simpilify, regularize cgo function implementations and names. * Add test suite as misc/cgo/test. Now the Go -> C path calls cgocall, which calls asmcgocall, and the C -> Go path calls cgocallback, which calls cgocallbackg. The shuffling, which affects mainly the callback case, moves most of the callback implementation to cgocallback running on the m->curg stack (not the m->g0 scheduler stack) and only while accounted for with $GOMAXPROCS (between calls to exitsyscall and entersyscall). The previous callback code did not block in startcgocallback's approximation to exitsyscall, so if, say, the garbage collector were running, it would still barge in and start doing things like call malloc. Similarly endcgocallback's approximation of entersyscall did not call matchmg to kick off new OS threads when necessary, which caused the bug in issue 1560. Fixes issue 1560. R=iant CC=golang-dev http://codereview.appspot.com/4253054
* build: simplify clean.bashDave Cheney2011-03-021-8/+3
| | | | | | | | R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/4257045 Committer: Russ Cox <rsc@golang.org>
* build: allow clean.bash to work on fresh checkoutRuss Cox2011-02-041-2/+2
| | | | | | | | | | Must be invoked as ./clean.bash --gomake make (or --gomake gmake, depending on the name of GNU make). R=niemeyer CC=golang-dev http://codereview.appspot.com/4023065
* fix build: more libcgo referencesRuss Cox2010-12-081-1/+1
| | | | | | R=r CC=golang-dev http://codereview.appspot.com/3448043
* build: remove unnecessary references to GOBIN and GOROOTChristian Himpel2010-08-301-1/+1
| | | | | | | | | | | All scripts and makefiles assume that GOBIN is correctly set in PATH. R=rsc CC=golang-dev http://codereview.appspot.com/2043041 Committer: Russ Cox <rsc@golang.org>
* clean.bash: fix standalone runsChristopher Wedgwood2010-08-191-11/+6
| | | | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/1933043 Committer: Russ Cox <rsc@golang.org>
* misc/builder: support for uploading tarballs to googlecodeAndrew Gerrand2010-07-301-1/+3
| | | | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/1784042 Committer: Andrew Gerrand <adg@golang.org>
* build: clean.bash to check that GOOS and GOARCH are setAndrew Gerrand2010-07-221-0/+8
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/1843046
* add simple garbage collector benchmarks to dashboardRuss Cox2010-02-091-1/+1
| | | | | | R=agl1 CC=golang-dev http://codereview.appspot.com/207043
* clean.bash: stop if $GOROOT is not setChristopher Wedgwood2009-12-131-0/+7
| | | | | | | | | | | | | Doing rm -rf /pkg/.. blindly isn't nice. It could have unintended consequences. Secondly set bash to abort on (unexpected) errors. R=dho, rsc CC=golang-dev http://codereview.appspot.com/176056 Committer: Russ Cox <rsc@golang.org>
* Remove GOBIN in PATH dependency; don't assume cwd is $GOROOT/srcDevon H. O'Dell2009-12-111-2/+4
| | | | | | | | | | | | | | This change removes the necessity to have GOBIN in $PATH, and also doesn't assume that the build is being run from $GOROOT/src. This is a minimal set of necessary changes to get Go to build happily from the FreeBSD ports collection. R=rsc CC=golang-dev http://codereview.appspot.com/171044 Committer: Russ Cox <rsc@golang.org>
* go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia2009-11-231-2/+2
| | | | | | | | | | | | | | | | | the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115. R=rsc, dsymonds1 http://codereview.appspot.com/157067 Committer: Russ Cox <rsc@golang.org>
* Build changes to support work on the BSDs.Devon H. O'Dell2009-11-141-2/+2
| | | | | | | | | | This does still contain some FreeBSD-specific bits, but it's a pain to do partial diffs. R=rsc http://codereview.appspot.com/152138 Committer: Russ Cox <rsc@golang.org>
* misc cleanupRuss Cox2009-11-011-1/+0
| | | | | R=r http://go/go-review/1016017
* fix build after Mercurial move.Russ Cox2009-10-221-1/+1
| | | | | | | | various missing or incorrect files. R=r CC=go-dev http://go/go-review/1014004
* Move usr/dsymonds/iterable to src/pkg/exp/iterable.David Symonds2009-10-201-1/+1
| | | | | | | | | | Remove remainder of usr/dsymonds. R=rsc,r APPROVED=r DELTA=685 (275 added, 409 deleted, 1 changed) OCL=35810 CL=35933
* fix build:Russ Cox2009-10-141-2/+2
| | | | | | | | avoid infinite loop when cd fails. TBR=r OCL=35750 CL=35750
* Only clean the relevant installed files, not everything. ThisIan Lance Taylor2009-10-081-2/+2
| | | | | | | | | | should let a 6g build and an 8g build be done in sequence without stepping on each other. R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=35478 CL=35481
* clean moreRuss Cox2009-10-031-9/+9
| | | | | | | R=r DELTA=40 (9 added, 3 deleted, 28 changed) OCL=35277 CL=35305
* rename libmach_amd64 libmachRob Pike2009-08-141-1/+1
| | | | | | R=rsc OCL=33273 CL=33276
* mv src/lib to src/pkgRob Pike2009-06-091-1/+1
| | | | | | | | tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102
* move src/runtime -> src/lib/runtime;Russ Cox2009-06-061-1/+1
| | | | | | | | | hand-edited files. R=r DELTA=125 (77 added, 16 deleted, 32 changed) OCL=30001 CL=30008
* clear out pkg tree in clean.bash.Russ Cox2009-05-201-1/+1
| | | | | | | | | rename place-holder to _place_holder_ so it can be avoided. R=r DELTA=5 (2 added, 2 deleted, 1 changed) OCL=29093 CL=29097
* fix build:Russ Cox2009-03-241-0/+1
| | | | | | | | | | 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
* add hash to build; rm pkg/* in clean.bashRuss Cox2008-11-241-0/+1
| | | | | | | R=r DELTA=3 (3 added, 0 deleted, 0 changed) OCL=19935 CL=19937
* convert lib to a Makefile,Russ Cox2008-11-211-1/+1
| | | | | | | | | mainly for "make bufio.install". R=r DELTA=144 (80 added, 62 deleted, 2 changed) OCL=19760 CL=19799
* move src/syscall to src/lib/syscall.Russ Cox2008-09-261-1/+1
| | | | | | | | | | | enforce rule: all kernel data structures and constants go in syscall module. move things that should be in syscall out of net. make net a single package. R=r OCL=15985 CL=15994
* add gobuild.Russ Cox2008-09-191-9/+8
| | | | | | | | | | 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
* make Makefiles safe for parallel makeRuss Cox2008-09-181-1/+1
| | | | | | | | | | | | | use -j4 (4-way parallel) in make.bash. halves time for make.bash on r45 also add libregexp, acid to default build R=r DELTA=90 (39 added, 37 deleted, 14 changed) OCL=15485 CL=15487
* include syscall in default buildRob Pike2008-08-071-1/+1
| | | | | | | | | fix an issue with autolib names by compiling to target location print a bit more when compiling R=gri OCL=13988 CL=13988
* build packages automaticallyRob Pike2008-07-091-1/+1
| | | | SVN=126577
* plan9 line numbers and line tableKen Thompson2008-06-131-1/+1
| | | | SVN=122793
* import the plan 9 libraries libc (lib9) and libbio into the tree.Rob Pike2008-06-121-0/+18
remove the dependency on /home/r. SVN=122482