1
0
mirror of https://github.com/golang/go synced 2024-11-22 14:44:50 -07:00
go/src/strings
Cherry Mui f0de94ff12 cmd/compile: don't inline runtime functions in -d=checkptr build
Runtime functions, e.g. internal/abi.NoEscape, should not be
instrumented with checkptr. But if they are inlined into a
checkptr-enabled function, they will be instrumented, and may
result in a check failure.

Let the compiler not inline runtime functions into checkptr-
enabled functions.

Also undo the change in the strings package in CL 598295, as the
compiler handles it now.

Fixes #68511.
Updates #68415.

Change-Id: I78eb380855ac9dd53c1a1a628ec0da75c3e5a1a0
Reviewed-on: https://go-review.googlesource.com/c/go/+/599435
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
2024-07-22 15:45:09 +00:00
..
builder_test.go
builder.go cmd/compile: don't inline runtime functions in -d=checkptr build 2024-07-22 15:45:09 +00:00
clone_test.go
clone.go
compare_test.go
compare.go strings: more cross-references in docstrings 2024-07-11 15:01:18 +00:00
example_test.go
export_test.go
reader_test.go
reader.go
replace_test.go
replace.go strings: more cross-references in docstrings 2024-07-11 15:01:18 +00:00
search_test.go
search.go
strings_test.go
strings.go regexp: more cross-references in docstrings 2024-07-16 20:07:41 +00:00