From d7d7f1e6c5276f87ba8e8f4dfffe5f377b4d06b7 Mon Sep 17 00:00:00 2001 From: Davis Goodin Date: Wed, 8 Nov 2023 07:08:01 -0800 Subject: [PATCH] Remove noescape, nocallback cgo directives: reverted from go1.22 (#129) --- cgo_go122.go | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 cgo_go122.go diff --git a/cgo_go122.go b/cgo_go122.go deleted file mode 100644 index ba6abde2..00000000 --- a/cgo_go122.go +++ /dev/null @@ -1,19 +0,0 @@ -//go:build go1.22 && !cmd_go_bootstrap - -package openssl - -/* -// The following noescape and nocallback directives are used to -// prevent the Go compiler from allocating function parameters on the -// heap. This is just a performance optimization. Only add those -// functions that are known to allocate. -#cgo noescape go_openssl_EVP_PKEY_derive -#cgo nocallback go_openssl_EVP_PKEY_derive -#cgo noescape go_openssl_EVP_PKEY_get_raw_public_key -#cgo nocallback go_openssl_EVP_PKEY_get_raw_public_key -#cgo noescape go_openssl_EVP_PKEY_get_raw_private_key -#cgo nocallback go_openssl_EVP_PKEY_get_raw_private_key -#cgo noescape go_openssl_EVP_DigestSign -#cgo nocallback go_openssl_EVP_DigestSign -*/ -import "C"