File tree 3 files changed +30
-1
lines changed
3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ go_library(
26
26
"race_unsafe.go" ,
27
27
"runtime.go" ,
28
28
"runtime_amd64.go" ,
29
- "runtime_constants.go" ,
29
+ "runtime_constants_go125.go" ,
30
+ "runtime_constants_not_go125.go" ,
30
31
"runtime_exectracer2.go" ,
31
32
"runtime_go121_unsafe.go" ,
32
33
"runtime_go124_unsafe.go" ,
Original file line number Diff line number Diff line change
1
+ // Copyright 2023 The gVisor Authors.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // https://go.dev/cl/670497 (1.25) adds a new wait reason, adjusting the value of waitReasonSemacquire.
16
+ //go:build go1.25
17
+
18
+ package sync
19
+
20
+ // Values for the reason argument to gopark, from Go's src/runtime/runtime2.go.
21
+ const (
22
+ WaitReasonSelect uint8 = 9 // +checkconst runtime waitReasonSelect
23
+ WaitReasonChanReceive uint8 = 14 // +checkconst runtime waitReasonChanReceive
24
+ WaitReasonSemacquire uint8 = 19 // +checkconst runtime waitReasonSemacquire
25
+ )
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
+ // https://go.dev/cl/670497 (1.25) adds a new wait reason, adjusting the value of waitReasonSemacquire.
16
+ //go:build !go1.25
17
+
15
18
package sync
16
19
17
20
// Values for the reason argument to gopark, from Go's src/runtime/runtime2.go.
You can’t perform that action at this time.
0 commit comments