mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 03:53:42 +00:00
Revert "Enable wasm pointer tracking for gc=none."
This reverts commit 0b3a7280fa and updates
the documentation a little bit to explain the purpose of -gc=none. (I'm
thinking about the attiny10 by the way where defaulting to -gc=none
makes sense).
This commit is contained in:
committed by
Ron Evans
parent
d92e16e6dc
commit
67841207e8
@@ -4,8 +4,8 @@
|
||||
package runtime
|
||||
|
||||
// This GC strategy provides no memory allocation at all. It can be useful to
|
||||
// detect where in a program memory is allocated, or to combine this runtime
|
||||
// with a separate (external) garbage collector.
|
||||
// detect where in a program memory is allocated (via linker errors) or for
|
||||
// targets that have far too little RAM even for the leaking memory allocator.
|
||||
|
||||
import (
|
||||
"unsafe"
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
//go:build (gc.conservative || gc.none) && tinygo.wasm
|
||||
// +build gc.conservative gc.none
|
||||
// +build tinygo.wasm
|
||||
//go:build gc.conservative && tinygo.wasm
|
||||
// +build gc.conservative,tinygo.wasm
|
||||
|
||||
package runtime
|
||||
|
||||
|
||||
Reference in New Issue
Block a user