From fe2d20be1fe0a318086e9ac0eeb587880905d6ff Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期六, 11 一月 2020 13:36:51 +0800 Subject: [PATCH] update --- run.go | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/run.go b/run.go index 89cfb1f..c31f84a 100644 --- a/run.go +++ b/run.go @@ -122,9 +122,5 @@ l := len(src) * 4 ptr := unsafe.Pointer(&src[0]) - // It is important to keep in mind that the Go garbage collector - // will not interact with this data, and that if src if freed, - // the behavior of any Go code using the slice is nondeterministic. - // Reference: https://github.com/golang/go/wiki/cgo#turning-c-arrays-into-go-slices return (*[1 << 26]byte)((*[1 << 26]byte)(ptr))[:l:l] } -- Gitblit v1.8.0