From 1fadbc1a76b2d9a11453ef4e21b77c353493ac2c Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 1 Mar 2018 22:22:44 +0000 Subject: Revert "runtime: use bytes.IndexByte in findnull" This reverts commit 7365fac2dbd01960268ee051ed03d961258d4ef4. Reason for revert: breaks the build on some architectures, reading unmapped pages? Change-Id: I3a8c02dc0b649269faacea79ecd8213defa97c54 Reviewed-on: https://go-review.googlesource.com/97995 Reviewed-by: Brad Fitzpatrick --- src/runtime/error.go | 1 - 1 file changed, 1 deletion(-) (limited to 'src/runtime/error.go') diff --git a/src/runtime/error.go b/src/runtime/error.go index 2435f98b7a..e1291e1543 100644 --- a/src/runtime/error.go +++ b/src/runtime/error.go @@ -121,7 +121,6 @@ func printany(i interface{}) { // strings.IndexByte is implemented in runtime/asm_$goarch.s // but amusingly we need go:linkname to get access to it here in the runtime. //go:linkname stringsIndexByte strings.IndexByte -//go:noescape func stringsIndexByte(s string, c byte) int // panicwrap generates a panic for a call to a wrapped value method -- cgit v1.3-5-g9baa