Bump gVisor build tags to go1.20

Upstream Go tip has updated its version to 1.19, so we need to bump these build
tags to allow tip testing.

This CL bumps the minimum version in pkg/sync/runtime_amd64.s from 1.8 to 1.14.
The offset was different prior to Go 1.14.

Ideally we'll get checklinkname (or equivalent) to check these remaining unsafe
uses (like internal struct field offsets) soon.

For golang/go#51445.

PiperOrigin-RevId: 433304124
This commit is contained in:
Michael Pratt
2022-03-08 14:02:19 -08:00
committed by gVisor bot
parent bbf4a59086
commit d3d9c4fb2c
8 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build go1.13 && !go1.19
// +build go1.13,!go1.19
//go:build go1.13 && !go1.20
// +build go1.13,!go1.20
// //go:linkname directives type-checked by checklinkname. Any other
// non-linkname assumptions outside the Go 1 compatibility guarantee should
+2 -2
View File
@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build go1.12 && !go1.19
// +build go1.12,!go1.19
//go:build go1.12 && !go1.20
// +build go1.12,!go1.20
// Check type signatures when updating Go version.
+2 -2
View File
@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build amd64 && go1.8 && !go1.19 && go1.1
// +build amd64,go1.8,!go1.19,go1.1
//go:build amd64 && go1.8 && !go1.20 && go1.1
// +build amd64,go1.8,!go1.20,go1.1
// //go:linkname directives type-checked by checklinkname. Any other
// non-linkname assumptions outside the Go 1 compatibility guarantee should
+2 -2
View File
@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build arm64 && go1.8 && !go1.19 && go1.1
// +build arm64,go1.8,!go1.19,go1.1
//go:build arm64 && go1.8 && !go1.20 && go1.1
// +build arm64,go1.8,!go1.20,go1.1
// //go:linkname directives type-checked by checklinkname. Any other
// non-linkname assumptions outside the Go 1 compatibility guarantee should
+2 -2
View File
@@ -3,8 +3,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build go1.13 && !go1.19
// +build go1.13,!go1.19
//go:build go1.13 && !go1.20
// +build go1.13,!go1.20
// When updating the build constraint (above), check that syncMutex matches the
// standard library sync.Mutex definition.
+2 -2
View File
@@ -3,8 +3,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build amd64 && go1.8 && !go1.19 && !goexperiment.staticlockranking
// +build amd64,go1.8,!go1.19,!goexperiment.staticlockranking
//go:build amd64 && go1.8 && !go1.20 && !goexperiment.staticlockranking
// +build amd64,go1.8,!go1.20,!goexperiment.staticlockranking
package sync
+2 -2
View File
@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build amd64 && go1.8 && !go1.19 && !goexperiment.staticlockranking
// +build amd64,go1.8,!go1.19,!goexperiment.staticlockranking
//go:build amd64 && go1.14 && !go1.20 && !goexperiment.staticlockranking
// +build amd64,go1.14,!go1.20,!goexperiment.staticlockranking
#include "textflag.h"
+2 -2
View File
@@ -3,8 +3,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build go1.13 && !go1.19
// +build go1.13,!go1.19
//go:build go1.13 && !go1.20
// +build go1.13,!go1.20
// //go:linkname directives type-checked by checklinkname. Any other
// non-linkname assumptions outside the Go 1 compatibility guarantee should