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).
			
			
Этот коммит содержится в:
		
							родитель
							
								
									d92e16e6dc
								
							
						
					
					
						коммит
						67841207e8
					
				
					 3 изменённых файлов: 4 добавлений и 7 удалений
				
			
		| 
						 | 
					@ -105,8 +105,6 @@ func (c *Config) GC() string {
 | 
				
			||||||
// that can be traced by the garbage collector.
 | 
					// that can be traced by the garbage collector.
 | 
				
			||||||
func (c *Config) NeedsStackObjects() bool {
 | 
					func (c *Config) NeedsStackObjects() bool {
 | 
				
			||||||
	switch c.GC() {
 | 
						switch c.GC() {
 | 
				
			||||||
	case "none":
 | 
					 | 
				
			||||||
		fallthrough
 | 
					 | 
				
			||||||
	case "conservative":
 | 
						case "conservative":
 | 
				
			||||||
		for _, tag := range c.BuildTags() {
 | 
							for _, tag := range c.BuildTags() {
 | 
				
			||||||
			if tag == "tinygo.wasm" {
 | 
								if tag == "tinygo.wasm" {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,8 +4,8 @@
 | 
				
			||||||
package runtime
 | 
					package runtime
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// This GC strategy provides no memory allocation at all. It can be useful to
 | 
					// 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
 | 
					// detect where in a program memory is allocated (via linker errors) or for
 | 
				
			||||||
// with a separate (external) garbage collector.
 | 
					// targets that have far too little RAM even for the leaking memory allocator.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import (
 | 
					import (
 | 
				
			||||||
	"unsafe"
 | 
						"unsafe"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,5 @@
 | 
				
			||||||
//go:build (gc.conservative || gc.none) && tinygo.wasm
 | 
					//go:build gc.conservative && tinygo.wasm
 | 
				
			||||||
// +build gc.conservative gc.none
 | 
					// +build gc.conservative,tinygo.wasm
 | 
				
			||||||
// +build tinygo.wasm
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
package runtime
 | 
					package runtime
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Загрузка…
	
	Создание таблицы
		
		Сослаться в новой задаче