[dev.power64] runtime: make all bitmaps arrays of bytes
The "simpler faster garbage collector" is full of little-endian assumptions.
Instead of trying to correct all the mistakes, just give in and make
everything use bytes.
LGTM=minux
R=minux
CC=dvyukov, golang-codereviews
https://golang.org/cl/124400043
diff --git a/src/pkg/runtime/malloc.go b/src/pkg/runtime/malloc.go
index 68baa80..df03079 100644
--- a/src/pkg/runtime/malloc.go
+++ b/src/pkg/runtime/malloc.go
@@ -4,9 +4,7 @@
package runtime
-import (
- "unsafe"
-)
+import "unsafe"
const (
flagNoScan = 1 << 0 // GC doesn't have to scan object
@@ -278,7 +276,10 @@
// force = 1 - do GC regardless of current heap usage
// force = 2 - go GC and eager sweep
func gogc(force int32) {
- if GOARCH == "power64" || GOARCH == "power64le" || memstats.enablegc == 0 {
+ if false && (GOARCH == "power64" || GOARCH == "power64le") {
+ return
+ }
+ if memstats.enablegc == 0 {
return
}