Skip to content

Commit 00e91ec

Browse files
committed
all: rename garbage collectors
dumb -> leaking: make it more clear what this "GC" does: leak everything. marksweep -> conservative: "marksweep" is too generic, use "conservative" to differentiate between future garbage collectors: precise marksweep / mark-compact / refcounting.
1 parent 1fd0c8d commit 00e91ec

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

compiler/compiler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func (c *Compiler) TargetData() llvm.TargetData {
169169
func (c *Compiler) selectGC() string {
170170
gc := c.GC
171171
if gc == "" {
172-
gc = "dumb"
172+
gc = "leaking"
173173
}
174174
return gc
175175
}

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ func handleCompilerError(err error) {
585585
func main() {
586586
outpath := flag.String("o", "", "output filename")
587587
opt := flag.String("opt", "z", "optimization level: 0, 1, 2, s, z")
588-
gc := flag.String("gc", "", "garbage collector to use (none, dumb, marksweep)")
588+
gc := flag.String("gc", "", "garbage collector to use (none, leaking, conservative)")
589589
panicStrategy := flag.String("panic", "print", "panic strategy (abort, trap)")
590590
printIR := flag.Bool("printir", false, "print LLVM IR")
591591
dumpSSA := flag.Bool("dumpssa", false, "dump internal Go SSA")

src/runtime/gc_marksweep.go renamed to src/runtime/gc_conservative.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build gc.marksweep
1+
// +build gc.conservative
22

33
package runtime
44

src/runtime/gc_dumb.go renamed to src/runtime/gc_leaking.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build gc.dumb
1+
// +build gc.leaking
22

33
package runtime
44

targets/cortex-m.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"goos": "linux",
44
"goarch": "arm",
55
"compiler": "clang",
6-
"gc": "marksweep",
6+
"gc": "conservative",
77
"linker": "ld.lld",
88
"rtlib": "compiler-rt",
99
"cflags": [

0 commit comments

Comments
 (0)