diff options
author | pg <pg@yandex-team.com> | 2024-02-07 22:29:27 +0300 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2024-02-09 19:18:47 +0300 |
commit | dd72a9a4ac2bed957bbdba2b1daf415a6aeffdb8 (patch) | |
tree | 38ef0bf208c71937024ea071993a03bf59d687c2 /contrib/go | |
parent | 1cadb6999f578a08c2b686f80dbd5bc96e547c20 (diff) | |
download | ydb-dd72a9a4ac2bed957bbdba2b1daf415a6aeffdb8.tar.gz |
Diffstat (limited to 'contrib/go')
249 files changed, 1801 insertions, 6184 deletions
diff --git a/contrib/go/_std_1.21/src/archive/zip/ya.make b/contrib/go/_std_1.21/src/archive/zip/ya.make index 67a7989479..17ac7cedac 100644 --- a/contrib/go/_std_1.21/src/archive/zip/ya.make +++ b/contrib/go/_std_1.21/src/archive/zip/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( reader.go register.go diff --git a/contrib/go/_std_1.21/src/bufio/ya.make b/contrib/go/_std_1.21/src/bufio/ya.make index 2653a952a9..c4df122359 100644 --- a/contrib/go/_std_1.21/src/bufio/ya.make +++ b/contrib/go/_std_1.21/src/bufio/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( bufio.go scan.go diff --git a/contrib/go/_std_1.21/src/bytes/ya.make b/contrib/go/_std_1.21/src/bytes/ya.make index 334b48bf4b..3fe032a003 100644 --- a/contrib/go/_std_1.21/src/bytes/ya.make +++ b/contrib/go/_std_1.21/src/bytes/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( buffer.go bytes.go diff --git a/contrib/go/_std_1.21/src/compress/flate/ya.make b/contrib/go/_std_1.21/src/compress/flate/ya.make index 4233774cd6..d5c8b7a7d9 100644 --- a/contrib/go/_std_1.21/src/compress/flate/ya.make +++ b/contrib/go/_std_1.21/src/compress/flate/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( deflate.go deflatefast.go diff --git a/contrib/go/_std_1.21/src/compress/gzip/ya.make b/contrib/go/_std_1.21/src/compress/gzip/ya.make index 5db82ad6b3..3372e3c42a 100644 --- a/contrib/go/_std_1.21/src/compress/gzip/ya.make +++ b/contrib/go/_std_1.21/src/compress/gzip/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( gunzip.go gzip.go diff --git a/contrib/go/_std_1.21/src/compress/zlib/ya.make b/contrib/go/_std_1.21/src/compress/zlib/ya.make index a3266d6196..c1ad263a96 100644 --- a/contrib/go/_std_1.21/src/compress/zlib/ya.make +++ b/contrib/go/_std_1.21/src/compress/zlib/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( reader.go writer.go diff --git a/contrib/go/_std_1.21/src/container/heap/ya.make b/contrib/go/_std_1.21/src/container/heap/ya.make index 96efc22808..8edcf4cbe2 100644 --- a/contrib/go/_std_1.21/src/container/heap/ya.make +++ b/contrib/go/_std_1.21/src/container/heap/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( heap.go ) diff --git a/contrib/go/_std_1.21/src/container/list/ya.make b/contrib/go/_std_1.21/src/container/list/ya.make index 304791af08..3e2b70afdf 100644 --- a/contrib/go/_std_1.21/src/container/list/ya.make +++ b/contrib/go/_std_1.21/src/container/list/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( list.go ) diff --git a/contrib/go/_std_1.21/src/context/ya.make b/contrib/go/_std_1.21/src/context/ya.make index 049a27ee95..456d724584 100644 --- a/contrib/go/_std_1.21/src/context/ya.make +++ b/contrib/go/_std_1.21/src/context/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( context.go ) diff --git a/contrib/go/_std_1.21/src/crypto/aes/ya.make b/contrib/go/_std_1.21/src/crypto/aes/ya.make index fbdf4b8ff5..cd14a9427c 100644 --- a/contrib/go/_std_1.21/src/crypto/aes/ya.make +++ b/contrib/go/_std_1.21/src/crypto/aes/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( aes_gcm.go asm_arm64.s @@ -10,7 +10,7 @@ IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) gcm_arm64.s modes.go ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( aes_gcm.go asm_amd64.s diff --git a/contrib/go/_std_1.21/src/crypto/cipher/ya.make b/contrib/go/_std_1.21/src/crypto/cipher/ya.make index 65ddd0581d..8c90c9e7b7 100644 --- a/contrib/go/_std_1.21/src/crypto/cipher/ya.make +++ b/contrib/go/_std_1.21/src/crypto/cipher/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( cbc.go cfb.go diff --git a/contrib/go/_std_1.21/src/crypto/des/ya.make b/contrib/go/_std_1.21/src/crypto/des/ya.make index 86d2957165..89b45855fc 100644 --- a/contrib/go/_std_1.21/src/crypto/des/ya.make +++ b/contrib/go/_std_1.21/src/crypto/des/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( block.go cipher.go diff --git a/contrib/go/_std_1.21/src/crypto/dsa/ya.make b/contrib/go/_std_1.21/src/crypto/dsa/ya.make index 7c3bc4270d..e99e37a88c 100644 --- a/contrib/go/_std_1.21/src/crypto/dsa/ya.make +++ b/contrib/go/_std_1.21/src/crypto/dsa/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( dsa.go ) diff --git a/contrib/go/_std_1.21/src/crypto/ecdh/ya.make b/contrib/go/_std_1.21/src/crypto/ecdh/ya.make index 89cb52bab6..65972bd45b 100644 --- a/contrib/go/_std_1.21/src/crypto/ecdh/ya.make +++ b/contrib/go/_std_1.21/src/crypto/ecdh/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( ecdh.go nist.go diff --git a/contrib/go/_std_1.21/src/crypto/ecdsa/ya.make b/contrib/go/_std_1.21/src/crypto/ecdsa/ya.make index daac877880..1210ccc2ca 100644 --- a/contrib/go/_std_1.21/src/crypto/ecdsa/ya.make +++ b/contrib/go/_std_1.21/src/crypto/ecdsa/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( ecdsa.go ecdsa_legacy.go diff --git a/contrib/go/_std_1.21/src/crypto/ed25519/ya.make b/contrib/go/_std_1.21/src/crypto/ed25519/ya.make index 8d80c7f2a3..ed63e8e751 100644 --- a/contrib/go/_std_1.21/src/crypto/ed25519/ya.make +++ b/contrib/go/_std_1.21/src/crypto/ed25519/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( ed25519.go ) diff --git a/contrib/go/_std_1.21/src/crypto/elliptic/ya.make b/contrib/go/_std_1.21/src/crypto/elliptic/ya.make index 889e150dae..66b7bf4b92 100644 --- a/contrib/go/_std_1.21/src/crypto/elliptic/ya.make +++ b/contrib/go/_std_1.21/src/crypto/elliptic/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( elliptic.go nistec.go diff --git a/contrib/go/_std_1.21/src/crypto/hmac/ya.make b/contrib/go/_std_1.21/src/crypto/hmac/ya.make index a4dba53f87..73f4c8a1e7 100644 --- a/contrib/go/_std_1.21/src/crypto/hmac/ya.make +++ b/contrib/go/_std_1.21/src/crypto/hmac/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( hmac.go ) diff --git a/contrib/go/_std_1.21/src/crypto/internal/alias/ya.make b/contrib/go/_std_1.21/src/crypto/internal/alias/ya.make index ce542f1a28..41656cc71e 100644 --- a/contrib/go/_std_1.21/src/crypto/internal/alias/ya.make +++ b/contrib/go/_std_1.21/src/crypto/internal/alias/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( alias.go ) diff --git a/contrib/go/_std_1.21/src/crypto/internal/bigmod/ya.make b/contrib/go/_std_1.21/src/crypto/internal/bigmod/ya.make index 99fa82d45d..54ff8126bc 100644 --- a/contrib/go/_std_1.21/src/crypto/internal/bigmod/ya.make +++ b/contrib/go/_std_1.21/src/crypto/internal/bigmod/ya.make @@ -1,11 +1,11 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( nat.go nat_arm64.s nat_asm.go ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( nat.go nat_amd64.s diff --git a/contrib/go/_std_1.21/src/crypto/internal/boring/bbig/ya.make b/contrib/go/_std_1.21/src/crypto/internal/boring/bbig/ya.make index ae7c6b9129..adc4645b42 100644 --- a/contrib/go/_std_1.21/src/crypto/internal/boring/bbig/ya.make +++ b/contrib/go/_std_1.21/src/crypto/internal/boring/bbig/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( big.go ) diff --git a/contrib/go/_std_1.21/src/crypto/internal/boring/sig/ya.make b/contrib/go/_std_1.21/src/crypto/internal/boring/sig/ya.make index 1d599a658c..33905fc4a9 100644 --- a/contrib/go/_std_1.21/src/crypto/internal/boring/sig/ya.make +++ b/contrib/go/_std_1.21/src/crypto/internal/boring/sig/ya.make @@ -1,10 +1,10 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( sig.go sig_other.s ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( sig.go sig_amd64.s diff --git a/contrib/go/_std_1.21/src/crypto/internal/boring/ya.make b/contrib/go/_std_1.21/src/crypto/internal/boring/ya.make index 9be26e37dc..8f8de17d45 100644 --- a/contrib/go/_std_1.21/src/crypto/internal/boring/ya.make +++ b/contrib/go/_std_1.21/src/crypto/internal/boring/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( doc.go notboring.go diff --git a/contrib/go/_std_1.21/src/crypto/internal/edwards25519/field/ya.make b/contrib/go/_std_1.21/src/crypto/internal/edwards25519/field/ya.make index 5a08fc0959..3b4dc5336c 100644 --- a/contrib/go/_std_1.21/src/crypto/internal/edwards25519/field/ya.make +++ b/contrib/go/_std_1.21/src/crypto/internal/edwards25519/field/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( fe.go fe_amd64_noasm.go @@ -7,7 +7,7 @@ IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) fe_arm64.s fe_generic.go ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( fe.go fe_amd64.go diff --git a/contrib/go/_std_1.21/src/crypto/internal/edwards25519/ya.make b/contrib/go/_std_1.21/src/crypto/internal/edwards25519/ya.make index 09eccf3d8f..9606de886b 100644 --- a/contrib/go/_std_1.21/src/crypto/internal/edwards25519/ya.make +++ b/contrib/go/_std_1.21/src/crypto/internal/edwards25519/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( doc.go edwards25519.go diff --git a/contrib/go/_std_1.21/src/crypto/internal/nistec/fiat/ya.make b/contrib/go/_std_1.21/src/crypto/internal/nistec/fiat/ya.make index 307c3d482d..fae62cf3ce 100644 --- a/contrib/go/_std_1.21/src/crypto/internal/nistec/fiat/ya.make +++ b/contrib/go/_std_1.21/src/crypto/internal/nistec/fiat/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( p224.go p224_fiat64.go diff --git a/contrib/go/_std_1.21/src/crypto/internal/nistec/ya.make b/contrib/go/_std_1.21/src/crypto/internal/nistec/ya.make index b84525fa7a..7b0e6e2c2c 100644 --- a/contrib/go/_std_1.21/src/crypto/internal/nistec/ya.make +++ b/contrib/go/_std_1.21/src/crypto/internal/nistec/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( nistec.go p224.go @@ -12,7 +12,7 @@ IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) ) GO_EMBED_PATTERN(p256_asm_table.bin) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( nistec.go p224.go diff --git a/contrib/go/_std_1.21/src/crypto/internal/randutil/ya.make b/contrib/go/_std_1.21/src/crypto/internal/randutil/ya.make index 5c2e0c27c5..124a865e36 100644 --- a/contrib/go/_std_1.21/src/crypto/internal/randutil/ya.make +++ b/contrib/go/_std_1.21/src/crypto/internal/randutil/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( randutil.go ) diff --git a/contrib/go/_std_1.21/src/crypto/md5/ya.make b/contrib/go/_std_1.21/src/crypto/md5/ya.make index 057399904e..031350d23b 100644 --- a/contrib/go/_std_1.21/src/crypto/md5/ya.make +++ b/contrib/go/_std_1.21/src/crypto/md5/ya.make @@ -1,12 +1,12 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( md5.go md5block.go md5block_arm64.s md5block_decl.go ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( md5.go md5block.go diff --git a/contrib/go/_std_1.21/src/crypto/rand/ya.make b/contrib/go/_std_1.21/src/crypto/rand/ya.make index 599fc868a3..e382cd825c 100644 --- a/contrib/go/_std_1.21/src/crypto/rand/ya.make +++ b/contrib/go/_std_1.21/src/crypto/rand/ya.make @@ -1,19 +1,19 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE) SRCS( rand.go rand_getentropy.go rand_unix.go util.go ) -ELSEIF (OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64) +ELSEIF (OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE) SRCS( rand.go rand_getrandom.go rand_unix.go util.go ) -ELSEIF (OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( rand.go rand_windows.go diff --git a/contrib/go/_std_1.21/src/crypto/rc4/ya.make b/contrib/go/_std_1.21/src/crypto/rc4/ya.make index c3c06ca06a..6afe1ff6c3 100644 --- a/contrib/go/_std_1.21/src/crypto/rc4/ya.make +++ b/contrib/go/_std_1.21/src/crypto/rc4/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( rc4.go ) diff --git a/contrib/go/_std_1.21/src/crypto/rsa/ya.make b/contrib/go/_std_1.21/src/crypto/rsa/ya.make index c6a28274c8..3d7fa97ef2 100644 --- a/contrib/go/_std_1.21/src/crypto/rsa/ya.make +++ b/contrib/go/_std_1.21/src/crypto/rsa/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( notboring.go pkcs1v15.go diff --git a/contrib/go/_std_1.21/src/crypto/sha1/ya.make b/contrib/go/_std_1.21/src/crypto/sha1/ya.make index 7b6b33eb6c..1000a85a1b 100644 --- a/contrib/go/_std_1.21/src/crypto/sha1/ya.make +++ b/contrib/go/_std_1.21/src/crypto/sha1/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( notboring.go sha1.go @@ -7,7 +7,7 @@ IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) sha1block_arm64.go sha1block_arm64.s ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( notboring.go sha1.go diff --git a/contrib/go/_std_1.21/src/crypto/sha256/ya.make b/contrib/go/_std_1.21/src/crypto/sha256/ya.make index 8662cd09da..3e5d6a6bc5 100644 --- a/contrib/go/_std_1.21/src/crypto/sha256/ya.make +++ b/contrib/go/_std_1.21/src/crypto/sha256/ya.make @@ -1,12 +1,12 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( sha256.go sha256block.go sha256block_arm64.go sha256block_arm64.s ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( sha256.go sha256block.go diff --git a/contrib/go/_std_1.21/src/crypto/sha512/ya.make b/contrib/go/_std_1.21/src/crypto/sha512/ya.make index 056fb4bb0a..a4ed4b4e5f 100644 --- a/contrib/go/_std_1.21/src/crypto/sha512/ya.make +++ b/contrib/go/_std_1.21/src/crypto/sha512/ya.make @@ -1,12 +1,12 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( sha512.go sha512block.go sha512block_arm64.go sha512block_arm64.s ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( sha512.go sha512block.go diff --git a/contrib/go/_std_1.21/src/crypto/subtle/ya.make b/contrib/go/_std_1.21/src/crypto/subtle/ya.make index 77f38d8592..5992c1e638 100644 --- a/contrib/go/_std_1.21/src/crypto/subtle/ya.make +++ b/contrib/go/_std_1.21/src/crypto/subtle/ya.make @@ -1,12 +1,12 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( constant_time.go xor.go xor_arm64.go xor_arm64.s ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( constant_time.go xor.go diff --git a/contrib/go/_std_1.21/src/crypto/tls/ya.make b/contrib/go/_std_1.21/src/crypto/tls/ya.make index 20c3f741bd..af1ba6bf5b 100644 --- a/contrib/go/_std_1.21/src/crypto/tls/ya.make +++ b/contrib/go/_std_1.21/src/crypto/tls/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( alert.go auth.go diff --git a/contrib/go/_std_1.21/src/crypto/x509/internal/macos/ya.make b/contrib/go/_std_1.21/src/crypto/x509/internal/macos/ya.make index bc7d71ecc7..0888cd5254 100644 --- a/contrib/go/_std_1.21/src/crypto/x509/internal/macos/ya.make +++ b/contrib/go/_std_1.21/src/crypto/x509/internal/macos/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE) SRCS( corefoundation.go corefoundation.s diff --git a/contrib/go/_std_1.21/src/crypto/x509/pkix/ya.make b/contrib/go/_std_1.21/src/crypto/x509/pkix/ya.make index 1208be1395..543cfd4e2e 100644 --- a/contrib/go/_std_1.21/src/crypto/x509/pkix/ya.make +++ b/contrib/go/_std_1.21/src/crypto/x509/pkix/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( pkix.go ) diff --git a/contrib/go/_std_1.21/src/crypto/x509/ya.make b/contrib/go/_std_1.21/src/crypto/x509/ya.make index 1010a6af30..723d6186ef 100644 --- a/contrib/go/_std_1.21/src/crypto/x509/ya.make +++ b/contrib/go/_std_1.21/src/crypto/x509/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE) SRCS( cert_pool.go notboring.go @@ -13,7 +13,7 @@ IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64) verify.go x509.go ) -ELSEIF (OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64) +ELSEIF (OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE) SRCS( cert_pool.go notboring.go @@ -28,7 +28,7 @@ ELSEIF (OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64) verify.go x509.go ) -ELSEIF (OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( cert_pool.go notboring.go diff --git a/contrib/go/_std_1.21/src/crypto/ya.make b/contrib/go/_std_1.21/src/crypto/ya.make index e845c11a30..f157c0cf88 100644 --- a/contrib/go/_std_1.21/src/crypto/ya.make +++ b/contrib/go/_std_1.21/src/crypto/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( crypto.go ) diff --git a/contrib/go/_std_1.21/src/database/sql/driver/ya.make b/contrib/go/_std_1.21/src/database/sql/driver/ya.make index b11010e3b9..39d24683ce 100644 --- a/contrib/go/_std_1.21/src/database/sql/driver/ya.make +++ b/contrib/go/_std_1.21/src/database/sql/driver/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( driver.go types.go diff --git a/contrib/go/_std_1.21/src/debug/dwarf/ya.make b/contrib/go/_std_1.21/src/debug/dwarf/ya.make index 7f257537c0..f136319ac5 100644 --- a/contrib/go/_std_1.21/src/debug/dwarf/ya.make +++ b/contrib/go/_std_1.21/src/debug/dwarf/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( attr_string.go buf.go diff --git a/contrib/go/_std_1.21/src/debug/elf/ya.make b/contrib/go/_std_1.21/src/debug/elf/ya.make index c37364ff4f..327277f8e3 100644 --- a/contrib/go/_std_1.21/src/debug/elf/ya.make +++ b/contrib/go/_std_1.21/src/debug/elf/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( elf.go file.go diff --git a/contrib/go/_std_1.21/src/embed/ya.make b/contrib/go/_std_1.21/src/embed/ya.make index 83df4f0a84..7e457ae3e7 100644 --- a/contrib/go/_std_1.21/src/embed/ya.make +++ b/contrib/go/_std_1.21/src/embed/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( embed.go ) diff --git a/contrib/go/_std_1.21/src/encoding/asn1/ya.make b/contrib/go/_std_1.21/src/encoding/asn1/ya.make index 087b03ae7e..4f5c91bd4b 100644 --- a/contrib/go/_std_1.21/src/encoding/asn1/ya.make +++ b/contrib/go/_std_1.21/src/encoding/asn1/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( asn1.go common.go diff --git a/contrib/go/_std_1.21/src/encoding/base64/ya.make b/contrib/go/_std_1.21/src/encoding/base64/ya.make index b066d25b07..43e0d68680 100644 --- a/contrib/go/_std_1.21/src/encoding/base64/ya.make +++ b/contrib/go/_std_1.21/src/encoding/base64/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( base64.go ) diff --git a/contrib/go/_std_1.21/src/encoding/binary/ya.make b/contrib/go/_std_1.21/src/encoding/binary/ya.make index 2701942c51..b3f14e240a 100644 --- a/contrib/go/_std_1.21/src/encoding/binary/ya.make +++ b/contrib/go/_std_1.21/src/encoding/binary/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( binary.go native_endian_little.go diff --git a/contrib/go/_std_1.21/src/encoding/csv/ya.make b/contrib/go/_std_1.21/src/encoding/csv/ya.make index a3266d6196..c1ad263a96 100644 --- a/contrib/go/_std_1.21/src/encoding/csv/ya.make +++ b/contrib/go/_std_1.21/src/encoding/csv/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( reader.go writer.go diff --git a/contrib/go/_std_1.21/src/encoding/gob/ya.make b/contrib/go/_std_1.21/src/encoding/gob/ya.make index 21022ca094..a413e6b335 100644 --- a/contrib/go/_std_1.21/src/encoding/gob/ya.make +++ b/contrib/go/_std_1.21/src/encoding/gob/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( dec_helpers.go decode.go diff --git a/contrib/go/_std_1.21/src/encoding/hex/ya.make b/contrib/go/_std_1.21/src/encoding/hex/ya.make index 47b665663d..e75804d2fb 100644 --- a/contrib/go/_std_1.21/src/encoding/hex/ya.make +++ b/contrib/go/_std_1.21/src/encoding/hex/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( hex.go ) diff --git a/contrib/go/_std_1.21/src/encoding/json/ya.make b/contrib/go/_std_1.21/src/encoding/json/ya.make index e33cb0a52b..2eda93fb73 100644 --- a/contrib/go/_std_1.21/src/encoding/json/ya.make +++ b/contrib/go/_std_1.21/src/encoding/json/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( decode.go encode.go diff --git a/contrib/go/_std_1.21/src/encoding/pem/ya.make b/contrib/go/_std_1.21/src/encoding/pem/ya.make index fdee90eaf8..46f0021dfa 100644 --- a/contrib/go/_std_1.21/src/encoding/pem/ya.make +++ b/contrib/go/_std_1.21/src/encoding/pem/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( pem.go ) diff --git a/contrib/go/_std_1.21/src/encoding/xml/ya.make b/contrib/go/_std_1.21/src/encoding/xml/ya.make index 15ccec9b22..30ba3c711a 100644 --- a/contrib/go/_std_1.21/src/encoding/xml/ya.make +++ b/contrib/go/_std_1.21/src/encoding/xml/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( marshal.go read.go diff --git a/contrib/go/_std_1.21/src/encoding/ya.make b/contrib/go/_std_1.21/src/encoding/ya.make index 3464de07bc..cd002c9f9b 100644 --- a/contrib/go/_std_1.21/src/encoding/ya.make +++ b/contrib/go/_std_1.21/src/encoding/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( encoding.go ) diff --git a/contrib/go/_std_1.21/src/errors/ya.make b/contrib/go/_std_1.21/src/errors/ya.make index 3edd112295..1ee8b3a381 100644 --- a/contrib/go/_std_1.21/src/errors/ya.make +++ b/contrib/go/_std_1.21/src/errors/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( errors.go join.go diff --git a/contrib/go/_std_1.21/src/flag/ya.make b/contrib/go/_std_1.21/src/flag/ya.make index 39b48021ba..635a58f66a 100644 --- a/contrib/go/_std_1.21/src/flag/ya.make +++ b/contrib/go/_std_1.21/src/flag/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( flag.go ) diff --git a/contrib/go/_std_1.21/src/fmt/ya.make b/contrib/go/_std_1.21/src/fmt/ya.make index 5f12d73d77..90a6358255 100644 --- a/contrib/go/_std_1.21/src/fmt/ya.make +++ b/contrib/go/_std_1.21/src/fmt/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( doc.go errors.go diff --git a/contrib/go/_std_1.21/src/go/ast/ya.make b/contrib/go/_std_1.21/src/go/ast/ya.make index b3582abfe5..3c8c30af3a 100644 --- a/contrib/go/_std_1.21/src/go/ast/ya.make +++ b/contrib/go/_std_1.21/src/go/ast/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( ast.go commentmap.go diff --git a/contrib/go/_std_1.21/src/go/build/constraint/ya.make b/contrib/go/_std_1.21/src/go/build/constraint/ya.make index 6a494088f3..1485188ec1 100644 --- a/contrib/go/_std_1.21/src/go/build/constraint/ya.make +++ b/contrib/go/_std_1.21/src/go/build/constraint/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( expr.go vers.go diff --git a/contrib/go/_std_1.21/src/go/build/ya.make b/contrib/go/_std_1.21/src/go/build/ya.make index fb228cc066..81285d42e1 100644 --- a/contrib/go/_std_1.21/src/go/build/ya.make +++ b/contrib/go/_std_1.21/src/go/build/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( build.go doc.go diff --git a/contrib/go/_std_1.21/src/go/constant/ya.make b/contrib/go/_std_1.21/src/go/constant/ya.make index ad253877a5..c68385c388 100644 --- a/contrib/go/_std_1.21/src/go/constant/ya.make +++ b/contrib/go/_std_1.21/src/go/constant/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( kind_string.go value.go diff --git a/contrib/go/_std_1.21/src/go/doc/comment/ya.make b/contrib/go/_std_1.21/src/go/doc/comment/ya.make index 246f08f681..3cefb61c82 100644 --- a/contrib/go/_std_1.21/src/go/doc/comment/ya.make +++ b/contrib/go/_std_1.21/src/go/doc/comment/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( doc.go html.go diff --git a/contrib/go/_std_1.21/src/go/doc/ya.make b/contrib/go/_std_1.21/src/go/doc/ya.make index 50189f80e9..eb1bdf311f 100644 --- a/contrib/go/_std_1.21/src/go/doc/ya.make +++ b/contrib/go/_std_1.21/src/go/doc/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( comment.go doc.go diff --git a/contrib/go/_std_1.21/src/go/format/ya.make b/contrib/go/_std_1.21/src/go/format/ya.make index ea28815691..32b665cb9d 100644 --- a/contrib/go/_std_1.21/src/go/format/ya.make +++ b/contrib/go/_std_1.21/src/go/format/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( format.go internal.go diff --git a/contrib/go/_std_1.21/src/go/importer/ya.make b/contrib/go/_std_1.21/src/go/importer/ya.make index 26837ddf66..0c713a6638 100644 --- a/contrib/go/_std_1.21/src/go/importer/ya.make +++ b/contrib/go/_std_1.21/src/go/importer/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( importer.go ) diff --git a/contrib/go/_std_1.21/src/go/internal/gccgoimporter/ya.make b/contrib/go/_std_1.21/src/go/internal/gccgoimporter/ya.make index 5a4102efb2..84654bd340 100644 --- a/contrib/go/_std_1.21/src/go/internal/gccgoimporter/ya.make +++ b/contrib/go/_std_1.21/src/go/internal/gccgoimporter/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( ar.go gccgoinstallation.go diff --git a/contrib/go/_std_1.21/src/go/internal/gcimporter/ya.make b/contrib/go/_std_1.21/src/go/internal/gcimporter/ya.make index 83a70c21a2..07d8498e2b 100644 --- a/contrib/go/_std_1.21/src/go/internal/gcimporter/ya.make +++ b/contrib/go/_std_1.21/src/go/internal/gcimporter/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( exportdata.go gcimporter.go diff --git a/contrib/go/_std_1.21/src/go/internal/srcimporter/ya.make b/contrib/go/_std_1.21/src/go/internal/srcimporter/ya.make index 58566e2fc6..5137b1fbdb 100644 --- a/contrib/go/_std_1.21/src/go/internal/srcimporter/ya.make +++ b/contrib/go/_std_1.21/src/go/internal/srcimporter/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( srcimporter.go ) diff --git a/contrib/go/_std_1.21/src/go/internal/typeparams/ya.make b/contrib/go/_std_1.21/src/go/internal/typeparams/ya.make index 1b053d9057..679798df57 100644 --- a/contrib/go/_std_1.21/src/go/internal/typeparams/ya.make +++ b/contrib/go/_std_1.21/src/go/internal/typeparams/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( typeparams.go ) diff --git a/contrib/go/_std_1.21/src/go/parser/ya.make b/contrib/go/_std_1.21/src/go/parser/ya.make index a4967d0065..2fb9b31683 100644 --- a/contrib/go/_std_1.21/src/go/parser/ya.make +++ b/contrib/go/_std_1.21/src/go/parser/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( interface.go parser.go diff --git a/contrib/go/_std_1.21/src/go/printer/ya.make b/contrib/go/_std_1.21/src/go/printer/ya.make index 8e1654ddd8..f62ff271e3 100644 --- a/contrib/go/_std_1.21/src/go/printer/ya.make +++ b/contrib/go/_std_1.21/src/go/printer/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( comment.go gobuild.go diff --git a/contrib/go/_std_1.21/src/go/scanner/ya.make b/contrib/go/_std_1.21/src/go/scanner/ya.make index 245c88f892..ff56570080 100644 --- a/contrib/go/_std_1.21/src/go/scanner/ya.make +++ b/contrib/go/_std_1.21/src/go/scanner/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( errors.go scanner.go diff --git a/contrib/go/_std_1.21/src/go/token/ya.make b/contrib/go/_std_1.21/src/go/token/ya.make index 496ef08039..7b32a7035e 100644 --- a/contrib/go/_std_1.21/src/go/token/ya.make +++ b/contrib/go/_std_1.21/src/go/token/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( position.go serialize.go diff --git a/contrib/go/_std_1.21/src/go/types/ya.make b/contrib/go/_std_1.21/src/go/types/ya.make index 6b7c901439..bc6e5fa627 100644 --- a/contrib/go/_std_1.21/src/go/types/ya.make +++ b/contrib/go/_std_1.21/src/go/types/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( api.go array.go diff --git a/contrib/go/_std_1.21/src/hash/adler32/ya.make b/contrib/go/_std_1.21/src/hash/adler32/ya.make index b9d42e7814..5de28bc1bf 100644 --- a/contrib/go/_std_1.21/src/hash/adler32/ya.make +++ b/contrib/go/_std_1.21/src/hash/adler32/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( adler32.go ) diff --git a/contrib/go/_std_1.21/src/hash/crc32/ya.make b/contrib/go/_std_1.21/src/hash/crc32/ya.make index 7835374e30..f6a07a3c18 100644 --- a/contrib/go/_std_1.21/src/hash/crc32/ya.make +++ b/contrib/go/_std_1.21/src/hash/crc32/ya.make @@ -1,12 +1,12 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( crc32.go crc32_arm64.go crc32_arm64.s crc32_generic.go ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( crc32.go crc32_amd64.go diff --git a/contrib/go/_std_1.21/src/hash/fnv/ya.make b/contrib/go/_std_1.21/src/hash/fnv/ya.make index 63b4cf80a0..a65fd40890 100644 --- a/contrib/go/_std_1.21/src/hash/fnv/ya.make +++ b/contrib/go/_std_1.21/src/hash/fnv/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( fnv.go ) diff --git a/contrib/go/_std_1.21/src/hash/ya.make b/contrib/go/_std_1.21/src/hash/ya.make index 966e29d1db..3275d930ef 100644 --- a/contrib/go/_std_1.21/src/hash/ya.make +++ b/contrib/go/_std_1.21/src/hash/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( hash.go ) diff --git a/contrib/go/_std_1.21/src/html/template/ya.make b/contrib/go/_std_1.21/src/html/template/ya.make index 9af444403c..006ef2a147 100644 --- a/contrib/go/_std_1.21/src/html/template/ya.make +++ b/contrib/go/_std_1.21/src/html/template/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( attr.go attr_string.go diff --git a/contrib/go/_std_1.21/src/html/ya.make b/contrib/go/_std_1.21/src/html/ya.make index a3557cf334..5d61bc9ccd 100644 --- a/contrib/go/_std_1.21/src/html/ya.make +++ b/contrib/go/_std_1.21/src/html/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( entity.go escape.go diff --git a/contrib/go/_std_1.21/src/internal/abi/ya.make b/contrib/go/_std_1.21/src/internal/abi/ya.make index 5fe57a7a92..688290ceb2 100644 --- a/contrib/go/_std_1.21/src/internal/abi/ya.make +++ b/contrib/go/_std_1.21/src/internal/abi/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( abi.go abi_arm64.go @@ -13,7 +13,7 @@ IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) type.go unsafestring_go120.go ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( abi.go abi_amd64.go diff --git a/contrib/go/_std_1.21/src/internal/bisect/ya.make b/contrib/go/_std_1.21/src/internal/bisect/ya.make index 7233a98201..0536ad65c1 100644 --- a/contrib/go/_std_1.21/src/internal/bisect/ya.make +++ b/contrib/go/_std_1.21/src/internal/bisect/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( bisect.go ) diff --git a/contrib/go/_std_1.21/src/internal/buildcfg/ya.make b/contrib/go/_std_1.21/src/internal/buildcfg/ya.make index 37bdd6d75d..e3e4e29011 100644 --- a/contrib/go/_std_1.21/src/internal/buildcfg/ya.make +++ b/contrib/go/_std_1.21/src/internal/buildcfg/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( cfg.go exp.go diff --git a/contrib/go/_std_1.21/src/internal/bytealg/ya.make b/contrib/go/_std_1.21/src/internal/bytealg/ya.make index b7ef7e93bc..48378c6e78 100644 --- a/contrib/go/_std_1.21/src/internal/bytealg/ya.make +++ b/contrib/go/_std_1.21/src/internal/bytealg/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( bytealg.go compare_arm64.s @@ -15,7 +15,7 @@ IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) indexbyte_arm64.s indexbyte_native.go ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( bytealg.go compare_amd64.s diff --git a/contrib/go/_std_1.21/src/internal/coverage/calloc/batchcounteralloc.go b/contrib/go/_std_1.21/src/internal/coverage/calloc/batchcounteralloc.go deleted file mode 100644 index 2b6495d7a2..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/calloc/batchcounteralloc.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package calloc - -// This package contains a simple "batch" allocator for allocating -// coverage counters (slices of uint32 basically), for working with -// coverage data files. Collections of counter arrays tend to all be -// live/dead over the same time period, so a good fit for batch -// allocation. - -type BatchCounterAlloc struct { - pool []uint32 -} - -func (ca *BatchCounterAlloc) AllocateCounters(n int) []uint32 { - const chunk = 8192 - if n > cap(ca.pool) { - siz := chunk - if n > chunk { - siz = n - } - ca.pool = make([]uint32, siz) - } - rv := ca.pool[:n] - ca.pool = ca.pool[n:] - return rv -} diff --git a/contrib/go/_std_1.21/src/internal/coverage/calloc/ya.make b/contrib/go/_std_1.21/src/internal/coverage/calloc/ya.make deleted file mode 100644 index 902e866c10..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/calloc/ya.make +++ /dev/null @@ -1,7 +0,0 @@ -GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) - SRCS( - batchcounteralloc.go - ) -ENDIF() -END() diff --git a/contrib/go/_std_1.21/src/internal/coverage/cformat/format.go b/contrib/go/_std_1.21/src/internal/coverage/cformat/format.go deleted file mode 100644 index 7e7a2778c7..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/cformat/format.go +++ /dev/null @@ -1,352 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package cformat - -// This package provides apis for producing human-readable summaries -// of coverage data (e.g. a coverage percentage for a given package or -// set of packages) and for writing data in the legacy test format -// emitted by "go test -coverprofile=<outfile>". -// -// The model for using these apis is to create a Formatter object, -// then make a series of calls to SetPackage and AddUnit passing in -// data read from coverage meta-data and counter-data files. E.g. -// -// myformatter := cformat.NewFormatter() -// ... -// for each package P in meta-data file: { -// myformatter.SetPackage(P) -// for each function F in P: { -// for each coverable unit U in F: { -// myformatter.AddUnit(U) -// } -// } -// } -// myformatter.EmitPercent(os.Stdout, "", true, true) -// myformatter.EmitTextual(somefile) -// -// These apis are linked into tests that are built with "-cover", and -// called at the end of test execution to produce text output or -// emit coverage percentages. - -import ( - "fmt" - "internal/coverage" - "internal/coverage/cmerge" - "io" - "sort" - "text/tabwriter" -) - -type Formatter struct { - // Maps import path to package state. - pm map[string]*pstate - // Records current package being visited. - pkg string - // Pointer to current package state. - p *pstate - // Counter mode. - cm coverage.CounterMode -} - -// pstate records package-level coverage data state: -// - a table of functions (file/fname/literal) -// - a map recording the index/ID of each func encountered so far -// - a table storing execution count for the coverable units in each func -type pstate struct { - // slice of unique functions - funcs []fnfile - // maps function to index in slice above (index acts as function ID) - funcTable map[fnfile]uint32 - - // A table storing coverage counts for each coverable unit. - unitTable map[extcu]uint32 -} - -// extcu encapsulates a coverable unit within some function. -type extcu struct { - fnfid uint32 // index into p.funcs slice - coverage.CoverableUnit -} - -// fnfile is a function-name/file-name tuple. -type fnfile struct { - file string - fname string - lit bool -} - -func NewFormatter(cm coverage.CounterMode) *Formatter { - return &Formatter{ - pm: make(map[string]*pstate), - cm: cm, - } -} - -// SetPackage tells the formatter that we're about to visit the -// coverage data for the package with the specified import path. -// Note that it's OK to call SetPackage more than once with the -// same import path; counter data values will be accumulated. -func (fm *Formatter) SetPackage(importpath string) { - if importpath == fm.pkg { - return - } - fm.pkg = importpath - ps, ok := fm.pm[importpath] - if !ok { - ps = new(pstate) - fm.pm[importpath] = ps - ps.unitTable = make(map[extcu]uint32) - ps.funcTable = make(map[fnfile]uint32) - } - fm.p = ps -} - -// AddUnit passes info on a single coverable unit (file, funcname, -// literal flag, range of lines, and counter value) to the formatter. -// Counter values will be accumulated where appropriate. -func (fm *Formatter) AddUnit(file string, fname string, isfnlit bool, unit coverage.CoverableUnit, count uint32) { - if fm.p == nil { - panic("AddUnit invoked before SetPackage") - } - fkey := fnfile{file: file, fname: fname, lit: isfnlit} - idx, ok := fm.p.funcTable[fkey] - if !ok { - idx = uint32(len(fm.p.funcs)) - fm.p.funcs = append(fm.p.funcs, fkey) - fm.p.funcTable[fkey] = idx - } - ukey := extcu{fnfid: idx, CoverableUnit: unit} - pcount := fm.p.unitTable[ukey] - var result uint32 - if fm.cm == coverage.CtrModeSet { - if count != 0 || pcount != 0 { - result = 1 - } - } else { - // Use saturating arithmetic. - result, _ = cmerge.SaturatingAdd(pcount, count) - } - fm.p.unitTable[ukey] = result -} - -// sortUnits sorts a slice of extcu objects in a package according to -// source position information (e.g. file and line). Note that we don't -// include function name as part of the sorting criteria, the thinking -// being that is better to provide things in the original source order. -func (p *pstate) sortUnits(units []extcu) { - sort.Slice(units, func(i, j int) bool { - ui := units[i] - uj := units[j] - ifile := p.funcs[ui.fnfid].file - jfile := p.funcs[uj.fnfid].file - if ifile != jfile { - return ifile < jfile - } - // NB: not taking function literal flag into account here (no - // need, since other fields are guaranteed to be distinct). - if units[i].StLine != units[j].StLine { - return units[i].StLine < units[j].StLine - } - if units[i].EnLine != units[j].EnLine { - return units[i].EnLine < units[j].EnLine - } - if units[i].StCol != units[j].StCol { - return units[i].StCol < units[j].StCol - } - if units[i].EnCol != units[j].EnCol { - return units[i].EnCol < units[j].EnCol - } - return units[i].NxStmts < units[j].NxStmts - }) -} - -// EmitTextual writes the accumulated coverage data in the legacy -// cmd/cover text format to the writer 'w'. We sort the data items by -// importpath, source file, and line number before emitting (this sorting -// is not explicitly mandated by the format, but seems like a good idea -// for repeatable/deterministic dumps). -func (fm *Formatter) EmitTextual(w io.Writer) error { - if fm.cm == coverage.CtrModeInvalid { - panic("internal error, counter mode unset") - } - if _, err := fmt.Fprintf(w, "mode: %s\n", fm.cm.String()); err != nil { - return err - } - pkgs := make([]string, 0, len(fm.pm)) - for importpath := range fm.pm { - pkgs = append(pkgs, importpath) - } - sort.Strings(pkgs) - for _, importpath := range pkgs { - p := fm.pm[importpath] - units := make([]extcu, 0, len(p.unitTable)) - for u := range p.unitTable { - units = append(units, u) - } - p.sortUnits(units) - for _, u := range units { - count := p.unitTable[u] - file := p.funcs[u.fnfid].file - if _, err := fmt.Fprintf(w, "%s:%d.%d,%d.%d %d %d\n", - file, u.StLine, u.StCol, - u.EnLine, u.EnCol, u.NxStmts, count); err != nil { - return err - } - } - } - return nil -} - -// EmitPercent writes out a "percentage covered" string to the writer 'w'. -func (fm *Formatter) EmitPercent(w io.Writer, covpkgs string, noteEmpty bool, aggregate bool) error { - pkgs := make([]string, 0, len(fm.pm)) - for importpath := range fm.pm { - pkgs = append(pkgs, importpath) - } - - rep := func(cov, tot uint64) error { - if tot != 0 { - if _, err := fmt.Fprintf(w, "coverage: %.1f%% of statements%s\n", - 100.0*float64(cov)/float64(tot), covpkgs); err != nil { - return err - } - } else if noteEmpty { - if _, err := fmt.Fprintf(w, "coverage: [no statements]\n"); err != nil { - return err - } - } - return nil - } - - sort.Strings(pkgs) - var totalStmts, coveredStmts uint64 - for _, importpath := range pkgs { - p := fm.pm[importpath] - if !aggregate { - totalStmts, coveredStmts = 0, 0 - } - for unit, count := range p.unitTable { - nx := uint64(unit.NxStmts) - totalStmts += nx - if count != 0 { - coveredStmts += nx - } - } - if !aggregate { - if _, err := fmt.Fprintf(w, "\t%s\t\t", importpath); err != nil { - return err - } - if err := rep(coveredStmts, totalStmts); err != nil { - return err - } - } - } - if aggregate { - if err := rep(coveredStmts, totalStmts); err != nil { - return err - } - } - - return nil -} - -// EmitFuncs writes out a function-level summary to the writer 'w'. A -// note on handling function literals: although we collect coverage -// data for unnamed literals, it probably does not make sense to -// include them in the function summary since there isn't any good way -// to name them (this is also consistent with the legacy cmd/cover -// implementation). We do want to include their counts in the overall -// summary however. -func (fm *Formatter) EmitFuncs(w io.Writer) error { - if fm.cm == coverage.CtrModeInvalid { - panic("internal error, counter mode unset") - } - perc := func(covered, total uint64) float64 { - if total == 0 { - total = 1 - } - return 100.0 * float64(covered) / float64(total) - } - tabber := tabwriter.NewWriter(w, 1, 8, 1, '\t', 0) - defer tabber.Flush() - allStmts := uint64(0) - covStmts := uint64(0) - - pkgs := make([]string, 0, len(fm.pm)) - for importpath := range fm.pm { - pkgs = append(pkgs, importpath) - } - sort.Strings(pkgs) - - // Emit functions for each package, sorted by import path. - for _, importpath := range pkgs { - p := fm.pm[importpath] - if len(p.unitTable) == 0 { - continue - } - units := make([]extcu, 0, len(p.unitTable)) - for u := range p.unitTable { - units = append(units, u) - } - - // Within a package, sort the units, then walk through the - // sorted array. Each time we hit a new function, emit the - // summary entry for the previous function, then make one last - // emit call at the end of the loop. - p.sortUnits(units) - fname := "" - ffile := "" - flit := false - var fline uint32 - var cstmts, tstmts uint64 - captureFuncStart := func(u extcu) { - fname = p.funcs[u.fnfid].fname - ffile = p.funcs[u.fnfid].file - flit = p.funcs[u.fnfid].lit - fline = u.StLine - } - emitFunc := func(u extcu) error { - // Don't emit entries for function literals (see discussion - // in function header comment above). - if !flit { - if _, err := fmt.Fprintf(tabber, "%s:%d:\t%s\t%.1f%%\n", - ffile, fline, fname, perc(cstmts, tstmts)); err != nil { - return err - } - } - captureFuncStart(u) - allStmts += tstmts - covStmts += cstmts - tstmts = 0 - cstmts = 0 - return nil - } - for k, u := range units { - if k == 0 { - captureFuncStart(u) - } else { - if fname != p.funcs[u.fnfid].fname { - // New function; emit entry for previous one. - if err := emitFunc(u); err != nil { - return err - } - } - } - tstmts += uint64(u.NxStmts) - count := p.unitTable[u] - if count != 0 { - cstmts += uint64(u.NxStmts) - } - } - if err := emitFunc(extcu{}); err != nil { - return err - } - } - if _, err := fmt.Fprintf(tabber, "%s\t%s\t%.1f%%\n", - "total", "(statements)", perc(covStmts, allStmts)); err != nil { - return err - } - return nil -} diff --git a/contrib/go/_std_1.21/src/internal/coverage/cformat/ya.make b/contrib/go/_std_1.21/src/internal/coverage/cformat/ya.make deleted file mode 100644 index f0c2855898..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/cformat/ya.make +++ /dev/null @@ -1,7 +0,0 @@ -GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) - SRCS( - format.go - ) -ENDIF() -END() diff --git a/contrib/go/_std_1.21/src/internal/coverage/cmddefs.go b/contrib/go/_std_1.21/src/internal/coverage/cmddefs.go deleted file mode 100644 index 49376a4665..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/cmddefs.go +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package coverage - -// CoverPkgConfig is a bundle of information passed from the Go -// command to the cover command during "go build -cover" runs. The -// Go command creates and fills in a struct as below, then passes -// file containing the encoded JSON for the struct to the "cover" -// tool when instrumenting the source files in a Go package. -type CoverPkgConfig struct { - // File into which cmd/cover should emit summary info - // when instrumentation is complete. - OutConfig string - - // Import path for the package being instrumented. - PkgPath string - - // Package name. - PkgName string - - // Instrumentation granularity: one of "perfunc" or "perblock" (default) - Granularity string - - // Module path for this package (empty if no go.mod in use) - ModulePath string - - // Local mode indicates we're doing a coverage build or test of a - // package selected via local import path, e.g. "./..." or - // "./foo/bar" as opposed to a non-relative import path. See the - // corresponding field in cmd/go's PackageInternal struct for more - // info. - Local bool -} - -// CoverFixupConfig contains annotations/notes generated by the -// cmd/cover tool (during instrumentation) to be passed on to the -// compiler when the instrumented code is compiled. The cmd/cover tool -// creates a struct of this type, JSON-encodes it, and emits the -// result to a file, which the Go command then passes to the compiler -// when the instrumented package is built. -type CoverFixupConfig struct { - // Name of the variable (created by cmd/cover) containing the - // encoded meta-data for the package. - MetaVar string - - // Length of the meta-data. - MetaLen int - - // Hash computed by cmd/cover of the meta-data. - MetaHash string - - // Instrumentation strategy. For now this is always set to - // "normal", but in the future we may add new values (for example, - // if panic paths are instrumented, or if the instrumenter - // eliminates redundant counters). - Strategy string - - // Prefix assigned to the names of counter variables generated - // during instrumentation by cmd/cover. - CounterPrefix string - - // Name chosen for the package ID variable generated during - // instrumentation. - PkgIdVar string - - // Counter mode (e.g. set/count/atomic) - CounterMode string - - // Counter granularity (perblock or perfunc). - CounterGranularity string -} - -// MetaFilePaths contains information generated by the Go command and -// the read in by coverage test support functions within an executing -// "go test -cover" binary. -type MetaFileCollection struct { - ImportPaths []string - MetaFileFragments []string -} - -// Name of file within the "go test -cover" temp coverdir directory -// containing a list of meta-data files for packages being tested -// in a "go test -coverpkg=... ..." run. This constant is shared -// by the Go command and by the coverage runtime. -const MetaFilesFileName = "metafiles.txt" diff --git a/contrib/go/_std_1.21/src/internal/coverage/cmerge/merge.go b/contrib/go/_std_1.21/src/internal/coverage/cmerge/merge.go deleted file mode 100644 index 1339803d08..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/cmerge/merge.go +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package cmerge - -// package cmerge provides a few small utility APIs for helping -// with merging of counter data for a given function. - -import ( - "fmt" - "internal/coverage" - "math" -) - -type ModeMergePolicy uint8 - -const ( - ModeMergeStrict ModeMergePolicy = iota - ModeMergeRelaxed -) - -// Merger provides state and methods to help manage the process of -// merging together coverage counter data for a given function, for -// tools that need to implicitly merge counter as they read multiple -// coverage counter data files. -type Merger struct { - cmode coverage.CounterMode - cgran coverage.CounterGranularity - policy ModeMergePolicy - overflow bool -} - -func (cm *Merger) SetModeMergePolicy(policy ModeMergePolicy) { - cm.policy = policy -} - -// MergeCounters takes the counter values in 'src' and merges them -// into 'dst' according to the correct counter mode. -func (m *Merger) MergeCounters(dst, src []uint32) (error, bool) { - if len(src) != len(dst) { - return fmt.Errorf("merging counters: len(dst)=%d len(src)=%d", len(dst), len(src)), false - } - if m.cmode == coverage.CtrModeSet { - for i := 0; i < len(src); i++ { - if src[i] != 0 { - dst[i] = 1 - } - } - } else { - for i := 0; i < len(src); i++ { - dst[i] = m.SaturatingAdd(dst[i], src[i]) - } - } - ovf := m.overflow - m.overflow = false - return nil, ovf -} - -// Saturating add does a saturating addition of 'dst' and 'src', -// returning added value or math.MaxUint32 if there is an overflow. -// Overflows are recorded in case the client needs to track them. -func (m *Merger) SaturatingAdd(dst, src uint32) uint32 { - result, overflow := SaturatingAdd(dst, src) - if overflow { - m.overflow = true - } - return result -} - -// Saturating add does a saturating addition of 'dst' and 'src', -// returning added value or math.MaxUint32 plus an overflow flag. -func SaturatingAdd(dst, src uint32) (uint32, bool) { - d, s := uint64(dst), uint64(src) - sum := d + s - overflow := false - if uint64(uint32(sum)) != sum { - overflow = true - sum = math.MaxUint32 - } - return uint32(sum), overflow -} - -// SetModeAndGranularity records the counter mode and granularity for -// the current merge. In the specific case of merging across coverage -// data files from different binaries, where we're combining data from -// more than one meta-data file, we need to check for and resolve -// mode/granularity clashes. -func (cm *Merger) SetModeAndGranularity(mdf string, cmode coverage.CounterMode, cgran coverage.CounterGranularity) error { - if cm.cmode == coverage.CtrModeInvalid { - // Set merger mode based on what we're seeing here. - cm.cmode = cmode - cm.cgran = cgran - } else { - // Granularity clashes are always errors. - if cm.cgran != cgran { - return fmt.Errorf("counter granularity clash while reading meta-data file %s: previous file had %s, new file has %s", mdf, cm.cgran.String(), cgran.String()) - } - // Mode clashes are treated as errors if we're using the - // default strict policy. - if cm.cmode != cmode { - if cm.policy == ModeMergeStrict { - return fmt.Errorf("counter mode clash while reading meta-data file %s: previous file had %s, new file has %s", mdf, cm.cmode.String(), cmode.String()) - } - // In the case of a relaxed mode merge policy, upgrade - // mode if needed. - if cm.cmode < cmode { - cm.cmode = cmode - } - } - } - return nil -} - -func (cm *Merger) ResetModeAndGranularity() { - cm.cmode = coverage.CtrModeInvalid - cm.cgran = coverage.CtrGranularityInvalid - cm.overflow = false -} - -func (cm *Merger) Mode() coverage.CounterMode { - return cm.cmode -} - -func (cm *Merger) Granularity() coverage.CounterGranularity { - return cm.cgran -} diff --git a/contrib/go/_std_1.21/src/internal/coverage/cmerge/ya.make b/contrib/go/_std_1.21/src/internal/coverage/cmerge/ya.make deleted file mode 100644 index 04eba34d6f..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/cmerge/ya.make +++ /dev/null @@ -1,7 +0,0 @@ -GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) - SRCS( - merge.go - ) -ENDIF() -END() diff --git a/contrib/go/_std_1.21/src/internal/coverage/decodecounter/decodecounterfile.go b/contrib/go/_std_1.21/src/internal/coverage/decodecounter/decodecounterfile.go deleted file mode 100644 index 83934fe68b..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/decodecounter/decodecounterfile.go +++ /dev/null @@ -1,373 +0,0 @@ -// Copyright 2021 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package decodecounter - -import ( - "encoding/binary" - "fmt" - "internal/coverage" - "internal/coverage/slicereader" - "internal/coverage/stringtab" - "io" - "os" - "strconv" - "unsafe" -) - -// This file contains helpers for reading counter data files created -// during the executions of a coverage-instrumented binary. - -type CounterDataReader struct { - stab *stringtab.Reader - args map[string]string - osargs []string - goarch string // GOARCH setting from run that produced counter data - goos string // GOOS setting from run that produced counter data - mr io.ReadSeeker - hdr coverage.CounterFileHeader - ftr coverage.CounterFileFooter - shdr coverage.CounterSegmentHeader - u32b []byte - u8b []byte - fcnCount uint32 - segCount uint32 - debug bool -} - -func NewCounterDataReader(fn string, rs io.ReadSeeker) (*CounterDataReader, error) { - cdr := &CounterDataReader{ - mr: rs, - u32b: make([]byte, 4), - u8b: make([]byte, 1), - } - // Read header - if err := binary.Read(rs, binary.LittleEndian, &cdr.hdr); err != nil { - return nil, err - } - if cdr.debug { - fmt.Fprintf(os.Stderr, "=-= counter file header: %+v\n", cdr.hdr) - } - if !checkMagic(cdr.hdr.Magic) { - return nil, fmt.Errorf("invalid magic string: not a counter data file") - } - if cdr.hdr.Version > coverage.CounterFileVersion { - return nil, fmt.Errorf("version data incompatibility: reader is %d data is %d", coverage.CounterFileVersion, cdr.hdr.Version) - } - - // Read footer. - if err := cdr.readFooter(); err != nil { - return nil, err - } - // Seek back to just past the file header. - hsz := int64(unsafe.Sizeof(cdr.hdr)) - if _, err := cdr.mr.Seek(hsz, io.SeekStart); err != nil { - return nil, err - } - // Read preamble for first segment. - if err := cdr.readSegmentPreamble(); err != nil { - return nil, err - } - return cdr, nil -} - -func checkMagic(v [4]byte) bool { - g := coverage.CovCounterMagic - return v[0] == g[0] && v[1] == g[1] && v[2] == g[2] && v[3] == g[3] -} - -func (cdr *CounterDataReader) readFooter() error { - ftrSize := int64(unsafe.Sizeof(cdr.ftr)) - if _, err := cdr.mr.Seek(-ftrSize, io.SeekEnd); err != nil { - return err - } - if err := binary.Read(cdr.mr, binary.LittleEndian, &cdr.ftr); err != nil { - return err - } - if !checkMagic(cdr.ftr.Magic) { - return fmt.Errorf("invalid magic string (not a counter data file)") - } - if cdr.ftr.NumSegments == 0 { - return fmt.Errorf("invalid counter data file (no segments)") - } - return nil -} - -// readSegmentPreamble reads and consumes the segment header, segment string -// table, and segment args table. -func (cdr *CounterDataReader) readSegmentPreamble() error { - // Read segment header. - if err := binary.Read(cdr.mr, binary.LittleEndian, &cdr.shdr); err != nil { - return err - } - if cdr.debug { - fmt.Fprintf(os.Stderr, "=-= read counter segment header: %+v", cdr.shdr) - fmt.Fprintf(os.Stderr, " FcnEntries=0x%x StrTabLen=0x%x ArgsLen=0x%x\n", - cdr.shdr.FcnEntries, cdr.shdr.StrTabLen, cdr.shdr.ArgsLen) - } - - // Read string table and args. - if err := cdr.readStringTable(); err != nil { - return err - } - if err := cdr.readArgs(); err != nil { - return err - } - // Seek past any padding to bring us up to a 4-byte boundary. - if of, err := cdr.mr.Seek(0, io.SeekCurrent); err != nil { - return err - } else { - rem := of % 4 - if rem != 0 { - pad := 4 - rem - if _, err := cdr.mr.Seek(pad, io.SeekCurrent); err != nil { - return err - } - } - } - return nil -} - -func (cdr *CounterDataReader) readStringTable() error { - b := make([]byte, cdr.shdr.StrTabLen) - nr, err := cdr.mr.Read(b) - if err != nil { - return err - } - if nr != int(cdr.shdr.StrTabLen) { - return fmt.Errorf("error: short read on string table") - } - slr := slicereader.NewReader(b, false /* not readonly */) - cdr.stab = stringtab.NewReader(slr) - cdr.stab.Read() - return nil -} - -func (cdr *CounterDataReader) readArgs() error { - b := make([]byte, cdr.shdr.ArgsLen) - nr, err := cdr.mr.Read(b) - if err != nil { - return err - } - if nr != int(cdr.shdr.ArgsLen) { - return fmt.Errorf("error: short read on args table") - } - slr := slicereader.NewReader(b, false /* not readonly */) - sget := func() (string, error) { - kidx := slr.ReadULEB128() - if int(kidx) >= cdr.stab.Entries() { - return "", fmt.Errorf("malformed string table ref") - } - return cdr.stab.Get(uint32(kidx)), nil - } - nents := slr.ReadULEB128() - cdr.args = make(map[string]string, int(nents)) - for i := uint64(0); i < nents; i++ { - k, errk := sget() - if errk != nil { - return errk - } - v, errv := sget() - if errv != nil { - return errv - } - if _, ok := cdr.args[k]; ok { - return fmt.Errorf("malformed args table") - } - cdr.args[k] = v - } - if argcs, ok := cdr.args["argc"]; ok { - argc, err := strconv.Atoi(argcs) - if err != nil { - return fmt.Errorf("malformed argc in counter data file args section") - } - cdr.osargs = make([]string, 0, argc) - for i := 0; i < argc; i++ { - arg := cdr.args[fmt.Sprintf("argv%d", i)] - cdr.osargs = append(cdr.osargs, arg) - } - } - if goos, ok := cdr.args["GOOS"]; ok { - cdr.goos = goos - } - if goarch, ok := cdr.args["GOARCH"]; ok { - cdr.goarch = goarch - } - return nil -} - -// OsArgs returns the program arguments (saved from os.Args during -// the run of the instrumented binary) read from the counter -// data file. Not all coverage data files will have os.Args values; -// for example, if a data file is produced by merging coverage -// data from two distinct runs, no os args will be available (an -// empty list is returned). -func (cdr *CounterDataReader) OsArgs() []string { - return cdr.osargs -} - -// Goos returns the GOOS setting in effect for the "-cover" binary -// that produced this counter data file. The GOOS value may be -// empty in the case where the counter data file was produced -// from a merge in which more than one GOOS value was present. -func (cdr *CounterDataReader) Goos() string { - return cdr.goos -} - -// Goarch returns the GOARCH setting in effect for the "-cover" binary -// that produced this counter data file. The GOARCH value may be -// empty in the case where the counter data file was produced -// from a merge in which more than one GOARCH value was present. -func (cdr *CounterDataReader) Goarch() string { - return cdr.goarch -} - -// FuncPayload encapsulates the counter data payload for a single -// function as read from a counter data file. -type FuncPayload struct { - PkgIdx uint32 - FuncIdx uint32 - Counters []uint32 -} - -// NumSegments returns the number of execution segments in the file. -func (cdr *CounterDataReader) NumSegments() uint32 { - return cdr.ftr.NumSegments -} - -// BeginNextSegment sets up the reader to read the next segment, -// returning TRUE if we do have another segment to read, or FALSE -// if we're done with all the segments (also an error if -// something went wrong). -func (cdr *CounterDataReader) BeginNextSegment() (bool, error) { - if cdr.segCount >= cdr.ftr.NumSegments { - return false, nil - } - cdr.segCount++ - cdr.fcnCount = 0 - // Seek past footer from last segment. - ftrSize := int64(unsafe.Sizeof(cdr.ftr)) - if _, err := cdr.mr.Seek(ftrSize, io.SeekCurrent); err != nil { - return false, err - } - // Read preamble for this segment. - if err := cdr.readSegmentPreamble(); err != nil { - return false, err - } - return true, nil -} - -// NumFunctionsInSegment returns the number of live functions -// in the currently selected segment. -func (cdr *CounterDataReader) NumFunctionsInSegment() uint32 { - return uint32(cdr.shdr.FcnEntries) -} - -const supportDeadFunctionsInCounterData = false - -// NextFunc reads data for the next function in this current segment -// into "p", returning TRUE if the read was successful or FALSE -// if we've read all the functions already (also an error if -// something went wrong with the read or we hit a premature -// EOF). -func (cdr *CounterDataReader) NextFunc(p *FuncPayload) (bool, error) { - if cdr.fcnCount >= uint32(cdr.shdr.FcnEntries) { - return false, nil - } - cdr.fcnCount++ - var rdu32 func() (uint32, error) - if cdr.hdr.CFlavor == coverage.CtrULeb128 { - rdu32 = func() (uint32, error) { - var shift uint - var value uint64 - for { - _, err := cdr.mr.Read(cdr.u8b) - if err != nil { - return 0, err - } - b := cdr.u8b[0] - value |= (uint64(b&0x7F) << shift) - if b&0x80 == 0 { - break - } - shift += 7 - } - return uint32(value), nil - } - } else if cdr.hdr.CFlavor == coverage.CtrRaw { - if cdr.hdr.BigEndian { - rdu32 = func() (uint32, error) { - n, err := cdr.mr.Read(cdr.u32b) - if err != nil { - return 0, err - } - if n != 4 { - return 0, io.EOF - } - return binary.BigEndian.Uint32(cdr.u32b), nil - } - } else { - rdu32 = func() (uint32, error) { - n, err := cdr.mr.Read(cdr.u32b) - if err != nil { - return 0, err - } - if n != 4 { - return 0, io.EOF - } - return binary.LittleEndian.Uint32(cdr.u32b), nil - } - } - } else { - panic("internal error: unknown counter flavor") - } - - // Alternative/experimental path: one way we could handling writing - // out counter data would be to just memcpy the counter segment - // out to a file, meaning that a region in the counter memory - // corresponding to a dead (never-executed) function would just be - // zeroes. The code path below handles this case. - var nc uint32 - var err error - if supportDeadFunctionsInCounterData { - for { - nc, err = rdu32() - if err == io.EOF { - return false, io.EOF - } else if err != nil { - break - } - if nc != 0 { - break - } - } - } else { - nc, err = rdu32() - } - if err != nil { - return false, err - } - - // Read package and func indices. - p.PkgIdx, err = rdu32() - if err != nil { - return false, err - } - p.FuncIdx, err = rdu32() - if err != nil { - return false, err - } - if cap(p.Counters) < 1024 { - p.Counters = make([]uint32, 0, 1024) - } - p.Counters = p.Counters[:0] - for i := uint32(0); i < nc; i++ { - v, err := rdu32() - if err != nil { - return false, err - } - p.Counters = append(p.Counters, v) - } - return true, nil -} diff --git a/contrib/go/_std_1.21/src/internal/coverage/decodecounter/ya.make b/contrib/go/_std_1.21/src/internal/coverage/decodecounter/ya.make deleted file mode 100644 index b3c21c3774..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/decodecounter/ya.make +++ /dev/null @@ -1,7 +0,0 @@ -GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) - SRCS( - decodecounterfile.go - ) -ENDIF() -END() diff --git a/contrib/go/_std_1.21/src/internal/coverage/decodemeta/decode.go b/contrib/go/_std_1.21/src/internal/coverage/decodemeta/decode.go deleted file mode 100644 index fa047c780b..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/decodemeta/decode.go +++ /dev/null @@ -1,136 +0,0 @@ -// Copyright 2021 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package decodemeta - -// This package contains APIs and helpers for decoding a single package's -// meta data "blob" emitted by the compiler when coverage instrumentation -// is turned on. - -import ( - "encoding/binary" - "fmt" - "internal/coverage" - "internal/coverage/slicereader" - "internal/coverage/stringtab" - "io" - "os" -) - -// See comments in the encodecovmeta package for details on the format. - -type CoverageMetaDataDecoder struct { - r *slicereader.Reader - hdr coverage.MetaSymbolHeader - strtab *stringtab.Reader - tmp []byte - debug bool -} - -func NewCoverageMetaDataDecoder(b []byte, readonly bool) (*CoverageMetaDataDecoder, error) { - slr := slicereader.NewReader(b, readonly) - x := &CoverageMetaDataDecoder{ - r: slr, - tmp: make([]byte, 0, 256), - } - if err := x.readHeader(); err != nil { - return nil, err - } - if err := x.readStringTable(); err != nil { - return nil, err - } - return x, nil -} - -func (d *CoverageMetaDataDecoder) readHeader() error { - if err := binary.Read(d.r, binary.LittleEndian, &d.hdr); err != nil { - return err - } - if d.debug { - fmt.Fprintf(os.Stderr, "=-= after readHeader: %+v\n", d.hdr) - } - return nil -} - -func (d *CoverageMetaDataDecoder) readStringTable() error { - // Seek to the correct location to read the string table. - stringTableLocation := int64(coverage.CovMetaHeaderSize + 4*d.hdr.NumFuncs) - if _, err := d.r.Seek(stringTableLocation, io.SeekStart); err != nil { - return err - } - - // Read the table itself. - d.strtab = stringtab.NewReader(d.r) - d.strtab.Read() - return nil -} - -func (d *CoverageMetaDataDecoder) PackagePath() string { - return d.strtab.Get(d.hdr.PkgPath) -} - -func (d *CoverageMetaDataDecoder) PackageName() string { - return d.strtab.Get(d.hdr.PkgName) -} - -func (d *CoverageMetaDataDecoder) ModulePath() string { - return d.strtab.Get(d.hdr.ModulePath) -} - -func (d *CoverageMetaDataDecoder) NumFuncs() uint32 { - return d.hdr.NumFuncs -} - -// ReadFunc reads the coverage meta-data for the function with index -// 'findex', filling it into the FuncDesc pointed to by 'f'. -func (d *CoverageMetaDataDecoder) ReadFunc(fidx uint32, f *coverage.FuncDesc) error { - if fidx >= d.hdr.NumFuncs { - return fmt.Errorf("illegal function index") - } - - // Seek to the correct location to read the function offset and read it. - funcOffsetLocation := int64(coverage.CovMetaHeaderSize + 4*fidx) - if _, err := d.r.Seek(funcOffsetLocation, io.SeekStart); err != nil { - return err - } - foff := d.r.ReadUint32() - - // Check assumptions - if foff < uint32(funcOffsetLocation) || foff > d.hdr.Length { - return fmt.Errorf("malformed func offset %d", foff) - } - - // Seek to the correct location to read the function. - floc := int64(foff) - if _, err := d.r.Seek(floc, io.SeekStart); err != nil { - return err - } - - // Preamble containing number of units, file, and function. - numUnits := uint32(d.r.ReadULEB128()) - fnameidx := uint32(d.r.ReadULEB128()) - fileidx := uint32(d.r.ReadULEB128()) - - f.Srcfile = d.strtab.Get(fileidx) - f.Funcname = d.strtab.Get(fnameidx) - - // Now the units - f.Units = f.Units[:0] - if cap(f.Units) < int(numUnits) { - f.Units = make([]coverage.CoverableUnit, 0, numUnits) - } - for k := uint32(0); k < numUnits; k++ { - f.Units = append(f.Units, - coverage.CoverableUnit{ - StLine: uint32(d.r.ReadULEB128()), - StCol: uint32(d.r.ReadULEB128()), - EnLine: uint32(d.r.ReadULEB128()), - EnCol: uint32(d.r.ReadULEB128()), - NxStmts: uint32(d.r.ReadULEB128()), - }) - } - lit := d.r.ReadULEB128() - f.Lit = lit != 0 - return nil -} diff --git a/contrib/go/_std_1.21/src/internal/coverage/decodemeta/decodefile.go b/contrib/go/_std_1.21/src/internal/coverage/decodemeta/decodefile.go deleted file mode 100644 index 6580dd5402..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/decodemeta/decodefile.go +++ /dev/null @@ -1,223 +0,0 @@ -// Copyright 2021 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package decodemeta - -// This package contains APIs and helpers for reading and decoding -// meta-data output files emitted by the runtime when a -// coverage-instrumented binary executes. A meta-data file contains -// top-level info (counter mode, number of packages) and then a -// separate self-contained meta-data section for each Go package. - -import ( - "bufio" - "crypto/md5" - "encoding/binary" - "fmt" - "internal/coverage" - "internal/coverage/slicereader" - "internal/coverage/stringtab" - "io" - "os" -) - -// CoverageMetaFileReader provides state and methods for reading -// a meta-data file from a code coverage run. -type CoverageMetaFileReader struct { - f *os.File - hdr coverage.MetaFileHeader - tmp []byte - pkgOffsets []uint64 - pkgLengths []uint64 - strtab *stringtab.Reader - fileRdr *bufio.Reader - fileView []byte - debug bool -} - -// NewCoverageMetaFileReader returns a new helper object for reading -// the coverage meta-data output file 'f'. The param 'fileView' is a -// read-only slice containing the contents of 'f' obtained by mmap'ing -// the file read-only; 'fileView' may be nil, in which case the helper -// will read the contents of the file using regular file Read -// operations. -func NewCoverageMetaFileReader(f *os.File, fileView []byte) (*CoverageMetaFileReader, error) { - r := &CoverageMetaFileReader{ - f: f, - fileView: fileView, - tmp: make([]byte, 256), - } - - if err := r.readFileHeader(); err != nil { - return nil, err - } - return r, nil -} - -func (r *CoverageMetaFileReader) readFileHeader() error { - var err error - - r.fileRdr = bufio.NewReader(r.f) - - // Read file header. - if err := binary.Read(r.fileRdr, binary.LittleEndian, &r.hdr); err != nil { - return err - } - - // Verify magic string - m := r.hdr.Magic - g := coverage.CovMetaMagic - if m[0] != g[0] || m[1] != g[1] || m[2] != g[2] || m[3] != g[3] { - return fmt.Errorf("invalid meta-data file magic string") - } - - // Vet the version. If this is a meta-data file from the future, - // we won't be able to read it. - if r.hdr.Version > coverage.MetaFileVersion { - return fmt.Errorf("meta-data file withn unknown version %d (expected %d)", r.hdr.Version, coverage.MetaFileVersion) - } - - // Read package offsets for good measure - r.pkgOffsets = make([]uint64, r.hdr.Entries) - for i := uint64(0); i < r.hdr.Entries; i++ { - if r.pkgOffsets[i], err = r.rdUint64(); err != nil { - return err - } - if r.pkgOffsets[i] > r.hdr.TotalLength { - return fmt.Errorf("insane pkg offset %d: %d > totlen %d", - i, r.pkgOffsets[i], r.hdr.TotalLength) - } - } - r.pkgLengths = make([]uint64, r.hdr.Entries) - for i := uint64(0); i < r.hdr.Entries; i++ { - if r.pkgLengths[i], err = r.rdUint64(); err != nil { - return err - } - if r.pkgLengths[i] > r.hdr.TotalLength { - return fmt.Errorf("insane pkg length %d: %d > totlen %d", - i, r.pkgLengths[i], r.hdr.TotalLength) - } - } - - // Read string table. - b := make([]byte, r.hdr.StrTabLength) - nr, err := r.fileRdr.Read(b) - if err != nil { - return err - } - if nr != int(r.hdr.StrTabLength) { - return fmt.Errorf("error: short read on string table") - } - slr := slicereader.NewReader(b, false /* not readonly */) - r.strtab = stringtab.NewReader(slr) - r.strtab.Read() - - if r.debug { - fmt.Fprintf(os.Stderr, "=-= read-in header is: %+v\n", *r) - } - - return nil -} - -func (r *CoverageMetaFileReader) rdUint64() (uint64, error) { - r.tmp = r.tmp[:0] - r.tmp = append(r.tmp, make([]byte, 8)...) - n, err := r.fileRdr.Read(r.tmp) - if err != nil { - return 0, err - } - if n != 8 { - return 0, fmt.Errorf("premature end of file on read") - } - v := binary.LittleEndian.Uint64(r.tmp) - return v, nil -} - -// NumPackages returns the number of packages for which this file -// contains meta-data. -func (r *CoverageMetaFileReader) NumPackages() uint64 { - return r.hdr.Entries -} - -// CounterMode returns the counter mode (set, count, atomic) used -// when building for coverage for the program that produce this -// meta-data file. -func (r *CoverageMetaFileReader) CounterMode() coverage.CounterMode { - return r.hdr.CMode -} - -// CounterMode returns the counter granularity (single counter per -// function, or counter per block) selected when building for coverage -// for the program that produce this meta-data file. -func (r *CoverageMetaFileReader) CounterGranularity() coverage.CounterGranularity { - return r.hdr.CGranularity -} - -// FileHash returns the hash computed for all of the package meta-data -// blobs. Coverage counter data files refer to this hash, and the -// hash will be encoded into the meta-data file name. -func (r *CoverageMetaFileReader) FileHash() [16]byte { - return r.hdr.MetaFileHash -} - -// GetPackageDecoder requests a decoder object for the package within -// the meta-data file whose index is 'pkIdx'. If the -// CoverageMetaFileReader was set up with a read-only file view, a -// pointer into that file view will be returned, otherwise the buffer -// 'payloadbuf' will be written to (or if it is not of sufficient -// size, a new buffer will be allocated). Return value is the decoder, -// a byte slice with the encoded meta-data, and an error. -func (r *CoverageMetaFileReader) GetPackageDecoder(pkIdx uint32, payloadbuf []byte) (*CoverageMetaDataDecoder, []byte, error) { - pp, err := r.GetPackagePayload(pkIdx, payloadbuf) - if r.debug { - fmt.Fprintf(os.Stderr, "=-= pkidx=%d payload length is %d hash=%s\n", - pkIdx, len(pp), fmt.Sprintf("%x", md5.Sum(pp))) - } - if err != nil { - return nil, nil, err - } - mdd, err := NewCoverageMetaDataDecoder(pp, r.fileView != nil) - if err != nil { - return nil, nil, err - } - return mdd, pp, nil -} - -// GetPackagePayload returns the raw (encoded) meta-data payload for the -// package with index 'pkIdx'. As with GetPackageDecoder, if the -// CoverageMetaFileReader was set up with a read-only file view, a -// pointer into that file view will be returned, otherwise the buffer -// 'payloadbuf' will be written to (or if it is not of sufficient -// size, a new buffer will be allocated). Return value is the decoder, -// a byte slice with the encoded meta-data, and an error. -func (r *CoverageMetaFileReader) GetPackagePayload(pkIdx uint32, payloadbuf []byte) ([]byte, error) { - - // Determine correct offset/length. - if uint64(pkIdx) >= r.hdr.Entries { - return nil, fmt.Errorf("GetPackagePayload: illegal pkg index %d", pkIdx) - } - off := r.pkgOffsets[pkIdx] - len := r.pkgLengths[pkIdx] - - if r.debug { - fmt.Fprintf(os.Stderr, "=-= for pk %d, off=%d len=%d\n", pkIdx, off, len) - } - - if r.fileView != nil { - return r.fileView[off : off+len], nil - } - - payload := payloadbuf[:0] - if cap(payload) < int(len) { - payload = make([]byte, 0, len) - } - payload = append(payload, make([]byte, len)...) - if _, err := r.f.Seek(int64(off), io.SeekStart); err != nil { - return nil, err - } - if _, err := io.ReadFull(r.f, payload); err != nil { - return nil, err - } - return payload, nil -} diff --git a/contrib/go/_std_1.21/src/internal/coverage/decodemeta/ya.make b/contrib/go/_std_1.21/src/internal/coverage/decodemeta/ya.make deleted file mode 100644 index f5468491f4..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/decodemeta/ya.make +++ /dev/null @@ -1,8 +0,0 @@ -GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) - SRCS( - decode.go - decodefile.go - ) -ENDIF() -END() diff --git a/contrib/go/_std_1.21/src/internal/coverage/defs.go b/contrib/go/_std_1.21/src/internal/coverage/defs.go deleted file mode 100644 index 8751b9f878..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/defs.go +++ /dev/null @@ -1,374 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package coverage - -// Types and constants related to the output files written -// by code coverage tooling. When a coverage-instrumented binary -// is run, it emits two output files: a meta-data output file, and -// a counter data output file. - -//..................................................................... -// -// Meta-data definitions: -// -// The meta-data file is composed of a file header, a series of -// meta-data blobs/sections (one per instrumented package), and an offsets -// area storing the offsets of each section. Format of the meta-data -// file looks like: -// -// --header---------- -// | magic: [4]byte magic string -// | version -// | total length of meta-data file in bytes -// | numPkgs: number of package entries in file -// | hash: [16]byte hash of entire meta-data payload -// | offset to string table section -// | length of string table -// | number of entries in string table -// | counter mode -// | counter granularity -// --package offsets table------ -// <offset to pkg 0> -// <offset to pkg 1> -// ... -// --package lengths table------ -// <length of pkg 0> -// <length of pkg 1> -// ... -// --string table------ -// <uleb128 len> 8 -// <data> "somestring" -// ... -// --package payloads------ -// <meta-symbol for pkg 0> -// <meta-symbol for pkg 1> -// ... -// -// Each package payload is a stand-alone blob emitted by the compiler, -// and does not depend on anything else in the meta-data file. In -// particular, each blob has it's own string table. Note that the -// file-level string table is expected to be very short (most strings -// will be in the meta-data blobs themselves). - -// CovMetaMagic holds the magic string for a meta-data file. -var CovMetaMagic = [4]byte{'\x00', '\x63', '\x76', '\x6d'} - -// MetaFilePref is a prefix used when emitting meta-data files; these -// files are of the form "covmeta.<hash>", where hash is a hash -// computed from the hashes of all the package meta-data symbols in -// the program. -const MetaFilePref = "covmeta" - -// MetaFileVersion contains the current (most recent) meta-data file version. -const MetaFileVersion = 1 - -// MetaFileHeader stores file header information for a meta-data file. -type MetaFileHeader struct { - Magic [4]byte - Version uint32 - TotalLength uint64 - Entries uint64 - MetaFileHash [16]byte - StrTabOffset uint32 - StrTabLength uint32 - CMode CounterMode - CGranularity CounterGranularity - _ [6]byte // padding -} - -// MetaSymbolHeader stores header information for a single -// meta-data blob, e.g. the coverage meta-data payload -// computed for a given Go package. -type MetaSymbolHeader struct { - Length uint32 // size of meta-symbol payload in bytes - PkgName uint32 // string table index - PkgPath uint32 // string table index - ModulePath uint32 // string table index - MetaHash [16]byte - _ byte // currently unused - _ [3]byte // padding - NumFiles uint32 - NumFuncs uint32 -} - -const CovMetaHeaderSize = 16 + 4 + 4 + 4 + 4 + 4 + 4 + 4 // keep in sync with above - -// As an example, consider the following Go package: -// -// 01: package p -// 02: -// 03: var v, w, z int -// 04: -// 05: func small(x, y int) int { -// 06: v++ -// 07: // comment -// 08: if y == 0 { -// 09: return x -// 10: } -// 11: return (x << 1) ^ (9 / y) -// 12: } -// 13: -// 14: func Medium(q, r int) int { -// 15: s1 := small(q, r) -// 16: z += s1 -// 17: s2 := small(r, q) -// 18: w -= s2 -// 19: return w + z -// 20: } -// -// The meta-data blob for the single package above might look like the -// following: -// -// -- MetaSymbolHeader header---------- -// | size: size of this blob in bytes -// | packagepath: <path to p> -// | modulepath: <modpath for p> -// | nfiles: 1 -// | nfunctions: 2 -// --func offsets table------ -// <offset to func 0> -// <offset to func 1> -// --string table (contains all files and functions)------ -// | <uleb128 len> 4 -// | <data> "p.go" -// | <uleb128 len> 5 -// | <data> "small" -// | <uleb128 len> 6 -// | <data> "Medium" -// --func 0------ -// | <uleb128> num units: 3 -// | <uleb128> func name: S1 (index into string table) -// | <uleb128> file: S0 (index into string table) -// | <unit 0>: S0 L6 L8 2 -// | <unit 1>: S0 L9 L9 1 -// | <unit 2>: S0 L11 L11 1 -// --func 1------ -// | <uleb128> num units: 1 -// | <uleb128> func name: S2 (index into string table) -// | <uleb128> file: S0 (index into string table) -// | <unit 0>: S0 L15 L19 5 -// ---end----------- - -// The following types and constants used by the meta-data encoder/decoder. - -// FuncDesc encapsulates the meta-data definitions for a single Go function. -// This version assumes that we're looking at a function before inlining; -// if we want to capture a post-inlining view of the world, the -// representations of source positions would need to be a good deal more -// complicated. -type FuncDesc struct { - Funcname string - Srcfile string - Units []CoverableUnit - Lit bool // true if this is a function literal -} - -// CoverableUnit describes the source characteristics of a single -// program unit for which we want to gather coverage info. Coverable -// units are either "simple" or "intraline"; a "simple" coverable unit -// corresponds to a basic block (region of straight-line code with no -// jumps or control transfers). An "intraline" unit corresponds to a -// logical clause nested within some other simple unit. A simple unit -// will have a zero Parent value; for an intraline unit NxStmts will -// be zero and Parent will be set to 1 plus the index of the -// containing simple statement. Example: -// -// L7: q := 1 -// L8: x := (y == 101 || launch() == false) -// L9: r := x * 2 -// -// For the code above we would have three simple units (one for each -// line), then an intraline unit describing the "launch() == false" -// clause in line 8, with Parent pointing to the index of the line 8 -// unit in the units array. -// -// Note: in the initial version of the coverage revamp, only simple -// units will be in use. -type CoverableUnit struct { - StLine, StCol uint32 - EnLine, EnCol uint32 - NxStmts uint32 - Parent uint32 -} - -// CounterMode tracks the "flavor" of the coverage counters being -// used in a given coverage-instrumented program. -type CounterMode uint8 - -const ( - CtrModeInvalid CounterMode = iota - CtrModeSet // "set" mode - CtrModeCount // "count" mode - CtrModeAtomic // "atomic" mode - CtrModeRegOnly // registration-only pseudo-mode - CtrModeTestMain // testmain pseudo-mode -) - -func (cm CounterMode) String() string { - switch cm { - case CtrModeSet: - return "set" - case CtrModeCount: - return "count" - case CtrModeAtomic: - return "atomic" - case CtrModeRegOnly: - return "regonly" - case CtrModeTestMain: - return "testmain" - } - return "<invalid>" -} - -func ParseCounterMode(mode string) CounterMode { - var cm CounterMode - switch mode { - case "set": - cm = CtrModeSet - case "count": - cm = CtrModeCount - case "atomic": - cm = CtrModeAtomic - case "regonly": - cm = CtrModeRegOnly - case "testmain": - cm = CtrModeTestMain - default: - cm = CtrModeInvalid - } - return cm -} - -// CounterGranularity tracks the granularity of the coverage counters being -// used in a given coverage-instrumented program. -type CounterGranularity uint8 - -const ( - CtrGranularityInvalid CounterGranularity = iota - CtrGranularityPerBlock - CtrGranularityPerFunc -) - -func (cm CounterGranularity) String() string { - switch cm { - case CtrGranularityPerBlock: - return "perblock" - case CtrGranularityPerFunc: - return "perfunc" - } - return "<invalid>" -} - -//..................................................................... -// -// Counter data definitions: -// - -// A counter data file is composed of a file header followed by one or -// more "segments" (each segment representing a given run or partial -// run of a give binary) followed by a footer. - -// CovCounterMagic holds the magic string for a coverage counter-data file. -var CovCounterMagic = [4]byte{'\x00', '\x63', '\x77', '\x6d'} - -// CounterFileVersion stores the most recent counter data file version. -const CounterFileVersion = 1 - -// CounterFileHeader stores files header information for a counter-data file. -type CounterFileHeader struct { - Magic [4]byte - Version uint32 - MetaHash [16]byte - CFlavor CounterFlavor - BigEndian bool - _ [6]byte // padding -} - -// CounterSegmentHeader encapsulates information about a specific -// segment in a counter data file, which at the moment contains -// counters data from a single execution of a coverage-instrumented -// program. Following the segment header will be the string table and -// args table, and then (possibly) padding bytes to bring the byte -// size of the preamble up to a multiple of 4. Immediately following -// that will be the counter payloads. -// -// The "args" section of a segment is used to store annotations -// describing where the counter data came from; this section is -// basically a series of key-value pairs (can be thought of as an -// encoded 'map[string]string'). At the moment we only write os.Args() -// data to this section, using pairs of the form "argc=<integer>", -// "argv0=<os.Args[0]>", "argv1=<os.Args[1]>", and so on. In the -// future the args table may also include things like GOOS/GOARCH -// values, and/or tags indicating which tests were run to generate the -// counter data. -type CounterSegmentHeader struct { - FcnEntries uint64 - StrTabLen uint32 - ArgsLen uint32 -} - -// CounterFileFooter appears at the tail end of a counter data file, -// and stores the number of segments it contains. -type CounterFileFooter struct { - Magic [4]byte - _ [4]byte // padding - NumSegments uint32 - _ [4]byte // padding -} - -// CounterFilePref is the file prefix used when emitting coverage data -// output files. CounterFileTemplate describes the format of the file -// name: prefix followed by meta-file hash followed by process ID -// followed by emit UnixNanoTime. -const CounterFilePref = "covcounters" -const CounterFileTempl = "%s.%x.%d.%d" -const CounterFileRegexp = `^%s\.(\S+)\.(\d+)\.(\d+)+$` - -// CounterFlavor describes how function and counters are -// stored/represented in the counter section of the file. -type CounterFlavor uint8 - -const ( - // "Raw" representation: all values (pkg ID, func ID, num counters, - // and counters themselves) are stored as uint32's. - CtrRaw CounterFlavor = iota + 1 - - // "ULeb" representation: all values (pkg ID, func ID, num counters, - // and counters themselves) are stored with ULEB128 encoding. - CtrULeb128 -) - -func Round4(x int) int { - return (x + 3) &^ 3 -} - -//..................................................................... -// -// Runtime counter data definitions. -// - -// At runtime within a coverage-instrumented program, the "counters" -// object we associated with instrumented function can be thought of -// as a struct of the following form: -// -// struct { -// numCtrs uint32 -// pkgid uint32 -// funcid uint32 -// counterArray [numBlocks]uint32 -// } -// -// where "numCtrs" is the number of blocks / coverable units within the -// function, "pkgid" is the unique index assigned to this package by -// the runtime, "funcid" is the index of this function within its containing -// package, and "counterArray" stores the actual counters. -// -// The counter variable itself is created not as a struct but as a flat -// array of uint32's; we then use the offsets below to index into it. - -const NumCtrsOffset = 0 -const PkgIdOffset = 1 -const FuncIdOffset = 2 -const FirstCtrOffset = 3 diff --git a/contrib/go/_std_1.21/src/internal/coverage/encodecounter/encode.go b/contrib/go/_std_1.21/src/internal/coverage/encodecounter/encode.go deleted file mode 100644 index 59586730de..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/encodecounter/encode.go +++ /dev/null @@ -1,297 +0,0 @@ -// Copyright 2021 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package encodecounter - -import ( - "bufio" - "encoding/binary" - "fmt" - "internal/coverage" - "internal/coverage/slicewriter" - "internal/coverage/stringtab" - "internal/coverage/uleb128" - "io" - "os" - "sort" -) - -// This package contains APIs and helpers for encoding initial portions -// of the counter data files emitted at runtime when coverage instrumentation -// is enabled. Counter data files may contain multiple segments; the file -// header and first segment are written via the "Write" method below, and -// additional segments can then be added using "AddSegment". - -type CoverageDataWriter struct { - stab *stringtab.Writer - w *bufio.Writer - csh coverage.CounterSegmentHeader - tmp []byte - cflavor coverage.CounterFlavor - segs uint32 - debug bool -} - -func NewCoverageDataWriter(w io.Writer, flav coverage.CounterFlavor) *CoverageDataWriter { - r := &CoverageDataWriter{ - stab: &stringtab.Writer{}, - w: bufio.NewWriter(w), - - tmp: make([]byte, 64), - cflavor: flav, - } - r.stab.InitWriter() - r.stab.Lookup("") - return r -} - -// CounterVisitor describes a helper object used during counter file -// writing; when writing counter data files, clients pass a -// CounterVisitor to the write/emit routines, then the expectation is -// that the VisitFuncs method will then invoke the callback "f" with -// data for each function to emit to the file. -type CounterVisitor interface { - VisitFuncs(f CounterVisitorFn) error -} - -// CounterVisitorFn describes a callback function invoked when writing -// coverage counter data. -type CounterVisitorFn func(pkid uint32, funcid uint32, counters []uint32) error - -// Write writes the contents of the count-data file to the writer -// previously supplied to NewCoverageDataWriter. Returns an error -// if something went wrong somewhere with the write. -func (cfw *CoverageDataWriter) Write(metaFileHash [16]byte, args map[string]string, visitor CounterVisitor) error { - if err := cfw.writeHeader(metaFileHash); err != nil { - return err - } - return cfw.AppendSegment(args, visitor) -} - -func padToFourByteBoundary(ws *slicewriter.WriteSeeker) error { - sz := len(ws.BytesWritten()) - zeros := []byte{0, 0, 0, 0} - rem := uint32(sz) % 4 - if rem != 0 { - pad := zeros[:(4 - rem)] - if nw, err := ws.Write(pad); err != nil { - return err - } else if nw != len(pad) { - return fmt.Errorf("error: short write") - } - } - return nil -} - -func (cfw *CoverageDataWriter) patchSegmentHeader(ws *slicewriter.WriteSeeker) error { - // record position - off, err := ws.Seek(0, io.SeekCurrent) - if err != nil { - return fmt.Errorf("error seeking in patchSegmentHeader: %v", err) - } - // seek back to start so that we can update the segment header - if _, err := ws.Seek(0, io.SeekStart); err != nil { - return fmt.Errorf("error seeking in patchSegmentHeader: %v", err) - } - if cfw.debug { - fmt.Fprintf(os.Stderr, "=-= writing counter segment header: %+v", cfw.csh) - } - if err := binary.Write(ws, binary.LittleEndian, cfw.csh); err != nil { - return err - } - // ... and finally return to the original offset. - if _, err := ws.Seek(off, io.SeekStart); err != nil { - return fmt.Errorf("error seeking in patchSegmentHeader: %v", err) - } - return nil -} - -func (cfw *CoverageDataWriter) writeSegmentPreamble(args map[string]string, ws *slicewriter.WriteSeeker) error { - if err := binary.Write(ws, binary.LittleEndian, cfw.csh); err != nil { - return err - } - hdrsz := uint32(len(ws.BytesWritten())) - - // Write string table and args to a byte slice (since we need - // to capture offsets at various points), then emit the slice - // once we are done. - cfw.stab.Freeze() - if err := cfw.stab.Write(ws); err != nil { - return err - } - cfw.csh.StrTabLen = uint32(len(ws.BytesWritten())) - hdrsz - - akeys := make([]string, 0, len(args)) - for k := range args { - akeys = append(akeys, k) - } - sort.Strings(akeys) - - wrULEB128 := func(v uint) error { - cfw.tmp = cfw.tmp[:0] - cfw.tmp = uleb128.AppendUleb128(cfw.tmp, v) - if _, err := ws.Write(cfw.tmp); err != nil { - return err - } - return nil - } - - // Count of arg pairs. - if err := wrULEB128(uint(len(args))); err != nil { - return err - } - // Arg pairs themselves. - for _, k := range akeys { - ki := uint(cfw.stab.Lookup(k)) - if err := wrULEB128(ki); err != nil { - return err - } - v := args[k] - vi := uint(cfw.stab.Lookup(v)) - if err := wrULEB128(vi); err != nil { - return err - } - } - if err := padToFourByteBoundary(ws); err != nil { - return err - } - cfw.csh.ArgsLen = uint32(len(ws.BytesWritten())) - (cfw.csh.StrTabLen + hdrsz) - - return nil -} - -// AppendSegment appends a new segment to a counter data, with a new -// args section followed by a payload of counter data clauses. -func (cfw *CoverageDataWriter) AppendSegment(args map[string]string, visitor CounterVisitor) error { - cfw.stab = &stringtab.Writer{} - cfw.stab.InitWriter() - cfw.stab.Lookup("") - - var err error - for k, v := range args { - cfw.stab.Lookup(k) - cfw.stab.Lookup(v) - } - - ws := &slicewriter.WriteSeeker{} - if err = cfw.writeSegmentPreamble(args, ws); err != nil { - return err - } - if err = cfw.writeCounters(visitor, ws); err != nil { - return err - } - if err = cfw.patchSegmentHeader(ws); err != nil { - return err - } - if err := cfw.writeBytes(ws.BytesWritten()); err != nil { - return err - } - if err = cfw.writeFooter(); err != nil { - return err - } - if err := cfw.w.Flush(); err != nil { - return fmt.Errorf("write error: %v", err) - } - cfw.stab = nil - return nil -} - -func (cfw *CoverageDataWriter) writeHeader(metaFileHash [16]byte) error { - // Emit file header. - ch := coverage.CounterFileHeader{ - Magic: coverage.CovCounterMagic, - Version: coverage.CounterFileVersion, - MetaHash: metaFileHash, - CFlavor: cfw.cflavor, - BigEndian: false, - } - if err := binary.Write(cfw.w, binary.LittleEndian, ch); err != nil { - return err - } - return nil -} - -func (cfw *CoverageDataWriter) writeBytes(b []byte) error { - if len(b) == 0 { - return nil - } - nw, err := cfw.w.Write(b) - if err != nil { - return fmt.Errorf("error writing counter data: %v", err) - } - if len(b) != nw { - return fmt.Errorf("error writing counter data: short write") - } - return nil -} - -func (cfw *CoverageDataWriter) writeCounters(visitor CounterVisitor, ws *slicewriter.WriteSeeker) error { - // Notes: - // - this version writes everything little-endian, which means - // a call is needed to encode every value (expensive) - // - we may want to move to a model in which we just blast out - // all counters, or possibly mmap the file and do the write - // implicitly. - ctrb := make([]byte, 4) - wrval := func(val uint32) error { - var buf []byte - var towr int - if cfw.cflavor == coverage.CtrRaw { - binary.LittleEndian.PutUint32(ctrb, val) - buf = ctrb - towr = 4 - } else if cfw.cflavor == coverage.CtrULeb128 { - cfw.tmp = cfw.tmp[:0] - cfw.tmp = uleb128.AppendUleb128(cfw.tmp, uint(val)) - buf = cfw.tmp - towr = len(buf) - } else { - panic("internal error: bad counter flavor") - } - if sz, err := ws.Write(buf); err != nil { - return err - } else if sz != towr { - return fmt.Errorf("writing counters: short write") - } - return nil - } - - // Write out entries for each live function. - emitter := func(pkid uint32, funcid uint32, counters []uint32) error { - cfw.csh.FcnEntries++ - if err := wrval(uint32(len(counters))); err != nil { - return err - } - - if err := wrval(pkid); err != nil { - return err - } - - if err := wrval(funcid); err != nil { - return err - } - for _, val := range counters { - if err := wrval(val); err != nil { - return err - } - } - return nil - } - if err := visitor.VisitFuncs(emitter); err != nil { - return err - } - return nil -} - -func (cfw *CoverageDataWriter) writeFooter() error { - cfw.segs++ - cf := coverage.CounterFileFooter{ - Magic: coverage.CovCounterMagic, - NumSegments: cfw.segs, - } - if err := binary.Write(cfw.w, binary.LittleEndian, cf); err != nil { - return err - } - return nil -} diff --git a/contrib/go/_std_1.21/src/internal/coverage/encodecounter/ya.make b/contrib/go/_std_1.21/src/internal/coverage/encodecounter/ya.make deleted file mode 100644 index 9dde78a667..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/encodecounter/ya.make +++ /dev/null @@ -1,7 +0,0 @@ -GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) - SRCS( - encode.go - ) -ENDIF() -END() diff --git a/contrib/go/_std_1.21/src/internal/coverage/encodemeta/encode.go b/contrib/go/_std_1.21/src/internal/coverage/encodemeta/encode.go deleted file mode 100644 index d211c7c08e..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/encodemeta/encode.go +++ /dev/null @@ -1,215 +0,0 @@ -// Copyright 2021 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package encodemeta - -// This package contains APIs and helpers for encoding the meta-data -// "blob" for a single Go package, created when coverage -// instrumentation is turned on. - -import ( - "bytes" - "crypto/md5" - "encoding/binary" - "fmt" - "hash" - "internal/coverage" - "internal/coverage/stringtab" - "internal/coverage/uleb128" - "io" - "os" -) - -type CoverageMetaDataBuilder struct { - stab stringtab.Writer - funcs []funcDesc - tmp []byte // temp work slice - h hash.Hash - pkgpath uint32 - pkgname uint32 - modpath uint32 - debug bool - werr error -} - -func NewCoverageMetaDataBuilder(pkgpath string, pkgname string, modulepath string) (*CoverageMetaDataBuilder, error) { - if pkgpath == "" { - return nil, fmt.Errorf("invalid empty package path") - } - x := &CoverageMetaDataBuilder{ - tmp: make([]byte, 0, 256), - h: md5.New(), - } - x.stab.InitWriter() - x.stab.Lookup("") - x.pkgpath = x.stab.Lookup(pkgpath) - x.pkgname = x.stab.Lookup(pkgname) - x.modpath = x.stab.Lookup(modulepath) - io.WriteString(x.h, pkgpath) - io.WriteString(x.h, pkgname) - io.WriteString(x.h, modulepath) - return x, nil -} - -func h32(x uint32, h hash.Hash, tmp []byte) { - tmp = tmp[:0] - tmp = append(tmp, []byte{0, 0, 0, 0}...) - binary.LittleEndian.PutUint32(tmp, x) - h.Write(tmp) -} - -type funcDesc struct { - encoded []byte -} - -// AddFunc registers a new function with the meta data builder. -func (b *CoverageMetaDataBuilder) AddFunc(f coverage.FuncDesc) uint { - hashFuncDesc(b.h, &f, b.tmp) - fd := funcDesc{} - b.tmp = b.tmp[:0] - b.tmp = uleb128.AppendUleb128(b.tmp, uint(len(f.Units))) - b.tmp = uleb128.AppendUleb128(b.tmp, uint(b.stab.Lookup(f.Funcname))) - b.tmp = uleb128.AppendUleb128(b.tmp, uint(b.stab.Lookup(f.Srcfile))) - for _, u := range f.Units { - b.tmp = uleb128.AppendUleb128(b.tmp, uint(u.StLine)) - b.tmp = uleb128.AppendUleb128(b.tmp, uint(u.StCol)) - b.tmp = uleb128.AppendUleb128(b.tmp, uint(u.EnLine)) - b.tmp = uleb128.AppendUleb128(b.tmp, uint(u.EnCol)) - b.tmp = uleb128.AppendUleb128(b.tmp, uint(u.NxStmts)) - } - lit := uint(0) - if f.Lit { - lit = 1 - } - b.tmp = uleb128.AppendUleb128(b.tmp, lit) - fd.encoded = bytes.Clone(b.tmp) - rv := uint(len(b.funcs)) - b.funcs = append(b.funcs, fd) - return rv -} - -func (b *CoverageMetaDataBuilder) emitFuncOffsets(w io.WriteSeeker, off int64) int64 { - nFuncs := len(b.funcs) - var foff int64 = coverage.CovMetaHeaderSize + int64(b.stab.Size()) + int64(nFuncs)*4 - for idx := 0; idx < nFuncs; idx++ { - b.wrUint32(w, uint32(foff)) - foff += int64(len(b.funcs[idx].encoded)) - } - return off + (int64(len(b.funcs)) * 4) -} - -func (b *CoverageMetaDataBuilder) emitFunc(w io.WriteSeeker, off int64, f funcDesc) (int64, error) { - ew := len(f.encoded) - if nw, err := w.Write(f.encoded); err != nil { - return 0, err - } else if ew != nw { - return 0, fmt.Errorf("short write emitting coverage meta-data") - } - return off + int64(ew), nil -} - -func (b *CoverageMetaDataBuilder) reportWriteError(err error) { - if b.werr != nil { - b.werr = err - } -} - -func (b *CoverageMetaDataBuilder) wrUint32(w io.WriteSeeker, v uint32) { - b.tmp = b.tmp[:0] - b.tmp = append(b.tmp, []byte{0, 0, 0, 0}...) - binary.LittleEndian.PutUint32(b.tmp, v) - if nw, err := w.Write(b.tmp); err != nil { - b.reportWriteError(err) - } else if nw != 4 { - b.reportWriteError(fmt.Errorf("short write")) - } -} - -// Emit writes the meta-data accumulated so far in this builder to 'w'. -// Returns a hash of the meta-data payload and an error. -func (b *CoverageMetaDataBuilder) Emit(w io.WriteSeeker) ([16]byte, error) { - // Emit header. Length will initially be zero, we'll - // back-patch it later. - var digest [16]byte - copy(digest[:], b.h.Sum(nil)) - mh := coverage.MetaSymbolHeader{ - // hash and length initially zero, will be back-patched - PkgPath: uint32(b.pkgpath), - PkgName: uint32(b.pkgname), - ModulePath: uint32(b.modpath), - NumFiles: uint32(b.stab.Nentries()), - NumFuncs: uint32(len(b.funcs)), - MetaHash: digest, - } - if b.debug { - fmt.Fprintf(os.Stderr, "=-= writing header: %+v\n", mh) - } - if err := binary.Write(w, binary.LittleEndian, mh); err != nil { - return digest, fmt.Errorf("error writing meta-file header: %v", err) - } - off := int64(coverage.CovMetaHeaderSize) - - // Write function offsets section - off = b.emitFuncOffsets(w, off) - - // Check for any errors up to this point. - if b.werr != nil { - return digest, b.werr - } - - // Write string table. - if err := b.stab.Write(w); err != nil { - return digest, err - } - off += int64(b.stab.Size()) - - // Write functions - for _, f := range b.funcs { - var err error - off, err = b.emitFunc(w, off, f) - if err != nil { - return digest, err - } - } - - // Back-patch the length. - totalLength := uint32(off) - if _, err := w.Seek(0, io.SeekStart); err != nil { - return digest, err - } - b.wrUint32(w, totalLength) - if b.werr != nil { - return digest, b.werr - } - return digest, nil -} - -// HashFuncDesc computes an md5 sum of a coverage.FuncDesc and returns -// a digest for it. -func HashFuncDesc(f *coverage.FuncDesc) [16]byte { - h := md5.New() - tmp := make([]byte, 0, 32) - hashFuncDesc(h, f, tmp) - var r [16]byte - copy(r[:], h.Sum(nil)) - return r -} - -// hashFuncDesc incorporates a given function 'f' into the hash 'h'. -func hashFuncDesc(h hash.Hash, f *coverage.FuncDesc, tmp []byte) { - io.WriteString(h, f.Funcname) - io.WriteString(h, f.Srcfile) - for _, u := range f.Units { - h32(u.StLine, h, tmp) - h32(u.StCol, h, tmp) - h32(u.EnLine, h, tmp) - h32(u.EnCol, h, tmp) - h32(u.NxStmts, h, tmp) - } - lit := uint32(0) - if f.Lit { - lit = 1 - } - h32(lit, h, tmp) -} diff --git a/contrib/go/_std_1.21/src/internal/coverage/encodemeta/encodefile.go b/contrib/go/_std_1.21/src/internal/coverage/encodemeta/encodefile.go deleted file mode 100644 index 38ae46e4f5..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/encodemeta/encodefile.go +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright 2021 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package encodemeta - -import ( - "bufio" - "crypto/md5" - "encoding/binary" - "fmt" - "internal/coverage" - "internal/coverage/stringtab" - "io" - "os" - "unsafe" -) - -// This package contains APIs and helpers for writing out a meta-data -// file (composed of a file header, offsets/lengths, and then a series of -// meta-data blobs emitted by the compiler, one per Go package). - -type CoverageMetaFileWriter struct { - stab stringtab.Writer - mfname string - w *bufio.Writer - tmp []byte - debug bool -} - -func NewCoverageMetaFileWriter(mfname string, w io.Writer) *CoverageMetaFileWriter { - r := &CoverageMetaFileWriter{ - mfname: mfname, - w: bufio.NewWriter(w), - tmp: make([]byte, 64), - } - r.stab.InitWriter() - r.stab.Lookup("") - return r -} - -func (m *CoverageMetaFileWriter) Write(finalHash [16]byte, blobs [][]byte, mode coverage.CounterMode, granularity coverage.CounterGranularity) error { - mhsz := uint64(unsafe.Sizeof(coverage.MetaFileHeader{})) - stSize := m.stab.Size() - stOffset := mhsz + uint64(16*len(blobs)) - preambleLength := stOffset + uint64(stSize) - - if m.debug { - fmt.Fprintf(os.Stderr, "=+= sizeof(MetaFileHeader)=%d\n", mhsz) - fmt.Fprintf(os.Stderr, "=+= preambleLength=%d stSize=%d\n", preambleLength, stSize) - } - - // Compute total size - tlen := preambleLength - for i := 0; i < len(blobs); i++ { - tlen += uint64(len(blobs[i])) - } - - // Emit header - mh := coverage.MetaFileHeader{ - Magic: coverage.CovMetaMagic, - Version: coverage.MetaFileVersion, - TotalLength: tlen, - Entries: uint64(len(blobs)), - MetaFileHash: finalHash, - StrTabOffset: uint32(stOffset), - StrTabLength: stSize, - CMode: mode, - CGranularity: granularity, - } - var err error - if err = binary.Write(m.w, binary.LittleEndian, mh); err != nil { - return fmt.Errorf("error writing %s: %v", m.mfname, err) - } - - if m.debug { - fmt.Fprintf(os.Stderr, "=+= len(blobs) is %d\n", mh.Entries) - } - - // Emit package offsets section followed by package lengths section. - off := preambleLength - off2 := mhsz - buf := make([]byte, 8) - for _, blob := range blobs { - binary.LittleEndian.PutUint64(buf, off) - if _, err = m.w.Write(buf); err != nil { - return fmt.Errorf("error writing %s: %v", m.mfname, err) - } - if m.debug { - fmt.Fprintf(os.Stderr, "=+= pkg offset %d 0x%x\n", off, off) - } - off += uint64(len(blob)) - off2 += 8 - } - for _, blob := range blobs { - bl := uint64(len(blob)) - binary.LittleEndian.PutUint64(buf, bl) - if _, err = m.w.Write(buf); err != nil { - return fmt.Errorf("error writing %s: %v", m.mfname, err) - } - if m.debug { - fmt.Fprintf(os.Stderr, "=+= pkg len %d 0x%x\n", bl, bl) - } - off2 += 8 - } - - // Emit string table - if err = m.stab.Write(m.w); err != nil { - return err - } - - // Now emit blobs themselves. - for k, blob := range blobs { - if m.debug { - fmt.Fprintf(os.Stderr, "=+= writing blob %d len %d at off=%d hash %s\n", k, len(blob), off2, fmt.Sprintf("%x", md5.Sum(blob))) - } - if _, err = m.w.Write(blob); err != nil { - return fmt.Errorf("error writing %s: %v", m.mfname, err) - } - if m.debug { - fmt.Fprintf(os.Stderr, "=+= wrote package payload of %d bytes\n", - len(blob)) - } - off2 += uint64(len(blob)) - } - - // Flush writer, and we're done. - if err = m.w.Flush(); err != nil { - return fmt.Errorf("error writing %s: %v", m.mfname, err) - } - return nil -} diff --git a/contrib/go/_std_1.21/src/internal/coverage/encodemeta/ya.make b/contrib/go/_std_1.21/src/internal/coverage/encodemeta/ya.make deleted file mode 100644 index fc3e3c9c1a..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/encodemeta/ya.make +++ /dev/null @@ -1,8 +0,0 @@ -GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) - SRCS( - encode.go - encodefile.go - ) -ENDIF() -END() diff --git a/contrib/go/_std_1.21/src/internal/coverage/pkid.go b/contrib/go/_std_1.21/src/internal/coverage/pkid.go deleted file mode 100644 index 8ddd44d6bb..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/pkid.go +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package coverage - -// Building the runtime package with coverage instrumentation enabled -// is tricky. For all other packages, you can be guaranteed that -// the package init function is run before any functions are executed, -// but this invariant is not maintained for packages such as "runtime", -// "internal/cpu", etc. To handle this, hard-code the package ID for -// the set of packages whose functions may be running before the -// init function of the package is complete. -// -// Hardcoding is unfortunate because it means that the tool that does -// coverage instrumentation has to keep a list of runtime packages, -// meaning that if someone makes changes to the pkg "runtime" -// dependencies, unexpected behavior will result for coverage builds. -// The coverage runtime will detect and report the unexpected -// behavior; look for an error of this form: -// -// internal error in coverage meta-data tracking: -// list of hard-coded runtime package IDs needs revising. -// registered list: -// slot: 0 path='internal/cpu' hard-coded id: 1 -// slot: 1 path='internal/goarch' hard-coded id: 2 -// slot: 2 path='runtime/internal/atomic' hard-coded id: 3 -// slot: 3 path='internal/goos' -// slot: 4 path='runtime/internal/sys' hard-coded id: 5 -// slot: 5 path='internal/abi' hard-coded id: 4 -// slot: 6 path='runtime/internal/math' hard-coded id: 6 -// slot: 7 path='internal/bytealg' hard-coded id: 7 -// slot: 8 path='internal/goexperiment' -// slot: 9 path='runtime/internal/syscall' hard-coded id: 8 -// slot: 10 path='runtime' hard-coded id: 9 -// fatal error: runtime.addCovMeta -// -// For the error above, the hard-coded list is missing "internal/goos" -// and "internal/goexperiment" ; the developer in question will need -// to copy the list above into "rtPkgs" below. -// -// Note: this strategy assumes that the list of dependencies of -// package runtime is fixed, and doesn't vary depending on OS/arch. If -// this were to be the case, we would need a table of some sort below -// as opposed to a fixed list. - -var rtPkgs = [...]string{ - "internal/cpu", - "internal/goarch", - "runtime/internal/atomic", - "internal/goos", - "runtime/internal/sys", - "internal/abi", - "runtime/internal/math", - "internal/bytealg", - "internal/goexperiment", - "runtime/internal/syscall", - "runtime", -} - -// Scoping note: the constants and apis in this file are internal -// only, not expected to ever be exposed outside of the runtime (unlike -// other coverage file formats and APIs, which will likely be shared -// at some point). - -// NotHardCoded is a package pseudo-ID indicating that a given package -// is not part of the runtime and doesn't require a hard-coded ID. -const NotHardCoded = -1 - -// HardCodedPkgID returns the hard-coded ID for the specified package -// path, or -1 if we don't use a hard-coded ID. Hard-coded IDs start -// at -2 and decrease as we go down the list. -func HardCodedPkgID(pkgpath string) int { - for k, p := range rtPkgs { - if p == pkgpath { - return (0 - k) - 2 - } - } - return NotHardCoded -} diff --git a/contrib/go/_std_1.21/src/internal/coverage/pods/pods.go b/contrib/go/_std_1.21/src/internal/coverage/pods/pods.go deleted file mode 100644 index e08f82ec59..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/pods/pods.go +++ /dev/null @@ -1,197 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package pods - -import ( - "fmt" - "internal/coverage" - "os" - "path/filepath" - "regexp" - "sort" - "strconv" -) - -// Pod encapsulates a set of files emitted during the executions of a -// coverage-instrumented binary. Each pod contains a single meta-data -// file, and then 0 or more counter data files that refer to that -// meta-data file. Pods are intended to simplify processing of -// coverage output files in the case where we have several coverage -// output directories containing output files derived from more -// than one instrumented executable. In the case where the files that -// make up a pod are spread out across multiple directories, each -// element of the "Origins" field below will be populated with the -// index of the originating directory for the corresponding counter -// data file (within the slice of input dirs handed to CollectPods). -// The ProcessIDs field will be populated with the process ID of each -// data file in the CounterDataFiles slice. -type Pod struct { - MetaFile string - CounterDataFiles []string - Origins []int - ProcessIDs []int -} - -// CollectPods visits the files contained within the directories in -// the list 'dirs', collects any coverage-related files, partitions -// them into pods, and returns a list of the pods to the caller, along -// with an error if something went wrong during directory/file -// reading. -// -// CollectPods skips over any file that is not related to coverage -// (e.g. avoids looking at things that are not meta-data files or -// counter-data files). CollectPods also skips over 'orphaned' counter -// data files (e.g. counter data files for which we can't find the -// corresponding meta-data file). If "warn" is true, CollectPods will -// issue warnings to stderr when it encounters non-fatal problems (for -// orphans or a directory with no meta-data files). -func CollectPods(dirs []string, warn bool) ([]Pod, error) { - files := []string{} - dirIndices := []int{} - for k, dir := range dirs { - dents, err := os.ReadDir(dir) - if err != nil { - return nil, err - } - for _, e := range dents { - if e.IsDir() { - continue - } - files = append(files, filepath.Join(dir, e.Name())) - dirIndices = append(dirIndices, k) - } - } - return collectPodsImpl(files, dirIndices, warn), nil -} - -// CollectPodsFromFiles functions the same as "CollectPods" but -// operates on an explicit list of files instead of a directory. -func CollectPodsFromFiles(files []string, warn bool) []Pod { - return collectPodsImpl(files, nil, warn) -} - -type fileWithAnnotations struct { - file string - origin int - pid int -} - -type protoPod struct { - mf string - elements []fileWithAnnotations -} - -// collectPodsImpl examines the specified list of files and picks out -// subsets that correspond to coverage pods. The first stage in this -// process is collecting a set { M1, M2, ... MN } where each M_k is a -// distinct coverage meta-data file. We then create a single pod for -// each meta-data file M_k, then find all of the counter data files -// that refer to that meta-data file (recall that the counter data -// file name incorporates the meta-data hash), and add the counter -// data file to the appropriate pod. -// -// This process is complicated by the fact that we need to keep track -// of directory indices for counter data files. Here is an example to -// motivate: -// -// directory 1: -// -// M1 covmeta.9bbf1777f47b3fcacb05c38b035512d6 -// C1 covcounters.9bbf1777f47b3fcacb05c38b035512d6.1677673.1662138360208416486 -// C2 covcounters.9bbf1777f47b3fcacb05c38b035512d6.1677637.1662138359974441782 -// -// directory 2: -// -// M2 covmeta.9bbf1777f47b3fcacb05c38b035512d6 -// C3 covcounters.9bbf1777f47b3fcacb05c38b035512d6.1677445.1662138360208416480 -// C4 covcounters.9bbf1777f47b3fcacb05c38b035512d6.1677677.1662138359974441781 -// M3 covmeta.a723844208cea2ae80c63482c78b2245 -// C5 covcounters.a723844208cea2ae80c63482c78b2245.3677445.1662138360208416480 -// C6 covcounters.a723844208cea2ae80c63482c78b2245.1877677.1662138359974441781 -// -// In these two directories we have three meta-data files, but only -// two are distinct, meaning that we'll wind up with two pods. The -// first pod (with meta-file M1) will have four counter data files -// (C1, C2, C3, C4) and the second pod will have two counter data files -// (C5, C6). -func collectPodsImpl(files []string, dirIndices []int, warn bool) []Pod { - metaRE := regexp.MustCompile(fmt.Sprintf(`^%s\.(\S+)$`, coverage.MetaFilePref)) - mm := make(map[string]protoPod) - for _, f := range files { - base := filepath.Base(f) - if m := metaRE.FindStringSubmatch(base); m != nil { - tag := m[1] - // We need to allow for the possibility of duplicate - // meta-data files. If we hit this case, use the - // first encountered as the canonical version. - if _, ok := mm[tag]; !ok { - mm[tag] = protoPod{mf: f} - } - // FIXME: should probably check file length and hash here for - // the duplicate. - } - } - counterRE := regexp.MustCompile(fmt.Sprintf(coverage.CounterFileRegexp, coverage.CounterFilePref)) - for k, f := range files { - base := filepath.Base(f) - if m := counterRE.FindStringSubmatch(base); m != nil { - tag := m[1] // meta hash - pid, err := strconv.Atoi(m[2]) - if err != nil { - continue - } - if v, ok := mm[tag]; ok { - idx := -1 - if dirIndices != nil { - idx = dirIndices[k] - } - fo := fileWithAnnotations{file: f, origin: idx, pid: pid} - v.elements = append(v.elements, fo) - mm[tag] = v - } else { - if warn { - warning("skipping orphaned counter file: %s", f) - } - } - } - } - if len(mm) == 0 { - if warn { - warning("no coverage data files found") - } - return nil - } - pods := make([]Pod, 0, len(mm)) - for _, p := range mm { - sort.Slice(p.elements, func(i, j int) bool { - if p.elements[i].origin != p.elements[j].origin { - return p.elements[i].origin < p.elements[j].origin - } - return p.elements[i].file < p.elements[j].file - }) - pod := Pod{ - MetaFile: p.mf, - CounterDataFiles: make([]string, 0, len(p.elements)), - Origins: make([]int, 0, len(p.elements)), - ProcessIDs: make([]int, 0, len(p.elements)), - } - for _, e := range p.elements { - pod.CounterDataFiles = append(pod.CounterDataFiles, e.file) - pod.Origins = append(pod.Origins, e.origin) - pod.ProcessIDs = append(pod.ProcessIDs, e.pid) - } - pods = append(pods, pod) - } - sort.Slice(pods, func(i, j int) bool { - return pods[i].MetaFile < pods[j].MetaFile - }) - return pods -} - -func warning(s string, a ...interface{}) { - fmt.Fprintf(os.Stderr, "warning: ") - fmt.Fprintf(os.Stderr, s, a...) - fmt.Fprintf(os.Stderr, "\n") -} diff --git a/contrib/go/_std_1.21/src/internal/coverage/pods/ya.make b/contrib/go/_std_1.21/src/internal/coverage/pods/ya.make deleted file mode 100644 index c0ebbf226c..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/pods/ya.make +++ /dev/null @@ -1,7 +0,0 @@ -GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) - SRCS( - pods.go - ) -ENDIF() -END() diff --git a/contrib/go/_std_1.21/src/internal/coverage/rtcov/ya.make b/contrib/go/_std_1.21/src/internal/coverage/rtcov/ya.make index 7796471888..612a38a44d 100644 --- a/contrib/go/_std_1.21/src/internal/coverage/rtcov/ya.make +++ b/contrib/go/_std_1.21/src/internal/coverage/rtcov/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( rtcov.go ) diff --git a/contrib/go/_std_1.21/src/internal/coverage/slicereader/slicereader.go b/contrib/go/_std_1.21/src/internal/coverage/slicereader/slicereader.go deleted file mode 100644 index d9f2a7eac4..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/slicereader/slicereader.go +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright 2021 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package slicereader - -import ( - "encoding/binary" - "fmt" - "io" - "unsafe" -) - -// This file contains the helper "SliceReader", a utility for -// reading values from a byte slice that may or may not be backed -// by a read-only mmap'd region. - -type Reader struct { - b []byte - readonly bool - off int64 -} - -func NewReader(b []byte, readonly bool) *Reader { - r := Reader{ - b: b, - readonly: readonly, - } - return &r -} - -func (r *Reader) Read(b []byte) (int, error) { - amt := len(b) - toread := r.b[r.off:] - if len(toread) < amt { - amt = len(toread) - } - copy(b, toread) - r.off += int64(amt) - return amt, nil -} - -func (r *Reader) Seek(offset int64, whence int) (ret int64, err error) { - switch whence { - case io.SeekStart: - if offset < 0 || offset > int64(len(r.b)) { - return 0, fmt.Errorf("invalid seek: new offset %d (out of range [0 %d]", offset, len(r.b)) - } - r.off = offset - return offset, nil - case io.SeekCurrent: - newoff := r.off + offset - if newoff < 0 || newoff > int64(len(r.b)) { - return 0, fmt.Errorf("invalid seek: new offset %d (out of range [0 %d]", newoff, len(r.b)) - } - r.off = newoff - return r.off, nil - case io.SeekEnd: - newoff := int64(len(r.b)) + offset - if newoff < 0 || newoff > int64(len(r.b)) { - return 0, fmt.Errorf("invalid seek: new offset %d (out of range [0 %d]", newoff, len(r.b)) - } - r.off = newoff - return r.off, nil - } - // other modes are not supported - return 0, fmt.Errorf("unsupported seek mode %d", whence) -} - -func (r *Reader) Offset() int64 { - return r.off -} - -func (r *Reader) ReadUint8() uint8 { - rv := uint8(r.b[int(r.off)]) - r.off += 1 - return rv -} - -func (r *Reader) ReadUint32() uint32 { - end := int(r.off) + 4 - rv := binary.LittleEndian.Uint32(r.b[int(r.off):end:end]) - r.off += 4 - return rv -} - -func (r *Reader) ReadUint64() uint64 { - end := int(r.off) + 8 - rv := binary.LittleEndian.Uint64(r.b[int(r.off):end:end]) - r.off += 8 - return rv -} - -func (r *Reader) ReadULEB128() (value uint64) { - var shift uint - - for { - b := r.b[r.off] - r.off++ - value |= (uint64(b&0x7F) << shift) - if b&0x80 == 0 { - break - } - shift += 7 - } - return -} - -func (r *Reader) ReadString(len int64) string { - b := r.b[r.off : r.off+len] - r.off += len - if r.readonly { - return toString(b) // backed by RO memory, ok to make unsafe string - } - return string(b) -} - -func toString(b []byte) string { - if len(b) == 0 { - return "" - } - return unsafe.String(&b[0], len(b)) -} diff --git a/contrib/go/_std_1.21/src/internal/coverage/slicereader/ya.make b/contrib/go/_std_1.21/src/internal/coverage/slicereader/ya.make deleted file mode 100644 index 36d75ad3ea..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/slicereader/ya.make +++ /dev/null @@ -1,7 +0,0 @@ -GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) - SRCS( - slicereader.go - ) -ENDIF() -END() diff --git a/contrib/go/_std_1.21/src/internal/coverage/slicewriter/slicewriter.go b/contrib/go/_std_1.21/src/internal/coverage/slicewriter/slicewriter.go deleted file mode 100644 index 460e9dc98c..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/slicewriter/slicewriter.go +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package slicewriter - -import ( - "fmt" - "io" -) - -// WriteSeeker is a helper object that implements the io.WriteSeeker -// interface. Clients can create a WriteSeeker, make a series of Write -// calls to add data to it (and possibly Seek calls to update -// previously written portions), then finally invoke BytesWritten() to -// get a pointer to the constructed byte slice. -type WriteSeeker struct { - payload []byte - off int64 -} - -func (sws *WriteSeeker) Write(p []byte) (n int, err error) { - amt := len(p) - towrite := sws.payload[sws.off:] - if len(towrite) < amt { - sws.payload = append(sws.payload, make([]byte, amt-len(towrite))...) - towrite = sws.payload[sws.off:] - } - copy(towrite, p) - sws.off += int64(amt) - return amt, nil -} - -// Seek repositions the read/write position of the WriteSeeker within -// its internally maintained slice. Note that it is not possible to -// expand the size of the slice using SEEK_SET; trying to seek outside -// the slice will result in an error. -func (sws *WriteSeeker) Seek(offset int64, whence int) (int64, error) { - switch whence { - case io.SeekStart: - if sws.off != offset && (offset < 0 || offset > int64(len(sws.payload))) { - return 0, fmt.Errorf("invalid seek: new offset %d (out of range [0 %d]", offset, len(sws.payload)) - } - sws.off = offset - return offset, nil - case io.SeekCurrent: - newoff := sws.off + offset - if newoff != sws.off && (newoff < 0 || newoff > int64(len(sws.payload))) { - return 0, fmt.Errorf("invalid seek: new offset %d (out of range [0 %d]", newoff, len(sws.payload)) - } - sws.off += offset - return sws.off, nil - case io.SeekEnd: - newoff := int64(len(sws.payload)) + offset - if newoff != sws.off && (newoff < 0 || newoff > int64(len(sws.payload))) { - return 0, fmt.Errorf("invalid seek: new offset %d (out of range [0 %d]", newoff, len(sws.payload)) - } - sws.off = newoff - return sws.off, nil - } - // other modes not supported - return 0, fmt.Errorf("unsupported seek mode %d", whence) -} - -// BytesWritten returns the underlying byte slice for the WriteSeeker, -// containing the data written to it via Write/Seek calls. -func (sws *WriteSeeker) BytesWritten() []byte { - return sws.payload -} - -func (sws *WriteSeeker) Read(p []byte) (n int, err error) { - amt := len(p) - toread := sws.payload[sws.off:] - if len(toread) < amt { - amt = len(toread) - } - copy(p, toread) - sws.off += int64(amt) - return amt, nil -} diff --git a/contrib/go/_std_1.21/src/internal/coverage/slicewriter/ya.make b/contrib/go/_std_1.21/src/internal/coverage/slicewriter/ya.make deleted file mode 100644 index 54f01a79eb..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/slicewriter/ya.make +++ /dev/null @@ -1,7 +0,0 @@ -GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) - SRCS( - slicewriter.go - ) -ENDIF() -END() diff --git a/contrib/go/_std_1.21/src/internal/coverage/stringtab/stringtab.go b/contrib/go/_std_1.21/src/internal/coverage/stringtab/stringtab.go deleted file mode 100644 index 156c8ad188..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/stringtab/stringtab.go +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package stringtab - -import ( - "fmt" - "internal/coverage/slicereader" - "internal/coverage/uleb128" - "io" -) - -// This package implements string table writer and reader utilities, -// for use in emitting and reading/decoding coverage meta-data and -// counter-data files. - -// Writer implements a string table writing utility. -type Writer struct { - stab map[string]uint32 - strs []string - tmp []byte - frozen bool -} - -// InitWriter initializes a stringtab.Writer. -func (stw *Writer) InitWriter() { - stw.stab = make(map[string]uint32) - stw.tmp = make([]byte, 64) -} - -// Nentries returns the number of strings interned so far. -func (stw *Writer) Nentries() uint32 { - return uint32(len(stw.strs)) -} - -// Lookup looks up string 's' in the writer's table, adding -// a new entry if need be, and returning an index into the table. -func (stw *Writer) Lookup(s string) uint32 { - if idx, ok := stw.stab[s]; ok { - return idx - } - if stw.frozen { - panic("internal error: string table previously frozen") - } - idx := uint32(len(stw.strs)) - stw.stab[s] = idx - stw.strs = append(stw.strs, s) - return idx -} - -// Size computes the memory in bytes needed for the serialized -// version of a stringtab.Writer. -func (stw *Writer) Size() uint32 { - rval := uint32(0) - stw.tmp = stw.tmp[:0] - stw.tmp = uleb128.AppendUleb128(stw.tmp, uint(len(stw.strs))) - rval += uint32(len(stw.tmp)) - for _, s := range stw.strs { - stw.tmp = stw.tmp[:0] - slen := uint(len(s)) - stw.tmp = uleb128.AppendUleb128(stw.tmp, slen) - rval += uint32(len(stw.tmp)) + uint32(slen) - } - return rval -} - -// Write writes the string table in serialized form to the specified -// io.Writer. -func (stw *Writer) Write(w io.Writer) error { - wr128 := func(v uint) error { - stw.tmp = stw.tmp[:0] - stw.tmp = uleb128.AppendUleb128(stw.tmp, v) - if nw, err := w.Write(stw.tmp); err != nil { - return fmt.Errorf("writing string table: %v", err) - } else if nw != len(stw.tmp) { - return fmt.Errorf("short write emitting stringtab uleb") - } - return nil - } - if err := wr128(uint(len(stw.strs))); err != nil { - return err - } - for _, s := range stw.strs { - if err := wr128(uint(len(s))); err != nil { - return err - } - if nw, err := w.Write([]byte(s)); err != nil { - return fmt.Errorf("writing string table: %v", err) - } else if nw != len([]byte(s)) { - return fmt.Errorf("short write emitting stringtab") - } - } - return nil -} - -// Freeze sends a signal to the writer that no more additions are -// allowed, only lookups of existing strings (if a lookup triggers -// addition, a panic will result). Useful as a mechanism for -// "finalizing" a string table prior to writing it out. -func (stw *Writer) Freeze() { - stw.frozen = true -} - -// Reader is a helper for reading a string table previously -// serialized by a Writer.Write call. -type Reader struct { - r *slicereader.Reader - strs []string -} - -// NewReader creates a stringtab.Reader to read the contents -// of a string table from 'r'. -func NewReader(r *slicereader.Reader) *Reader { - str := &Reader{ - r: r, - } - return str -} - -// Read reads/decodes a string table using the reader provided. -func (str *Reader) Read() { - numEntries := int(str.r.ReadULEB128()) - str.strs = make([]string, 0, numEntries) - for idx := 0; idx < numEntries; idx++ { - slen := str.r.ReadULEB128() - str.strs = append(str.strs, str.r.ReadString(int64(slen))) - } -} - -// Entries returns the number of decoded entries in a string table. -func (str *Reader) Entries() int { - return len(str.strs) -} - -// Get returns string 'idx' within the string table. -func (str *Reader) Get(idx uint32) string { - return str.strs[idx] -} diff --git a/contrib/go/_std_1.21/src/internal/coverage/stringtab/ya.make b/contrib/go/_std_1.21/src/internal/coverage/stringtab/ya.make deleted file mode 100644 index 900e787fee..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/stringtab/ya.make +++ /dev/null @@ -1,7 +0,0 @@ -GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) - SRCS( - stringtab.go - ) -ENDIF() -END() diff --git a/contrib/go/_std_1.21/src/internal/coverage/uleb128/uleb128.go b/contrib/go/_std_1.21/src/internal/coverage/uleb128/uleb128.go deleted file mode 100644 index e5cd92a03e..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/uleb128/uleb128.go +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2021 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package uleb128 - -func AppendUleb128(b []byte, v uint) []byte { - for { - c := uint8(v & 0x7f) - v >>= 7 - if v != 0 { - c |= 0x80 - } - b = append(b, c) - if c&0x80 == 0 { - break - } - } - return b -} diff --git a/contrib/go/_std_1.21/src/internal/coverage/uleb128/ya.make b/contrib/go/_std_1.21/src/internal/coverage/uleb128/ya.make deleted file mode 100644 index d284bef197..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/uleb128/ya.make +++ /dev/null @@ -1,7 +0,0 @@ -GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) - SRCS( - uleb128.go - ) -ENDIF() -END() diff --git a/contrib/go/_std_1.21/src/internal/coverage/ya.make b/contrib/go/_std_1.21/src/internal/coverage/ya.make deleted file mode 100644 index ea4d44ab63..0000000000 --- a/contrib/go/_std_1.21/src/internal/coverage/ya.make +++ /dev/null @@ -1,9 +0,0 @@ -GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) - SRCS( - cmddefs.go - defs.go - pkid.go - ) -ENDIF() -END() diff --git a/contrib/go/_std_1.21/src/internal/cpu/ya.make b/contrib/go/_std_1.21/src/internal/cpu/ya.make index c4d603a103..ca55386531 100644 --- a/contrib/go/_std_1.21/src/internal/cpu/ya.make +++ b/contrib/go/_std_1.21/src/internal/cpu/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE) SRCS( cpu.go cpu.s @@ -8,14 +8,14 @@ IF (OS_DARWIN AND ARCH_ARM64) cpu_arm64_darwin.go cpu_no_name.go ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( cpu.go cpu.s cpu_x86.go cpu_x86.s ) -ELSEIF (OS_LINUX AND ARCH_AARCH64) +ELSEIF (OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( cpu.go cpu.s diff --git a/contrib/go/_std_1.21/src/internal/fmtsort/ya.make b/contrib/go/_std_1.21/src/internal/fmtsort/ya.make index e32a639758..553faf495c 100644 --- a/contrib/go/_std_1.21/src/internal/fmtsort/ya.make +++ b/contrib/go/_std_1.21/src/internal/fmtsort/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( sort.go ) diff --git a/contrib/go/_std_1.21/src/internal/fuzz/ya.make b/contrib/go/_std_1.21/src/internal/fuzz/ya.make index d8789c1597..aa594f3c23 100644 --- a/contrib/go/_std_1.21/src/internal/fuzz/ya.make +++ b/contrib/go/_std_1.21/src/internal/fuzz/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE) SRCS( counters_supported.go coverage.go @@ -15,7 +15,7 @@ IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_A trace.go worker.go ) -ELSEIF (OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( counters_supported.go coverage.go diff --git a/contrib/go/_std_1.21/src/internal/goarch/ya.make b/contrib/go/_std_1.21/src/internal/goarch/ya.make index 463e36757d..b95edc6556 100644 --- a/contrib/go/_std_1.21/src/internal/goarch/ya.make +++ b/contrib/go/_std_1.21/src/internal/goarch/ya.make @@ -1,11 +1,11 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( goarch.go goarch_arm64.go zgoarch_arm64.go ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( goarch.go goarch_amd64.go diff --git a/contrib/go/_std_1.21/src/internal/godebug/ya.make b/contrib/go/_std_1.21/src/internal/godebug/ya.make index 0c66be935e..09012c7a50 100644 --- a/contrib/go/_std_1.21/src/internal/godebug/ya.make +++ b/contrib/go/_std_1.21/src/internal/godebug/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( godebug.go ) diff --git a/contrib/go/_std_1.21/src/internal/godebugs/ya.make b/contrib/go/_std_1.21/src/internal/godebugs/ya.make index 5600dc3aa3..ec7a2a1eeb 100644 --- a/contrib/go/_std_1.21/src/internal/godebugs/ya.make +++ b/contrib/go/_std_1.21/src/internal/godebugs/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( table.go ) diff --git a/contrib/go/_std_1.21/src/internal/goexperiment/ya.make b/contrib/go/_std_1.21/src/internal/goexperiment/ya.make index 1b5c3d1d4e..fb82b57f0b 100644 --- a/contrib/go/_std_1.21/src/internal/goexperiment/ya.make +++ b/contrib/go/_std_1.21/src/internal/goexperiment/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( exp_arenas_off.go exp_boringcrypto_off.go diff --git a/contrib/go/_std_1.21/src/internal/goos/ya.make b/contrib/go/_std_1.21/src/internal/goos/ya.make index 5eed22c1ab..cad5689a9b 100644 --- a/contrib/go/_std_1.21/src/internal/goos/ya.make +++ b/contrib/go/_std_1.21/src/internal/goos/ya.make @@ -1,17 +1,17 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE) SRCS( goos.go unix.go zgoos_darwin.go ) -ELSEIF (OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64) +ELSEIF (OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE) SRCS( goos.go unix.go zgoos_linux.go ) -ELSEIF (OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( goos.go nonunix.go diff --git a/contrib/go/_std_1.21/src/internal/goroot/ya.make b/contrib/go/_std_1.21/src/internal/goroot/ya.make index 06c880724f..68c047e416 100644 --- a/contrib/go/_std_1.21/src/internal/goroot/ya.make +++ b/contrib/go/_std_1.21/src/internal/goroot/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( gc.go ) diff --git a/contrib/go/_std_1.21/src/internal/goversion/ya.make b/contrib/go/_std_1.21/src/internal/goversion/ya.make index ccfea1a0e0..b8e5b57550 100644 --- a/contrib/go/_std_1.21/src/internal/goversion/ya.make +++ b/contrib/go/_std_1.21/src/internal/goversion/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( goversion.go ) diff --git a/contrib/go/_std_1.21/src/internal/intern/ya.make b/contrib/go/_std_1.21/src/internal/intern/ya.make index 6216c36be9..27aa4bfa62 100644 --- a/contrib/go/_std_1.21/src/internal/intern/ya.make +++ b/contrib/go/_std_1.21/src/internal/intern/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( intern.go ) diff --git a/contrib/go/_std_1.21/src/internal/itoa/ya.make b/contrib/go/_std_1.21/src/internal/itoa/ya.make index bed9aba236..e1b7ab8c40 100644 --- a/contrib/go/_std_1.21/src/internal/itoa/ya.make +++ b/contrib/go/_std_1.21/src/internal/itoa/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( itoa.go ) diff --git a/contrib/go/_std_1.21/src/internal/lazyregexp/ya.make b/contrib/go/_std_1.21/src/internal/lazyregexp/ya.make index 9e9a40cc3f..8f7a889782 100644 --- a/contrib/go/_std_1.21/src/internal/lazyregexp/ya.make +++ b/contrib/go/_std_1.21/src/internal/lazyregexp/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( lazyre.go ) diff --git a/contrib/go/_std_1.21/src/internal/nettrace/ya.make b/contrib/go/_std_1.21/src/internal/nettrace/ya.make index ed37678c6a..6adfa7392e 100644 --- a/contrib/go/_std_1.21/src/internal/nettrace/ya.make +++ b/contrib/go/_std_1.21/src/internal/nettrace/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( nettrace.go ) diff --git a/contrib/go/_std_1.21/src/internal/oserror/ya.make b/contrib/go/_std_1.21/src/internal/oserror/ya.make index 5f939e8e77..781eb9642d 100644 --- a/contrib/go/_std_1.21/src/internal/oserror/ya.make +++ b/contrib/go/_std_1.21/src/internal/oserror/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( errors.go ) diff --git a/contrib/go/_std_1.21/src/internal/pkgbits/ya.make b/contrib/go/_std_1.21/src/internal/pkgbits/ya.make index 3380cc2fc1..eec846d87b 100644 --- a/contrib/go/_std_1.21/src/internal/pkgbits/ya.make +++ b/contrib/go/_std_1.21/src/internal/pkgbits/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( codes.go decoder.go diff --git a/contrib/go/_std_1.21/src/internal/platform/ya.make b/contrib/go/_std_1.21/src/internal/platform/ya.make index c4e0d815f1..51b81b7631 100644 --- a/contrib/go/_std_1.21/src/internal/platform/ya.make +++ b/contrib/go/_std_1.21/src/internal/platform/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( supported.go zosarch.go diff --git a/contrib/go/_std_1.21/src/internal/poll/ya.make b/contrib/go/_std_1.21/src/internal/poll/ya.make index fd3ad99553..ae5089c22b 100644 --- a/contrib/go/_std_1.21/src/internal/poll/ya.make +++ b/contrib/go/_std_1.21/src/internal/poll/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE) SRCS( errno_unix.go fd.go @@ -20,7 +20,7 @@ IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64) sys_cloexec.go writev.go ) -ELSEIF (OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64) +ELSEIF (OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE) SRCS( copy_file_range_linux.go errno_unix.go @@ -44,7 +44,7 @@ ELSEIF (OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64) splice_linux.go writev.go ) -ELSEIF (OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( errno_windows.go fd.go diff --git a/contrib/go/_std_1.21/src/internal/profile/ya.make b/contrib/go/_std_1.21/src/internal/profile/ya.make index 43f74a0d78..1b205823d2 100644 --- a/contrib/go/_std_1.21/src/internal/profile/ya.make +++ b/contrib/go/_std_1.21/src/internal/profile/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( encode.go filter.go diff --git a/contrib/go/_std_1.21/src/internal/race/ya.make b/contrib/go/_std_1.21/src/internal/race/ya.make index e7b39e2415..8c5e8a58d1 100644 --- a/contrib/go/_std_1.21/src/internal/race/ya.make +++ b/contrib/go/_std_1.21/src/internal/race/ya.make @@ -1,23 +1,13 @@ GO_LIBRARY() - -SRCS( - doc.go -) - -IF (RACE) - IF (CGO_ENABLED OR OS_DARWIN) - SRCS( - race.go - ) - ELSE() - SRCS( - norace.go - ) - ENDIF() -ELSE() +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE) SRCS( - norace.go + doc.go + race.go + ) +ELSEIF (OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) + SRCS( + doc.go + norace.go ) ENDIF() - END() diff --git a/contrib/go/_std_1.21/src/internal/reflectlite/ya.make b/contrib/go/_std_1.21/src/internal/reflectlite/ya.make index ddf786e4f8..d9d0471c64 100644 --- a/contrib/go/_std_1.21/src/internal/reflectlite/ya.make +++ b/contrib/go/_std_1.21/src/internal/reflectlite/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( asm.s swapper.go diff --git a/contrib/go/_std_1.21/src/internal/safefilepath/ya.make b/contrib/go/_std_1.21/src/internal/safefilepath/ya.make index 497c2cbcbe..b1b1958b3b 100644 --- a/contrib/go/_std_1.21/src/internal/safefilepath/ya.make +++ b/contrib/go/_std_1.21/src/internal/safefilepath/ya.make @@ -1,10 +1,10 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE) SRCS( path.go path_other.go ) -ELSEIF (OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( path.go path_windows.go diff --git a/contrib/go/_std_1.21/src/internal/saferio/ya.make b/contrib/go/_std_1.21/src/internal/saferio/ya.make index 49059ae0f8..c9b7f3cae6 100644 --- a/contrib/go/_std_1.21/src/internal/saferio/ya.make +++ b/contrib/go/_std_1.21/src/internal/saferio/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( io.go ) diff --git a/contrib/go/_std_1.21/src/internal/singleflight/ya.make b/contrib/go/_std_1.21/src/internal/singleflight/ya.make index f2ea9d36fd..08be790c46 100644 --- a/contrib/go/_std_1.21/src/internal/singleflight/ya.make +++ b/contrib/go/_std_1.21/src/internal/singleflight/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( singleflight.go ) diff --git a/contrib/go/_std_1.21/src/internal/syscall/execenv/ya.make b/contrib/go/_std_1.21/src/internal/syscall/execenv/ya.make index 8eb5b378a9..b21281db14 100644 --- a/contrib/go/_std_1.21/src/internal/syscall/execenv/ya.make +++ b/contrib/go/_std_1.21/src/internal/syscall/execenv/ya.make @@ -1,9 +1,9 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE) SRCS( execenv_default.go ) -ELSEIF (OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( execenv_windows.go ) diff --git a/contrib/go/_std_1.21/src/internal/syscall/windows/registry/ya.make b/contrib/go/_std_1.21/src/internal/syscall/windows/registry/ya.make index 5ec15e5b5f..e85f7bf9b2 100644 --- a/contrib/go/_std_1.21/src/internal/syscall/windows/registry/ya.make +++ b/contrib/go/_std_1.21/src/internal/syscall/windows/registry/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_WINDOWS AND ARCH_X86_64) +IF (OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( key.go syscall.go diff --git a/contrib/go/_std_1.21/src/internal/syscall/windows/sysdll/ya.make b/contrib/go/_std_1.21/src/internal/syscall/windows/sysdll/ya.make index 564881d69b..94417896bd 100644 --- a/contrib/go/_std_1.21/src/internal/syscall/windows/sysdll/ya.make +++ b/contrib/go/_std_1.21/src/internal/syscall/windows/sysdll/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_WINDOWS AND ARCH_X86_64) +IF (OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( sysdll.go ) diff --git a/contrib/go/_std_1.21/src/internal/syscall/windows/ya.make b/contrib/go/_std_1.21/src/internal/syscall/windows/ya.make index 4ce86944a1..f0a9f3002a 100644 --- a/contrib/go/_std_1.21/src/internal/syscall/windows/ya.make +++ b/contrib/go/_std_1.21/src/internal/syscall/windows/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_WINDOWS AND ARCH_X86_64) +IF (OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( memory_windows.go net_windows.go diff --git a/contrib/go/_std_1.21/src/internal/sysinfo/ya.make b/contrib/go/_std_1.21/src/internal/sysinfo/ya.make index b71006b7c2..4e2554ee19 100644 --- a/contrib/go/_std_1.21/src/internal/sysinfo/ya.make +++ b/contrib/go/_std_1.21/src/internal/sysinfo/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( sysinfo.go ) diff --git a/contrib/go/_std_1.21/src/internal/testlog/ya.make b/contrib/go/_std_1.21/src/internal/testlog/ya.make index f243e0bd52..2d25acd02b 100644 --- a/contrib/go/_std_1.21/src/internal/testlog/ya.make +++ b/contrib/go/_std_1.21/src/internal/testlog/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( exit.go log.go diff --git a/contrib/go/_std_1.21/src/internal/types/errors/ya.make b/contrib/go/_std_1.21/src/internal/types/errors/ya.make index 418e21f197..0b8a53f81e 100644 --- a/contrib/go/_std_1.21/src/internal/types/errors/ya.make +++ b/contrib/go/_std_1.21/src/internal/types/errors/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( code_string.go codes.go diff --git a/contrib/go/_std_1.21/src/internal/unsafeheader/ya.make b/contrib/go/_std_1.21/src/internal/unsafeheader/ya.make index 05cda1ff62..279d7d3a4b 100644 --- a/contrib/go/_std_1.21/src/internal/unsafeheader/ya.make +++ b/contrib/go/_std_1.21/src/internal/unsafeheader/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( unsafeheader.go ) diff --git a/contrib/go/_std_1.21/src/internal/xcoff/ya.make b/contrib/go/_std_1.21/src/internal/xcoff/ya.make index 47904fed7d..f271bc7043 100644 --- a/contrib/go/_std_1.21/src/internal/xcoff/ya.make +++ b/contrib/go/_std_1.21/src/internal/xcoff/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( ar.go file.go diff --git a/contrib/go/_std_1.21/src/internal/zstd/ya.make b/contrib/go/_std_1.21/src/internal/zstd/ya.make index 435586ca4c..3197169dac 100644 --- a/contrib/go/_std_1.21/src/internal/zstd/ya.make +++ b/contrib/go/_std_1.21/src/internal/zstd/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( bits.go block.go diff --git a/contrib/go/_std_1.21/src/io/fs/ya.make b/contrib/go/_std_1.21/src/io/fs/ya.make index e25d3bb777..d281d9654a 100644 --- a/contrib/go/_std_1.21/src/io/fs/ya.make +++ b/contrib/go/_std_1.21/src/io/fs/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( format.go fs.go diff --git a/contrib/go/_std_1.21/src/io/ioutil/ya.make b/contrib/go/_std_1.21/src/io/ioutil/ya.make index bae1e65547..8294f6260a 100644 --- a/contrib/go/_std_1.21/src/io/ioutil/ya.make +++ b/contrib/go/_std_1.21/src/io/ioutil/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( ioutil.go tempfile.go diff --git a/contrib/go/_std_1.21/src/io/ya.make b/contrib/go/_std_1.21/src/io/ya.make index cfd5a9927d..ad1dbd20bb 100644 --- a/contrib/go/_std_1.21/src/io/ya.make +++ b/contrib/go/_std_1.21/src/io/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( io.go multi.go diff --git a/contrib/go/_std_1.21/src/log/internal/ya.make b/contrib/go/_std_1.21/src/log/internal/ya.make index 3ce0060b6c..eddcb96f74 100644 --- a/contrib/go/_std_1.21/src/log/internal/ya.make +++ b/contrib/go/_std_1.21/src/log/internal/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( internal.go ) diff --git a/contrib/go/_std_1.21/src/log/ya.make b/contrib/go/_std_1.21/src/log/ya.make index d11b82c41f..8dbdbd5329 100644 --- a/contrib/go/_std_1.21/src/log/ya.make +++ b/contrib/go/_std_1.21/src/log/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( log.go ) diff --git a/contrib/go/_std_1.21/src/math/big/ya.make b/contrib/go/_std_1.21/src/math/big/ya.make index 7606644b91..8c21a3195f 100644 --- a/contrib/go/_std_1.21/src/math/big/ya.make +++ b/contrib/go/_std_1.21/src/math/big/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( accuracy_string.go arith.go @@ -24,7 +24,7 @@ IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) roundingmode_string.go sqrt.go ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( accuracy_string.go arith.go diff --git a/contrib/go/_std_1.21/src/math/bits/ya.make b/contrib/go/_std_1.21/src/math/bits/ya.make index 40d8ce86d1..014d9bb9d2 100644 --- a/contrib/go/_std_1.21/src/math/bits/ya.make +++ b/contrib/go/_std_1.21/src/math/bits/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( bits.go bits_errors.go diff --git a/contrib/go/_std_1.21/src/math/rand/ya.make b/contrib/go/_std_1.21/src/math/rand/ya.make index 67c28d9bf4..edaba92903 100644 --- a/contrib/go/_std_1.21/src/math/rand/ya.make +++ b/contrib/go/_std_1.21/src/math/rand/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( exp.go normal.go diff --git a/contrib/go/_std_1.21/src/math/ya.make b/contrib/go/_std_1.21/src/math/ya.make index f945975d9d..b2eae8f465 100644 --- a/contrib/go/_std_1.21/src/math/ya.make +++ b/contrib/go/_std_1.21/src/math/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( abs.go acosh.go @@ -59,7 +59,7 @@ IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) trig_reduce.go unsafe.go ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( abs.go acosh.go diff --git a/contrib/go/_std_1.21/src/mime/multipart/ya.make b/contrib/go/_std_1.21/src/mime/multipart/ya.make index 302124d82c..46f4de1b75 100644 --- a/contrib/go/_std_1.21/src/mime/multipart/ya.make +++ b/contrib/go/_std_1.21/src/mime/multipart/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( formdata.go multipart.go diff --git a/contrib/go/_std_1.21/src/mime/quotedprintable/ya.make b/contrib/go/_std_1.21/src/mime/quotedprintable/ya.make index a3266d6196..c1ad263a96 100644 --- a/contrib/go/_std_1.21/src/mime/quotedprintable/ya.make +++ b/contrib/go/_std_1.21/src/mime/quotedprintable/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( reader.go writer.go diff --git a/contrib/go/_std_1.21/src/mime/ya.make b/contrib/go/_std_1.21/src/mime/ya.make index 61f8d4e820..13b6b4ff67 100644 --- a/contrib/go/_std_1.21/src/mime/ya.make +++ b/contrib/go/_std_1.21/src/mime/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE) SRCS( encodedword.go grammar.go @@ -7,7 +7,7 @@ IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_A type.go type_unix.go ) -ELSEIF (OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( encodedword.go grammar.go diff --git a/contrib/go/_std_1.21/src/net/http/httptest/ya.make b/contrib/go/_std_1.21/src/net/http/httptest/ya.make index 06e966bc41..3f5fe630c7 100644 --- a/contrib/go/_std_1.21/src/net/http/httptest/ya.make +++ b/contrib/go/_std_1.21/src/net/http/httptest/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( httptest.go recorder.go diff --git a/contrib/go/_std_1.21/src/net/http/httptrace/ya.make b/contrib/go/_std_1.21/src/net/http/httptrace/ya.make index c5b885afc7..527f7e13d6 100644 --- a/contrib/go/_std_1.21/src/net/http/httptrace/ya.make +++ b/contrib/go/_std_1.21/src/net/http/httptrace/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( trace.go ) diff --git a/contrib/go/_std_1.21/src/net/http/httputil/ya.make b/contrib/go/_std_1.21/src/net/http/httputil/ya.make index d40d3d286a..1043128d45 100644 --- a/contrib/go/_std_1.21/src/net/http/httputil/ya.make +++ b/contrib/go/_std_1.21/src/net/http/httputil/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( dump.go httputil.go diff --git a/contrib/go/_std_1.21/src/net/http/internal/ascii/ya.make b/contrib/go/_std_1.21/src/net/http/internal/ascii/ya.make index 16d4206f5c..4bcdd7b285 100644 --- a/contrib/go/_std_1.21/src/net/http/internal/ascii/ya.make +++ b/contrib/go/_std_1.21/src/net/http/internal/ascii/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( print.go ) diff --git a/contrib/go/_std_1.21/src/net/http/internal/testcert/ya.make b/contrib/go/_std_1.21/src/net/http/internal/testcert/ya.make index 50da206fc9..b7d25f88ca 100644 --- a/contrib/go/_std_1.21/src/net/http/internal/testcert/ya.make +++ b/contrib/go/_std_1.21/src/net/http/internal/testcert/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( testcert.go ) diff --git a/contrib/go/_std_1.21/src/net/http/internal/ya.make b/contrib/go/_std_1.21/src/net/http/internal/ya.make index 12f55f3cfc..19176b191b 100644 --- a/contrib/go/_std_1.21/src/net/http/internal/ya.make +++ b/contrib/go/_std_1.21/src/net/http/internal/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( chunked.go ) diff --git a/contrib/go/_std_1.21/src/net/http/pprof/ya.make b/contrib/go/_std_1.21/src/net/http/pprof/ya.make index 71c44fe191..557fa19a36 100644 --- a/contrib/go/_std_1.21/src/net/http/pprof/ya.make +++ b/contrib/go/_std_1.21/src/net/http/pprof/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( pprof.go ) diff --git a/contrib/go/_std_1.21/src/net/http/ya.make b/contrib/go/_std_1.21/src/net/http/ya.make index a0123c71be..fd27fec7ff 100644 --- a/contrib/go/_std_1.21/src/net/http/ya.make +++ b/contrib/go/_std_1.21/src/net/http/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( client.go clone.go diff --git a/contrib/go/_std_1.21/src/net/mail/ya.make b/contrib/go/_std_1.21/src/net/mail/ya.make index 4643c66baa..5724ce854d 100644 --- a/contrib/go/_std_1.21/src/net/mail/ya.make +++ b/contrib/go/_std_1.21/src/net/mail/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( message.go ) diff --git a/contrib/go/_std_1.21/src/net/netip/ya.make b/contrib/go/_std_1.21/src/net/netip/ya.make index 9b51cc4bb7..27672b60ef 100644 --- a/contrib/go/_std_1.21/src/net/netip/ya.make +++ b/contrib/go/_std_1.21/src/net/netip/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( leaf_alts.go netip.go diff --git a/contrib/go/_std_1.21/src/net/rpc/ya.make b/contrib/go/_std_1.21/src/net/rpc/ya.make index 159cc8c99b..3cbc2793c9 100644 --- a/contrib/go/_std_1.21/src/net/rpc/ya.make +++ b/contrib/go/_std_1.21/src/net/rpc/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( client.go debug.go diff --git a/contrib/go/_std_1.21/src/net/smtp/ya.make b/contrib/go/_std_1.21/src/net/smtp/ya.make index cfc37bbfd8..744ebf917e 100644 --- a/contrib/go/_std_1.21/src/net/smtp/ya.make +++ b/contrib/go/_std_1.21/src/net/smtp/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( auth.go smtp.go diff --git a/contrib/go/_std_1.21/src/net/textproto/ya.make b/contrib/go/_std_1.21/src/net/textproto/ya.make index 146f2a4e86..cae0295fe3 100644 --- a/contrib/go/_std_1.21/src/net/textproto/ya.make +++ b/contrib/go/_std_1.21/src/net/textproto/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( header.go pipeline.go diff --git a/contrib/go/_std_1.21/src/net/url/ya.make b/contrib/go/_std_1.21/src/net/url/ya.make index f32418c11e..c46dbe1615 100644 --- a/contrib/go/_std_1.21/src/net/url/ya.make +++ b/contrib/go/_std_1.21/src/net/url/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( url.go ) diff --git a/contrib/go/_std_1.21/src/os/exec/ya.make b/contrib/go/_std_1.21/src/os/exec/ya.make index dc423c3bba..5a5890aa99 100644 --- a/contrib/go/_std_1.21/src/os/exec/ya.make +++ b/contrib/go/_std_1.21/src/os/exec/ya.make @@ -1,11 +1,11 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE) SRCS( exec.go exec_unix.go lp_unix.go ) -ELSEIF (OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( exec.go exec_windows.go diff --git a/contrib/go/_std_1.21/src/os/signal/ya.make b/contrib/go/_std_1.21/src/os/signal/ya.make index 1fb0333ba4..de7f24a2c0 100644 --- a/contrib/go/_std_1.21/src/os/signal/ya.make +++ b/contrib/go/_std_1.21/src/os/signal/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( doc.go sig.s diff --git a/contrib/go/_std_1.21/src/os/ya.make b/contrib/go/_std_1.21/src/os/ya.make index 40dbb33d23..095aa99f7d 100644 --- a/contrib/go/_std_1.21/src/os/ya.make +++ b/contrib/go/_std_1.21/src/os/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE) SRCS( dir.go dir_darwin.go @@ -38,7 +38,7 @@ IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64) types_unix.go wait_unimp.go ) -ELSEIF (OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64) +ELSEIF (OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE) SRCS( dir.go dir_unix.go @@ -78,7 +78,7 @@ ELSEIF (OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64) types_unix.go wait_waitid.go ) -ELSEIF (OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( dir.go dir_windows.go diff --git a/contrib/go/_std_1.21/src/path/filepath/ya.make b/contrib/go/_std_1.21/src/path/filepath/ya.make index dfba73b44e..05425352e9 100644 --- a/contrib/go/_std_1.21/src/path/filepath/ya.make +++ b/contrib/go/_std_1.21/src/path/filepath/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE) SRCS( match.go path.go @@ -8,7 +8,7 @@ IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_A symlink.go symlink_unix.go ) -ELSEIF (OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( match.go path.go diff --git a/contrib/go/_std_1.21/src/path/ya.make b/contrib/go/_std_1.21/src/path/ya.make index f5cda07d26..dac324ad98 100644 --- a/contrib/go/_std_1.21/src/path/ya.make +++ b/contrib/go/_std_1.21/src/path/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( match.go path.go diff --git a/contrib/go/_std_1.21/src/reflect/ya.make b/contrib/go/_std_1.21/src/reflect/ya.make index 23ba6743f6..d3152b5dbb 100644 --- a/contrib/go/_std_1.21/src/reflect/ya.make +++ b/contrib/go/_std_1.21/src/reflect/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( abi.go asm_arm64.s @@ -11,7 +11,7 @@ IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) value.go visiblefields.go ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( abi.go asm_amd64.s diff --git a/contrib/go/_std_1.21/src/regexp/syntax/ya.make b/contrib/go/_std_1.21/src/regexp/syntax/ya.make index 8af9752ee8..eb97045b97 100644 --- a/contrib/go/_std_1.21/src/regexp/syntax/ya.make +++ b/contrib/go/_std_1.21/src/regexp/syntax/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( compile.go doc.go diff --git a/contrib/go/_std_1.21/src/regexp/ya.make b/contrib/go/_std_1.21/src/regexp/ya.make index 6305e0d18b..8b9df11103 100644 --- a/contrib/go/_std_1.21/src/regexp/ya.make +++ b/contrib/go/_std_1.21/src/regexp/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( backtrack.go exec.go diff --git a/contrib/go/_std_1.21/src/runtime/coverage/apis.go b/contrib/go/_std_1.21/src/runtime/coverage/apis.go deleted file mode 100644 index 05da345ede..0000000000 --- a/contrib/go/_std_1.21/src/runtime/coverage/apis.go +++ /dev/null @@ -1,184 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package coverage - -import ( - "fmt" - "internal/coverage" - "io" - "reflect" - "sync/atomic" - "unsafe" -) - -// WriteMetaDir writes a coverage meta-data file for the currently -// running program to the directory specified in 'dir'. An error will -// be returned if the operation can't be completed successfully (for -// example, if the currently running program was not built with -// "-cover", or if the directory does not exist). -func WriteMetaDir(dir string) error { - if !finalHashComputed { - return fmt.Errorf("error: no meta-data available (binary not built with -cover?)") - } - return emitMetaDataToDirectory(dir, getCovMetaList()) -} - -// WriteMeta writes the meta-data content (the payload that would -// normally be emitted to a meta-data file) for the currently running -// program to the writer 'w'. An error will be returned if the -// operation can't be completed successfully (for example, if the -// currently running program was not built with "-cover", or if a -// write fails). -func WriteMeta(w io.Writer) error { - if w == nil { - return fmt.Errorf("error: nil writer in WriteMeta") - } - if !finalHashComputed { - return fmt.Errorf("error: no meta-data available (binary not built with -cover?)") - } - ml := getCovMetaList() - return writeMetaData(w, ml, cmode, cgran, finalHash) -} - -// WriteCountersDir writes a coverage counter-data file for the -// currently running program to the directory specified in 'dir'. An -// error will be returned if the operation can't be completed -// successfully (for example, if the currently running program was not -// built with "-cover", or if the directory does not exist). The -// counter data written will be a snapshot taken at the point of the -// call. -func WriteCountersDir(dir string) error { - if cmode != coverage.CtrModeAtomic { - return fmt.Errorf("WriteCountersDir invoked for program built with -covermode=%s (please use -covermode=atomic)", cmode.String()) - } - return emitCounterDataToDirectory(dir) -} - -// WriteCounters writes coverage counter-data content for the -// currently running program to the writer 'w'. An error will be -// returned if the operation can't be completed successfully (for -// example, if the currently running program was not built with -// "-cover", or if a write fails). The counter data written will be a -// snapshot taken at the point of the invocation. -func WriteCounters(w io.Writer) error { - if w == nil { - return fmt.Errorf("error: nil writer in WriteCounters") - } - if cmode != coverage.CtrModeAtomic { - return fmt.Errorf("WriteCounters invoked for program built with -covermode=%s (please use -covermode=atomic)", cmode.String()) - } - // Ask the runtime for the list of coverage counter symbols. - cl := getCovCounterList() - if len(cl) == 0 { - return fmt.Errorf("program not built with -cover") - } - if !finalHashComputed { - return fmt.Errorf("meta-data not written yet, unable to write counter data") - } - - pm := getCovPkgMap() - s := &emitState{ - counterlist: cl, - pkgmap: pm, - } - return s.emitCounterDataToWriter(w) -} - -// ClearCounters clears/resets all coverage counter variables in the -// currently running program. It returns an error if the program in -// question was not built with the "-cover" flag. Clearing of coverage -// counters is also not supported for programs not using atomic -// counter mode (see more detailed comments below for the rationale -// here). -func ClearCounters() error { - cl := getCovCounterList() - if len(cl) == 0 { - return fmt.Errorf("program not built with -cover") - } - if cmode != coverage.CtrModeAtomic { - return fmt.Errorf("ClearCounters invoked for program built with -covermode=%s (please use -covermode=atomic)", cmode.String()) - } - - // Implementation note: this function would be faster and simpler - // if we could just zero out the entire counter array, but for the - // moment we go through and zero out just the slots in the array - // corresponding to the counter values. We do this to avoid the - // following bad scenario: suppose that a user builds their Go - // program with "-cover", and that program has a function (call it - // main.XYZ) that invokes ClearCounters: - // - // func XYZ() { - // ... do some stuff ... - // coverage.ClearCounters() - // if someCondition { <<--- HERE - // ... - // } - // } - // - // At the point where ClearCounters executes, main.XYZ has not yet - // finished running, thus as soon as the call returns the line - // marked "HERE" above will trigger the writing of a non-zero - // value into main.XYZ's counter slab. However since we've just - // finished clearing the entire counter segment, we will have lost - // the values in the prolog portion of main.XYZ's counter slab - // (nctrs, pkgid, funcid). This means that later on at the end of - // program execution as we walk through the entire counter array - // for the program looking for executed functions, we'll zoom past - // main.XYZ's prolog (which was zero'd) and hit the non-zero - // counter value corresponding to the "HERE" block, which will - // then be interpreted as the start of another live function. - // Things will go downhill from there. - // - // This same scenario is also a potential risk if the program is - // running on an architecture that permits reordering of - // writes/stores, since the inconsistency described above could - // arise here. Example scenario: - // - // func ABC() { - // ... // prolog - // if alwaysTrue() { - // XYZ() // counter update here - // } - // } - // - // In the instrumented version of ABC, the prolog of the function - // will contain a series of stores to the initial portion of the - // counter array to write number-of-counters, pkgid, funcid. Later - // in the function there is also a store to increment a counter - // for the block containing the call to XYZ(). If the CPU is - // allowed to reorder stores and decides to issue the XYZ store - // before the prolog stores, this could be observable as an - // inconsistency similar to the one above. Hence the requirement - // for atomic counter mode: according to package atomic docs, - // "...operations that happen in a specific order on one thread, - // will always be observed to happen in exactly that order by - // another thread". Thus we can be sure that there will be no - // inconsistency when reading the counter array from the thread - // running ClearCounters. - - var sd []atomic.Uint32 - - bufHdr := (*reflect.SliceHeader)(unsafe.Pointer(&sd)) - for _, c := range cl { - bufHdr.Data = uintptr(unsafe.Pointer(c.Counters)) - bufHdr.Len = int(c.Len) - bufHdr.Cap = int(c.Len) - for i := 0; i < len(sd); i++ { - // Skip ahead until the next non-zero value. - sdi := sd[i].Load() - if sdi == 0 { - continue - } - // We found a function that was executed; clear its counters. - nCtrs := sdi - for j := 0; j < int(nCtrs); j++ { - sd[i+coverage.FirstCtrOffset+j].Store(0) - } - // Move to next function. - i += coverage.FirstCtrOffset + int(nCtrs) - 1 - } - } - return nil -} diff --git a/contrib/go/_std_1.21/src/runtime/coverage/dummy.s b/contrib/go/_std_1.21/src/runtime/coverage/dummy.s deleted file mode 100644 index 75928593a0..0000000000 --- a/contrib/go/_std_1.21/src/runtime/coverage/dummy.s +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// The runtime package uses //go:linkname to push a few functions into this -// package but we still need a .s file so the Go tool does not pass -complete -// to 'go tool compile' so the latter does not complain about Go functions -// with no bodies. diff --git a/contrib/go/_std_1.21/src/runtime/coverage/emit.go b/contrib/go/_std_1.21/src/runtime/coverage/emit.go deleted file mode 100644 index bb0c6fb6a2..0000000000 --- a/contrib/go/_std_1.21/src/runtime/coverage/emit.go +++ /dev/null @@ -1,622 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package coverage - -import ( - "crypto/md5" - "fmt" - "internal/coverage" - "internal/coverage/encodecounter" - "internal/coverage/encodemeta" - "internal/coverage/rtcov" - "io" - "os" - "path/filepath" - "reflect" - "runtime" - "strconv" - "sync/atomic" - "time" - "unsafe" -) - -// This file contains functions that support the writing of data files -// emitted at the end of code coverage testing runs, from instrumented -// executables. - -// getCovMetaList returns a list of meta-data blobs registered -// for the currently executing instrumented program. It is defined in the -// runtime. -func getCovMetaList() []rtcov.CovMetaBlob - -// getCovCounterList returns a list of counter-data blobs registered -// for the currently executing instrumented program. It is defined in the -// runtime. -func getCovCounterList() []rtcov.CovCounterBlob - -// getCovPkgMap returns a map storing the remapped package IDs for -// hard-coded runtime packages (see internal/coverage/pkgid.go for -// more on why hard-coded package IDs are needed). This function -// is defined in the runtime. -func getCovPkgMap() map[int]int - -// emitState holds useful state information during the emit process. -// -// When an instrumented program finishes execution and starts the -// process of writing out coverage data, it's possible that an -// existing meta-data file already exists in the output directory. In -// this case openOutputFiles() below will leave the 'mf' field below -// as nil. If a new meta-data file is needed, field 'mfname' will be -// the final desired path of the meta file, 'mftmp' will be a -// temporary file, and 'mf' will be an open os.File pointer for -// 'mftmp'. The meta-data file payload will be written to 'mf', the -// temp file will be then closed and renamed (from 'mftmp' to -// 'mfname'), so as to insure that the meta-data file is created -// atomically; we want this so that things work smoothly in cases -// where there are several instances of a given instrumented program -// all terminating at the same time and trying to create meta-data -// files simultaneously. -// -// For counter data files there is less chance of a collision, hence -// the openOutputFiles() stores the counter data file in 'cfname' and -// then places the *io.File into 'cf'. -type emitState struct { - mfname string // path of final meta-data output file - mftmp string // path to meta-data temp file (if needed) - mf *os.File // open os.File for meta-data temp file - cfname string // path of final counter data file - cftmp string // path to counter data temp file - cf *os.File // open os.File for counter data file - outdir string // output directory - - // List of meta-data symbols obtained from the runtime - metalist []rtcov.CovMetaBlob - - // List of counter-data symbols obtained from the runtime - counterlist []rtcov.CovCounterBlob - - // Table to use for remapping hard-coded pkg ids. - pkgmap map[int]int - - // emit debug trace output - debug bool -} - -var ( - // finalHash is computed at init time from the list of meta-data - // symbols registered during init. It is used both for writing the - // meta-data file and counter-data files. - finalHash [16]byte - // Set to true when we've computed finalHash + finalMetaLen. - finalHashComputed bool - // Total meta-data length. - finalMetaLen uint64 - // Records whether we've already attempted to write meta-data. - metaDataEmitAttempted bool - // Counter mode for this instrumented program run. - cmode coverage.CounterMode - // Counter granularity for this instrumented program run. - cgran coverage.CounterGranularity - // Cached value of GOCOVERDIR environment variable. - goCoverDir string - // Copy of os.Args made at init time, converted into map format. - capturedOsArgs map[string]string - // Flag used in tests to signal that coverage data already written. - covProfileAlreadyEmitted bool -) - -// fileType is used to select between counter-data files and -// meta-data files. -type fileType int - -const ( - noFile = 1 << iota - metaDataFile - counterDataFile -) - -// emitMetaData emits the meta-data output file for this coverage run. -// This entry point is intended to be invoked by the compiler from -// an instrumented program's main package init func. -func emitMetaData() { - if covProfileAlreadyEmitted { - return - } - ml, err := prepareForMetaEmit() - if err != nil { - fmt.Fprintf(os.Stderr, "error: coverage meta-data prep failed: %v\n", err) - if os.Getenv("GOCOVERDEBUG") != "" { - panic("meta-data write failure") - } - } - if len(ml) == 0 { - fmt.Fprintf(os.Stderr, "program not built with -cover\n") - return - } - - goCoverDir = os.Getenv("GOCOVERDIR") - if goCoverDir == "" { - fmt.Fprintf(os.Stderr, "warning: GOCOVERDIR not set, no coverage data emitted\n") - return - } - - if err := emitMetaDataToDirectory(goCoverDir, ml); err != nil { - fmt.Fprintf(os.Stderr, "error: coverage meta-data emit failed: %v\n", err) - if os.Getenv("GOCOVERDEBUG") != "" { - panic("meta-data write failure") - } - } -} - -func modeClash(m coverage.CounterMode) bool { - if m == coverage.CtrModeRegOnly || m == coverage.CtrModeTestMain { - return false - } - if cmode == coverage.CtrModeInvalid { - cmode = m - return false - } - return cmode != m -} - -func granClash(g coverage.CounterGranularity) bool { - if cgran == coverage.CtrGranularityInvalid { - cgran = g - return false - } - return cgran != g -} - -// prepareForMetaEmit performs preparatory steps needed prior to -// emitting a meta-data file, notably computing a final hash of -// all meta-data blobs and capturing os args. -func prepareForMetaEmit() ([]rtcov.CovMetaBlob, error) { - // Ask the runtime for the list of coverage meta-data symbols. - ml := getCovMetaList() - - // In the normal case (go build -o prog.exe ... ; ./prog.exe) - // len(ml) will always be non-zero, but we check here since at - // some point this function will be reachable via user-callable - // APIs (for example, to write out coverage data from a server - // program that doesn't ever call os.Exit). - if len(ml) == 0 { - return nil, nil - } - - s := &emitState{ - metalist: ml, - debug: os.Getenv("GOCOVERDEBUG") != "", - } - - // Capture os.Args() now so as to avoid issues if args - // are rewritten during program execution. - capturedOsArgs = captureOsArgs() - - if s.debug { - fmt.Fprintf(os.Stderr, "=+= GOCOVERDIR is %s\n", os.Getenv("GOCOVERDIR")) - fmt.Fprintf(os.Stderr, "=+= contents of covmetalist:\n") - for k, b := range ml { - fmt.Fprintf(os.Stderr, "=+= slot: %d path: %s ", k, b.PkgPath) - if b.PkgID != -1 { - fmt.Fprintf(os.Stderr, " hcid: %d", b.PkgID) - } - fmt.Fprintf(os.Stderr, "\n") - } - pm := getCovPkgMap() - fmt.Fprintf(os.Stderr, "=+= remap table:\n") - for from, to := range pm { - fmt.Fprintf(os.Stderr, "=+= from %d to %d\n", - uint32(from), uint32(to)) - } - } - - h := md5.New() - tlen := uint64(unsafe.Sizeof(coverage.MetaFileHeader{})) - for _, entry := range ml { - if _, err := h.Write(entry.Hash[:]); err != nil { - return nil, err - } - tlen += uint64(entry.Len) - ecm := coverage.CounterMode(entry.CounterMode) - if modeClash(ecm) { - return nil, fmt.Errorf("coverage counter mode clash: package %s uses mode=%d, but package %s uses mode=%s\n", ml[0].PkgPath, cmode, entry.PkgPath, ecm) - } - ecg := coverage.CounterGranularity(entry.CounterGranularity) - if granClash(ecg) { - return nil, fmt.Errorf("coverage counter granularity clash: package %s uses gran=%d, but package %s uses gran=%s\n", ml[0].PkgPath, cgran, entry.PkgPath, ecg) - } - } - - // Hash mode and granularity as well. - h.Write([]byte(cmode.String())) - h.Write([]byte(cgran.String())) - - // Compute final digest. - fh := h.Sum(nil) - copy(finalHash[:], fh) - finalHashComputed = true - finalMetaLen = tlen - - return ml, nil -} - -// emitMetaDataToDirectory emits the meta-data output file to the specified -// directory, returning an error if something went wrong. -func emitMetaDataToDirectory(outdir string, ml []rtcov.CovMetaBlob) error { - ml, err := prepareForMetaEmit() - if err != nil { - return err - } - if len(ml) == 0 { - return nil - } - - metaDataEmitAttempted = true - - s := &emitState{ - metalist: ml, - debug: os.Getenv("GOCOVERDEBUG") != "", - outdir: outdir, - } - - // Open output files. - if err := s.openOutputFiles(finalHash, finalMetaLen, metaDataFile); err != nil { - return err - } - - // Emit meta-data file only if needed (may already be present). - if s.needMetaDataFile() { - if err := s.emitMetaDataFile(finalHash, finalMetaLen); err != nil { - return err - } - } - return nil -} - -// emitCounterData emits the counter data output file for this coverage run. -// This entry point is intended to be invoked by the runtime when an -// instrumented program is terminating or calling os.Exit(). -func emitCounterData() { - if goCoverDir == "" || !finalHashComputed || covProfileAlreadyEmitted { - return - } - if err := emitCounterDataToDirectory(goCoverDir); err != nil { - fmt.Fprintf(os.Stderr, "error: coverage counter data emit failed: %v\n", err) - if os.Getenv("GOCOVERDEBUG") != "" { - panic("counter-data write failure") - } - } -} - -// emitCounterDataToDirectory emits the counter-data output file for this coverage run. -func emitCounterDataToDirectory(outdir string) error { - // Ask the runtime for the list of coverage counter symbols. - cl := getCovCounterList() - if len(cl) == 0 { - // no work to do here. - return nil - } - - if !finalHashComputed { - return fmt.Errorf("error: meta-data not available (binary not built with -cover?)") - } - - // Ask the runtime for the list of coverage counter symbols. - pm := getCovPkgMap() - s := &emitState{ - counterlist: cl, - pkgmap: pm, - outdir: outdir, - debug: os.Getenv("GOCOVERDEBUG") != "", - } - - // Open output file. - if err := s.openOutputFiles(finalHash, finalMetaLen, counterDataFile); err != nil { - return err - } - if s.cf == nil { - return fmt.Errorf("counter data output file open failed (no additional info") - } - - // Emit counter data file. - if err := s.emitCounterDataFile(finalHash, s.cf); err != nil { - return err - } - if err := s.cf.Close(); err != nil { - return fmt.Errorf("closing counter data file: %v", err) - } - - // Counter file has now been closed. Rename the temp to the - // final desired path. - if err := os.Rename(s.cftmp, s.cfname); err != nil { - return fmt.Errorf("writing %s: rename from %s failed: %v\n", s.cfname, s.cftmp, err) - } - - return nil -} - -// emitCounterDataToWriter emits counter data for this coverage run to an io.Writer. -func (s *emitState) emitCounterDataToWriter(w io.Writer) error { - if err := s.emitCounterDataFile(finalHash, w); err != nil { - return err - } - return nil -} - -// openMetaFile determines whether we need to emit a meta-data output -// file, or whether we can reuse the existing file in the coverage out -// dir. It updates mfname/mftmp/mf fields in 's', returning an error -// if something went wrong. See the comment on the emitState type -// definition above for more on how file opening is managed. -func (s *emitState) openMetaFile(metaHash [16]byte, metaLen uint64) error { - - // Open meta-outfile for reading to see if it exists. - fn := fmt.Sprintf("%s.%x", coverage.MetaFilePref, metaHash) - s.mfname = filepath.Join(s.outdir, fn) - fi, err := os.Stat(s.mfname) - if err != nil || fi.Size() != int64(metaLen) { - // We need a new meta-file. - tname := "tmp." + fn + strconv.FormatInt(time.Now().UnixNano(), 10) - s.mftmp = filepath.Join(s.outdir, tname) - s.mf, err = os.Create(s.mftmp) - if err != nil { - return fmt.Errorf("creating meta-data file %s: %v", s.mftmp, err) - } - } - return nil -} - -// openCounterFile opens an output file for the counter data portion -// of a test coverage run. If updates the 'cfname' and 'cf' fields in -// 's', returning an error if something went wrong. -func (s *emitState) openCounterFile(metaHash [16]byte) error { - processID := os.Getpid() - fn := fmt.Sprintf(coverage.CounterFileTempl, coverage.CounterFilePref, metaHash, processID, time.Now().UnixNano()) - s.cfname = filepath.Join(s.outdir, fn) - s.cftmp = filepath.Join(s.outdir, "tmp."+fn) - var err error - s.cf, err = os.Create(s.cftmp) - if err != nil { - return fmt.Errorf("creating counter data file %s: %v", s.cftmp, err) - } - return nil -} - -// openOutputFiles opens output files in preparation for emitting -// coverage data. In the case of the meta-data file, openOutputFiles -// may determine that we can reuse an existing meta-data file in the -// outdir, in which case it will leave the 'mf' field in the state -// struct as nil. If a new meta-file is needed, the field 'mfname' -// will be the final desired path of the meta file, 'mftmp' will be a -// temporary file, and 'mf' will be an open os.File pointer for -// 'mftmp'. The idea is that the client/caller will write content into -// 'mf', close it, and then rename 'mftmp' to 'mfname'. This function -// also opens the counter data output file, setting 'cf' and 'cfname' -// in the state struct. -func (s *emitState) openOutputFiles(metaHash [16]byte, metaLen uint64, which fileType) error { - fi, err := os.Stat(s.outdir) - if err != nil { - return fmt.Errorf("output directory %q inaccessible (err: %v); no coverage data written", s.outdir, err) - } - if !fi.IsDir() { - return fmt.Errorf("output directory %q not a directory; no coverage data written", s.outdir) - } - - if (which & metaDataFile) != 0 { - if err := s.openMetaFile(metaHash, metaLen); err != nil { - return err - } - } - if (which & counterDataFile) != 0 { - if err := s.openCounterFile(metaHash); err != nil { - return err - } - } - return nil -} - -// emitMetaDataFile emits coverage meta-data to a previously opened -// temporary file (s.mftmp), then renames the generated file to the -// final path (s.mfname). -func (s *emitState) emitMetaDataFile(finalHash [16]byte, tlen uint64) error { - if err := writeMetaData(s.mf, s.metalist, cmode, cgran, finalHash); err != nil { - return fmt.Errorf("writing %s: %v\n", s.mftmp, err) - } - if err := s.mf.Close(); err != nil { - return fmt.Errorf("closing meta data temp file: %v", err) - } - - // Temp file has now been flushed and closed. Rename the temp to the - // final desired path. - if err := os.Rename(s.mftmp, s.mfname); err != nil { - return fmt.Errorf("writing %s: rename from %s failed: %v\n", s.mfname, s.mftmp, err) - } - - return nil -} - -// needMetaDataFile returns TRUE if we need to emit a meta-data file -// for this program run. It should be used only after -// openOutputFiles() has been invoked. -func (s *emitState) needMetaDataFile() bool { - return s.mf != nil -} - -func writeMetaData(w io.Writer, metalist []rtcov.CovMetaBlob, cmode coverage.CounterMode, gran coverage.CounterGranularity, finalHash [16]byte) error { - mfw := encodemeta.NewCoverageMetaFileWriter("<io.Writer>", w) - - // Note: "sd" is re-initialized on each iteration of the loop - // below, and would normally be declared inside the loop, but - // placed here escape analysis since we capture it in bufHdr. - var sd []byte - bufHdr := (*reflect.SliceHeader)(unsafe.Pointer(&sd)) - - var blobs [][]byte - for _, e := range metalist { - bufHdr.Data = uintptr(unsafe.Pointer(e.P)) - bufHdr.Len = int(e.Len) - bufHdr.Cap = int(e.Len) - blobs = append(blobs, sd) - } - return mfw.Write(finalHash, blobs, cmode, gran) -} - -func (s *emitState) VisitFuncs(f encodecounter.CounterVisitorFn) error { - var sd []atomic.Uint32 - var tcounters []uint32 - bufHdr := (*reflect.SliceHeader)(unsafe.Pointer(&sd)) - - rdCounters := func(actrs []atomic.Uint32, ctrs []uint32) []uint32 { - ctrs = ctrs[:0] - for i := range actrs { - ctrs = append(ctrs, actrs[i].Load()) - } - return ctrs - } - - dpkg := uint32(0) - for _, c := range s.counterlist { - bufHdr.Data = uintptr(unsafe.Pointer(c.Counters)) - bufHdr.Len = int(c.Len) - bufHdr.Cap = int(c.Len) - for i := 0; i < len(sd); i++ { - // Skip ahead until the next non-zero value. - sdi := sd[i].Load() - if sdi == 0 { - continue - } - - // We found a function that was executed. - nCtrs := sd[i+coverage.NumCtrsOffset].Load() - pkgId := sd[i+coverage.PkgIdOffset].Load() - funcId := sd[i+coverage.FuncIdOffset].Load() - cst := i + coverage.FirstCtrOffset - counters := sd[cst : cst+int(nCtrs)] - - // Check to make sure that we have at least one live - // counter. See the implementation note in ClearCoverageCounters - // for a description of why this is needed. - isLive := false - for i := 0; i < len(counters); i++ { - if counters[i].Load() != 0 { - isLive = true - break - } - } - if !isLive { - // Skip this function. - i += coverage.FirstCtrOffset + int(nCtrs) - 1 - continue - } - - if s.debug { - if pkgId != dpkg { - dpkg = pkgId - fmt.Fprintf(os.Stderr, "\n=+= %d: pk=%d visit live fcn", - i, pkgId) - } - fmt.Fprintf(os.Stderr, " {i=%d F%d NC%d}", i, funcId, nCtrs) - } - - // Vet and/or fix up package ID. A package ID of zero - // indicates that there is some new package X that is a - // runtime dependency, and this package has code that - // executes before its corresponding init package runs. - // This is a fatal error that we should only see during - // Go development (e.g. tip). - ipk := int32(pkgId) - if ipk == 0 { - fmt.Fprintf(os.Stderr, "\n") - reportErrorInHardcodedList(int32(i), ipk, funcId, nCtrs) - } else if ipk < 0 { - if newId, ok := s.pkgmap[int(ipk)]; ok { - pkgId = uint32(newId) - } else { - fmt.Fprintf(os.Stderr, "\n") - reportErrorInHardcodedList(int32(i), ipk, funcId, nCtrs) - } - } else { - // The package ID value stored in the counter array - // has 1 added to it (so as to preclude the - // possibility of a zero value ; see - // runtime.addCovMeta), so subtract off 1 here to form - // the real package ID. - pkgId-- - } - - tcounters = rdCounters(counters, tcounters) - if err := f(pkgId, funcId, tcounters); err != nil { - return err - } - - // Skip over this function. - i += coverage.FirstCtrOffset + int(nCtrs) - 1 - } - if s.debug { - fmt.Fprintf(os.Stderr, "\n") - } - } - return nil -} - -// captureOsArgs converts os.Args() into the format we use to store -// this info in the counter data file (counter data file "args" -// section is a generic key-value collection). See the 'args' section -// in internal/coverage/defs.go for more info. The args map -// is also used to capture GOOS + GOARCH values as well. -func captureOsArgs() map[string]string { - m := make(map[string]string) - m["argc"] = strconv.Itoa(len(os.Args)) - for k, a := range os.Args { - m[fmt.Sprintf("argv%d", k)] = a - } - m["GOOS"] = runtime.GOOS - m["GOARCH"] = runtime.GOARCH - return m -} - -// emitCounterDataFile emits the counter data portion of a -// coverage output file (to the file 's.cf'). -func (s *emitState) emitCounterDataFile(finalHash [16]byte, w io.Writer) error { - cfw := encodecounter.NewCoverageDataWriter(w, coverage.CtrULeb128) - if err := cfw.Write(finalHash, capturedOsArgs, s); err != nil { - return err - } - return nil -} - -// markProfileEmitted signals the runtime/coverage machinery that -// coverate data output files have already been written out, and there -// is no need to take any additional action at exit time. This -// function is called (via linknamed reference) from the -// coverage-related boilerplate code in _testmain.go emitted for go -// unit tests. -func markProfileEmitted(val bool) { - covProfileAlreadyEmitted = val -} - -func reportErrorInHardcodedList(slot, pkgID int32, fnID, nCtrs uint32) { - metaList := getCovMetaList() - pkgMap := getCovPkgMap() - - println("internal error in coverage meta-data tracking:") - println("encountered bad pkgID:", pkgID, " at slot:", slot, - " fnID:", fnID, " numCtrs:", nCtrs) - println("list of hard-coded runtime package IDs needs revising.") - println("[see the comment on the 'rtPkgs' var in ") - println(" <goroot>/src/internal/coverage/pkid.go]") - println("registered list:") - for k, b := range metaList { - print("slot: ", k, " path='", b.PkgPath, "' ") - if b.PkgID != -1 { - print(" hard-coded id: ", b.PkgID) - } - println("") - } - println("remap table:") - for from, to := range pkgMap { - println("from ", from, " to ", to) - } -} diff --git a/contrib/go/_std_1.21/src/runtime/coverage/hooks.go b/contrib/go/_std_1.21/src/runtime/coverage/hooks.go deleted file mode 100644 index a9fbf9d7dd..0000000000 --- a/contrib/go/_std_1.21/src/runtime/coverage/hooks.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package coverage - -import _ "unsafe" - -// initHook is invoked from the main package "init" routine in -// programs built with "-cover". This function is intended to be -// called only by the compiler. -// -// If 'istest' is false, it indicates we're building a regular program -// ("go build -cover ..."), in which case we immediately try to write -// out the meta-data file, and register emitCounterData as an exit -// hook. -// -// If 'istest' is true (indicating that the program in question is a -// Go test binary), then we tentatively queue up both emitMetaData and -// emitCounterData as exit hooks. In the normal case (e.g. regular "go -// test -cover" run) the testmain.go boilerplate will run at the end -// of the test, write out the coverage percentage, and then invoke -// markProfileEmitted() to indicate that no more work needs to be -// done. If however that call is never made, this is a sign that the -// test binary is being used as a replacement binary for the tool -// being tested, hence we do want to run exit hooks when the program -// terminates. -func initHook(istest bool) { - // Note: hooks are run in reverse registration order, so - // register the counter data hook before the meta-data hook - // (in the case where two hooks are needed). - runOnNonZeroExit := true - runtime_addExitHook(emitCounterData, runOnNonZeroExit) - if istest { - runtime_addExitHook(emitMetaData, runOnNonZeroExit) - } else { - emitMetaData() - } -} - -//go:linkname runtime_addExitHook runtime.addExitHook -func runtime_addExitHook(f func(), runOnNonZeroExit bool) diff --git a/contrib/go/_std_1.21/src/runtime/coverage/testsupport.go b/contrib/go/_std_1.21/src/runtime/coverage/testsupport.go deleted file mode 100644 index f169580618..0000000000 --- a/contrib/go/_std_1.21/src/runtime/coverage/testsupport.go +++ /dev/null @@ -1,323 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package coverage - -import ( - "encoding/json" - "fmt" - "internal/coverage" - "internal/coverage/calloc" - "internal/coverage/cformat" - "internal/coverage/cmerge" - "internal/coverage/decodecounter" - "internal/coverage/decodemeta" - "internal/coverage/pods" - "io" - "os" - "path/filepath" - "runtime/internal/atomic" - "strings" - "unsafe" -) - -// processCoverTestDir is called (via a linknamed reference) from -// testmain code when "go test -cover" is in effect. It is not -// intended to be used other than internally by the Go command's -// generated code. -func processCoverTestDir(dir string, cfile string, cm string, cpkg string) error { - return processCoverTestDirInternal(dir, cfile, cm, cpkg, os.Stdout) -} - -// processCoverTestDirInternal is an io.Writer version of processCoverTestDir, -// exposed for unit testing. -func processCoverTestDirInternal(dir string, cfile string, cm string, cpkg string, w io.Writer) error { - cmode := coverage.ParseCounterMode(cm) - if cmode == coverage.CtrModeInvalid { - return fmt.Errorf("invalid counter mode %q", cm) - } - - // Emit meta-data and counter data. - ml := getCovMetaList() - if len(ml) == 0 { - // This corresponds to the case where we have a package that - // contains test code but no functions (which is fine). In this - // case there is no need to emit anything. - } else { - if err := emitMetaDataToDirectory(dir, ml); err != nil { - return err - } - if err := emitCounterDataToDirectory(dir); err != nil { - return err - } - } - - // Collect pods from test run. For the majority of cases we would - // expect to see a single pod here, but allow for multiple pods in - // case the test harness is doing extra work to collect data files - // from builds that it kicks off as part of the testing. - podlist, err := pods.CollectPods([]string{dir}, false) - if err != nil { - return fmt.Errorf("reading from %s: %v", dir, err) - } - - // Open text output file if appropriate. - var tf *os.File - var tfClosed bool - if cfile != "" { - var err error - tf, err = os.Create(cfile) - if err != nil { - return fmt.Errorf("internal error: opening coverage data output file %q: %v", cfile, err) - } - defer func() { - if !tfClosed { - tfClosed = true - tf.Close() - } - }() - } - - // Read/process the pods. - ts := &tstate{ - cm: &cmerge.Merger{}, - cf: cformat.NewFormatter(cmode), - cmode: cmode, - } - // Generate the expected hash string based on the final meta-data - // hash for this test, then look only for pods that refer to that - // hash (just in case there are multiple instrumented executables - // in play). See issue #57924 for more on this. - hashstring := fmt.Sprintf("%x", finalHash) - importpaths := make(map[string]struct{}) - for _, p := range podlist { - if !strings.Contains(p.MetaFile, hashstring) { - continue - } - if err := ts.processPod(p, importpaths); err != nil { - return err - } - } - - metafilespath := filepath.Join(dir, coverage.MetaFilesFileName) - if _, err := os.Stat(metafilespath); err == nil { - if err := ts.readAuxMetaFiles(metafilespath, importpaths); err != nil { - return err - } - } - - // Emit percent. - if err := ts.cf.EmitPercent(w, cpkg, true, true); err != nil { - return err - } - - // Emit text output. - if tf != nil { - if err := ts.cf.EmitTextual(tf); err != nil { - return err - } - tfClosed = true - if err := tf.Close(); err != nil { - return fmt.Errorf("closing %s: %v", cfile, err) - } - } - - return nil -} - -type tstate struct { - calloc.BatchCounterAlloc - cm *cmerge.Merger - cf *cformat.Formatter - cmode coverage.CounterMode -} - -// processPod reads coverage counter data for a specific pod. -func (ts *tstate) processPod(p pods.Pod, importpaths map[string]struct{}) error { - // Open meta-data file - f, err := os.Open(p.MetaFile) - if err != nil { - return fmt.Errorf("unable to open meta-data file %s: %v", p.MetaFile, err) - } - defer func() { - f.Close() - }() - var mfr *decodemeta.CoverageMetaFileReader - mfr, err = decodemeta.NewCoverageMetaFileReader(f, nil) - if err != nil { - return fmt.Errorf("error reading meta-data file %s: %v", p.MetaFile, err) - } - newmode := mfr.CounterMode() - if newmode != ts.cmode { - return fmt.Errorf("internal error: counter mode clash: %q from test harness, %q from data file %s", ts.cmode.String(), newmode.String(), p.MetaFile) - } - newgran := mfr.CounterGranularity() - if err := ts.cm.SetModeAndGranularity(p.MetaFile, cmode, newgran); err != nil { - return err - } - - // A map to store counter data, indexed by pkgid/fnid tuple. - pmm := make(map[pkfunc][]uint32) - - // Helper to read a single counter data file. - readcdf := func(cdf string) error { - cf, err := os.Open(cdf) - if err != nil { - return fmt.Errorf("opening counter data file %s: %s", cdf, err) - } - defer cf.Close() - var cdr *decodecounter.CounterDataReader - cdr, err = decodecounter.NewCounterDataReader(cdf, cf) - if err != nil { - return fmt.Errorf("reading counter data file %s: %s", cdf, err) - } - var data decodecounter.FuncPayload - for { - ok, err := cdr.NextFunc(&data) - if err != nil { - return fmt.Errorf("reading counter data file %s: %v", cdf, err) - } - if !ok { - break - } - - // NB: sanity check on pkg and func IDs? - key := pkfunc{pk: data.PkgIdx, fcn: data.FuncIdx} - if prev, found := pmm[key]; found { - // Note: no overflow reporting here. - if err, _ := ts.cm.MergeCounters(data.Counters, prev); err != nil { - return fmt.Errorf("processing counter data file %s: %v", cdf, err) - } - } - c := ts.AllocateCounters(len(data.Counters)) - copy(c, data.Counters) - pmm[key] = c - } - return nil - } - - // Read counter data files. - for _, cdf := range p.CounterDataFiles { - if err := readcdf(cdf); err != nil { - return err - } - } - - // Visit meta-data file. - np := uint32(mfr.NumPackages()) - payload := []byte{} - for pkIdx := uint32(0); pkIdx < np; pkIdx++ { - var pd *decodemeta.CoverageMetaDataDecoder - pd, payload, err = mfr.GetPackageDecoder(pkIdx, payload) - if err != nil { - return fmt.Errorf("reading pkg %d from meta-file %s: %s", pkIdx, p.MetaFile, err) - } - ts.cf.SetPackage(pd.PackagePath()) - importpaths[pd.PackagePath()] = struct{}{} - var fd coverage.FuncDesc - nf := pd.NumFuncs() - for fnIdx := uint32(0); fnIdx < nf; fnIdx++ { - if err := pd.ReadFunc(fnIdx, &fd); err != nil { - return fmt.Errorf("reading meta-data file %s: %v", - p.MetaFile, err) - } - key := pkfunc{pk: pkIdx, fcn: fnIdx} - counters, haveCounters := pmm[key] - for i := 0; i < len(fd.Units); i++ { - u := fd.Units[i] - // Skip units with non-zero parent (no way to represent - // these in the existing format). - if u.Parent != 0 { - continue - } - count := uint32(0) - if haveCounters { - count = counters[i] - } - ts.cf.AddUnit(fd.Srcfile, fd.Funcname, fd.Lit, u, count) - } - } - } - return nil -} - -type pkfunc struct { - pk, fcn uint32 -} - -func (ts *tstate) readAuxMetaFiles(metafiles string, importpaths map[string]struct{}) error { - // Unmarshall the information on available aux metafiles into - // a MetaFileCollection struct. - var mfc coverage.MetaFileCollection - data, err := os.ReadFile(metafiles) - if err != nil { - return fmt.Errorf("error reading auxmetafiles file %q: %v", metafiles, err) - } - if err := json.Unmarshal(data, &mfc); err != nil { - return fmt.Errorf("error reading auxmetafiles file %q: %v", metafiles, err) - } - - // Walk through each available aux meta-file. If we've already - // seen the package path in question during the walk of the - // "regular" meta-data file, then we can skip the package, - // otherwise construct a dummy pod with the single meta-data file - // (no counters) and invoke processPod on it. - for i := range mfc.ImportPaths { - p := mfc.ImportPaths[i] - if _, ok := importpaths[p]; ok { - continue - } - var pod pods.Pod - pod.MetaFile = mfc.MetaFileFragments[i] - if err := ts.processPod(pod, importpaths); err != nil { - return err - } - } - return nil -} - -// snapshot returns a snapshot of coverage percentage at a moment of -// time within a running test, so as to support the testing.Coverage() -// function. This version doesn't examine coverage meta-data, so the -// result it returns will be less accurate (more "slop") due to the -// fact that we don't look at the meta data to see how many statements -// are associated with each counter. -func snapshot() float64 { - cl := getCovCounterList() - if len(cl) == 0 { - // no work to do here. - return 0.0 - } - - tot := uint64(0) - totExec := uint64(0) - for _, c := range cl { - sd := unsafe.Slice((*atomic.Uint32)(unsafe.Pointer(c.Counters)), c.Len) - tot += uint64(len(sd)) - for i := 0; i < len(sd); i++ { - // Skip ahead until the next non-zero value. - if sd[i].Load() == 0 { - continue - } - // We found a function that was executed. - nCtrs := sd[i+coverage.NumCtrsOffset].Load() - cst := i + coverage.FirstCtrOffset - - if cst+int(nCtrs) > len(sd) { - break - } - counters := sd[cst : cst+int(nCtrs)] - for i := range counters { - if counters[i].Load() != 0 { - totExec++ - } - } - i += coverage.FirstCtrOffset + int(nCtrs) - 1 - } - } - if tot == 0 { - return 0.0 - } - return float64(totExec) / float64(tot) -} diff --git a/contrib/go/_std_1.21/src/runtime/coverage/ya.make b/contrib/go/_std_1.21/src/runtime/coverage/ya.make deleted file mode 100644 index eca6740acd..0000000000 --- a/contrib/go/_std_1.21/src/runtime/coverage/ya.make +++ /dev/null @@ -1,11 +0,0 @@ -GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) - SRCS( - apis.go - dummy.s - emit.go - hooks.go - testsupport.go - ) -ENDIF() -END() diff --git a/contrib/go/_std_1.21/src/runtime/debug/ya.make b/contrib/go/_std_1.21/src/runtime/debug/ya.make index bdb1a4f46d..e4d11f992b 100644 --- a/contrib/go/_std_1.21/src/runtime/debug/ya.make +++ b/contrib/go/_std_1.21/src/runtime/debug/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( debug.s garbage.go diff --git a/contrib/go/_std_1.21/src/runtime/internal/atomic/ya.make b/contrib/go/_std_1.21/src/runtime/internal/atomic/ya.make index 0f9ae51525..98d4f48681 100644 --- a/contrib/go/_std_1.21/src/runtime/internal/atomic/ya.make +++ b/contrib/go/_std_1.21/src/runtime/internal/atomic/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( atomic_arm64.go atomic_arm64.s @@ -9,7 +9,7 @@ IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) types_64bit.go unaligned.go ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( atomic_amd64.go atomic_amd64.s diff --git a/contrib/go/_std_1.21/src/runtime/internal/math/ya.make b/contrib/go/_std_1.21/src/runtime/internal/math/ya.make index fad4a66318..dee4547765 100644 --- a/contrib/go/_std_1.21/src/runtime/internal/math/ya.make +++ b/contrib/go/_std_1.21/src/runtime/internal/math/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( math.go ) diff --git a/contrib/go/_std_1.21/src/runtime/internal/sys/ya.make b/contrib/go/_std_1.21/src/runtime/internal/sys/ya.make index dbec7c1b27..ac543894fa 100644 --- a/contrib/go/_std_1.21/src/runtime/internal/sys/ya.make +++ b/contrib/go/_std_1.21/src/runtime/internal/sys/ya.make @@ -1,5 +1,14 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE) + SRCS( + consts.go + consts_race.go + intrinsics.go + nih.go + sys.go + zversion.go + ) +ELSEIF (OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( consts.go consts_norace.go diff --git a/contrib/go/_std_1.21/src/runtime/internal/syscall/ya.make b/contrib/go/_std_1.21/src/runtime/internal/syscall/ya.make index bf607c2640..2973f4e4c3 100644 --- a/contrib/go/_std_1.21/src/runtime/internal/syscall/ya.make +++ b/contrib/go/_std_1.21/src/runtime/internal/syscall/ya.make @@ -1,11 +1,11 @@ GO_LIBRARY() -IF (OS_LINUX AND ARCH_AARCH64) +IF (OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( asm_linux_arm64.s defs_linux_arm64.go syscall_linux.go ) -ELSEIF (OS_LINUX AND ARCH_X86_64) +ELSEIF (OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE) SRCS( asm_linux_amd64.s defs_linux_amd64.go diff --git a/contrib/go/_std_1.21/src/runtime/internal/ya.make b/contrib/go/_std_1.21/src/runtime/internal/ya.make deleted file mode 100644 index e69de29bb2..0000000000 --- a/contrib/go/_std_1.21/src/runtime/internal/ya.make +++ /dev/null diff --git a/contrib/go/_std_1.21/src/runtime/metrics/description.go b/contrib/go/_std_1.21/src/runtime/metrics/description.go deleted file mode 100644 index 745691b24f..0000000000 --- a/contrib/go/_std_1.21/src/runtime/metrics/description.go +++ /dev/null @@ -1,453 +0,0 @@ -// Copyright 2020 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package metrics - -import "internal/godebugs" - -// Description describes a runtime metric. -type Description struct { - // Name is the full name of the metric which includes the unit. - // - // The format of the metric may be described by the following regular expression. - // - // ^(?P<name>/[^:]+):(?P<unit>[^:*/]+(?:[*/][^:*/]+)*)$ - // - // The format splits the name into two components, separated by a colon: a path which always - // starts with a /, and a machine-parseable unit. The name may contain any valid Unicode - // codepoint in between / characters, but by convention will try to stick to lowercase - // characters and hyphens. An example of such a path might be "/memory/heap/free". - // - // The unit is by convention a series of lowercase English unit names (singular or plural) - // without prefixes delimited by '*' or '/'. The unit names may contain any valid Unicode - // codepoint that is not a delimiter. - // Examples of units might be "seconds", "bytes", "bytes/second", "cpu-seconds", - // "byte*cpu-seconds", and "bytes/second/second". - // - // For histograms, multiple units may apply. For instance, the units of the buckets and - // the count. By convention, for histograms, the units of the count are always "samples" - // with the type of sample evident by the metric's name, while the unit in the name - // specifies the buckets' unit. - // - // A complete name might look like "/memory/heap/free:bytes". - Name string - - // Description is an English language sentence describing the metric. - Description string - - // Kind is the kind of value for this metric. - // - // The purpose of this field is to allow users to filter out metrics whose values are - // types which their application may not understand. - Kind ValueKind - - // Cumulative is whether or not the metric is cumulative. If a cumulative metric is just - // a single number, then it increases monotonically. If the metric is a distribution, - // then each bucket count increases monotonically. - // - // This flag thus indicates whether or not it's useful to compute a rate from this value. - Cumulative bool -} - -// The English language descriptions below must be kept in sync with the -// descriptions of each metric in doc.go by running 'go generate'. -var allDesc = []Description{ - { - Name: "/cgo/go-to-c-calls:calls", - Description: "Count of calls made from Go to C by the current process.", - Kind: KindUint64, - Cumulative: true, - }, - { - Name: "/cpu/classes/gc/mark/assist:cpu-seconds", - Description: "Estimated total CPU time goroutines spent performing GC tasks " + - "to assist the GC and prevent it from falling behind the application. " + - "This metric is an overestimate, and not directly comparable to " + - "system CPU time measurements. Compare only with other /cpu/classes " + - "metrics.", - Kind: KindFloat64, - Cumulative: true, - }, - { - Name: "/cpu/classes/gc/mark/dedicated:cpu-seconds", - Description: "Estimated total CPU time spent performing GC tasks on " + - "processors (as defined by GOMAXPROCS) dedicated to those tasks. " + - "This metric is an overestimate, and not directly comparable to " + - "system CPU time measurements. Compare only with other /cpu/classes " + - "metrics.", - Kind: KindFloat64, - Cumulative: true, - }, - { - Name: "/cpu/classes/gc/mark/idle:cpu-seconds", - Description: "Estimated total CPU time spent performing GC tasks on " + - "spare CPU resources that the Go scheduler could not otherwise find " + - "a use for. This should be subtracted from the total GC CPU time to " + - "obtain a measure of compulsory GC CPU time. " + - "This metric is an overestimate, and not directly comparable to " + - "system CPU time measurements. Compare only with other /cpu/classes " + - "metrics.", - Kind: KindFloat64, - Cumulative: true, - }, - { - Name: "/cpu/classes/gc/pause:cpu-seconds", - Description: "Estimated total CPU time spent with the application paused by " + - "the GC. Even if only one thread is running during the pause, this is " + - "computed as GOMAXPROCS times the pause latency because nothing else " + - "can be executing. This is the exact sum of samples in /gc/pause:seconds " + - "if each sample is multiplied by GOMAXPROCS at the time it is taken. " + - "This metric is an overestimate, and not directly comparable to " + - "system CPU time measurements. Compare only with other /cpu/classes " + - "metrics.", - Kind: KindFloat64, - Cumulative: true, - }, - { - Name: "/cpu/classes/gc/total:cpu-seconds", - Description: "Estimated total CPU time spent performing GC tasks. " + - "This metric is an overestimate, and not directly comparable to " + - "system CPU time measurements. Compare only with other /cpu/classes " + - "metrics. Sum of all metrics in /cpu/classes/gc.", - Kind: KindFloat64, - Cumulative: true, - }, - { - Name: "/cpu/classes/idle:cpu-seconds", - Description: "Estimated total available CPU time not spent executing any Go or Go runtime code. " + - "In other words, the part of /cpu/classes/total:cpu-seconds that was unused. " + - "This metric is an overestimate, and not directly comparable to " + - "system CPU time measurements. Compare only with other /cpu/classes " + - "metrics.", - Kind: KindFloat64, - Cumulative: true, - }, - { - Name: "/cpu/classes/scavenge/assist:cpu-seconds", - Description: "Estimated total CPU time spent returning unused memory to the " + - "underlying platform in response eagerly in response to memory pressure. " + - "This metric is an overestimate, and not directly comparable to " + - "system CPU time measurements. Compare only with other /cpu/classes " + - "metrics.", - Kind: KindFloat64, - Cumulative: true, - }, - { - Name: "/cpu/classes/scavenge/background:cpu-seconds", - Description: "Estimated total CPU time spent performing background tasks " + - "to return unused memory to the underlying platform. " + - "This metric is an overestimate, and not directly comparable to " + - "system CPU time measurements. Compare only with other /cpu/classes " + - "metrics.", - Kind: KindFloat64, - Cumulative: true, - }, - { - Name: "/cpu/classes/scavenge/total:cpu-seconds", - Description: "Estimated total CPU time spent performing tasks that return " + - "unused memory to the underlying platform. " + - "This metric is an overestimate, and not directly comparable to " + - "system CPU time measurements. Compare only with other /cpu/classes " + - "metrics. Sum of all metrics in /cpu/classes/scavenge.", - Kind: KindFloat64, - Cumulative: true, - }, - { - Name: "/cpu/classes/total:cpu-seconds", - Description: "Estimated total available CPU time for user Go code " + - "or the Go runtime, as defined by GOMAXPROCS. In other words, GOMAXPROCS " + - "integrated over the wall-clock duration this process has been executing for. " + - "This metric is an overestimate, and not directly comparable to " + - "system CPU time measurements. Compare only with other /cpu/classes " + - "metrics. Sum of all metrics in /cpu/classes.", - Kind: KindFloat64, - Cumulative: true, - }, - { - Name: "/cpu/classes/user:cpu-seconds", - Description: "Estimated total CPU time spent running user Go code. This may " + - "also include some small amount of time spent in the Go runtime. " + - "This metric is an overestimate, and not directly comparable to " + - "system CPU time measurements. Compare only with other /cpu/classes " + - "metrics.", - Kind: KindFloat64, - Cumulative: true, - }, - { - Name: "/gc/cycles/automatic:gc-cycles", - Description: "Count of completed GC cycles generated by the Go runtime.", - Kind: KindUint64, - Cumulative: true, - }, - { - Name: "/gc/cycles/forced:gc-cycles", - Description: "Count of completed GC cycles forced by the application.", - Kind: KindUint64, - Cumulative: true, - }, - { - Name: "/gc/cycles/total:gc-cycles", - Description: "Count of all completed GC cycles.", - Kind: KindUint64, - Cumulative: true, - }, - { - Name: "/gc/gogc:percent", - Description: "Heap size target percentage configured by the user, otherwise 100. This " + - "value is set by the GOGC environment variable, and the runtime/debug.SetGCPercent " + - "function.", - Kind: KindUint64, - }, - { - Name: "/gc/gomemlimit:bytes", - Description: "Go runtime memory limit configured by the user, otherwise " + - "math.MaxInt64. This value is set by the GOMEMLIMIT environment variable, and " + - "the runtime/debug.SetMemoryLimit function.", - Kind: KindUint64, - }, - { - Name: "/gc/heap/allocs-by-size:bytes", - Description: "Distribution of heap allocations by approximate size. " + - "Bucket counts increase monotonically. " + - "Note that this does not include tiny objects as defined by " + - "/gc/heap/tiny/allocs:objects, only tiny blocks.", - Kind: KindFloat64Histogram, - Cumulative: true, - }, - { - Name: "/gc/heap/allocs:bytes", - Description: "Cumulative sum of memory allocated to the heap by the application.", - Kind: KindUint64, - Cumulative: true, - }, - { - Name: "/gc/heap/allocs:objects", - Description: "Cumulative count of heap allocations triggered by the application. " + - "Note that this does not include tiny objects as defined by " + - "/gc/heap/tiny/allocs:objects, only tiny blocks.", - Kind: KindUint64, - Cumulative: true, - }, - { - Name: "/gc/heap/frees-by-size:bytes", - Description: "Distribution of freed heap allocations by approximate size. " + - "Bucket counts increase monotonically. " + - "Note that this does not include tiny objects as defined by " + - "/gc/heap/tiny/allocs:objects, only tiny blocks.", - Kind: KindFloat64Histogram, - Cumulative: true, - }, - { - Name: "/gc/heap/frees:bytes", - Description: "Cumulative sum of heap memory freed by the garbage collector.", - Kind: KindUint64, - Cumulative: true, - }, - { - Name: "/gc/heap/frees:objects", - Description: "Cumulative count of heap allocations whose storage was freed " + - "by the garbage collector. " + - "Note that this does not include tiny objects as defined by " + - "/gc/heap/tiny/allocs:objects, only tiny blocks.", - Kind: KindUint64, - Cumulative: true, - }, - { - Name: "/gc/heap/goal:bytes", - Description: "Heap size target for the end of the GC cycle.", - Kind: KindUint64, - }, - { - Name: "/gc/heap/live:bytes", - Description: "Heap memory occupied by live objects that were marked by the previous GC.", - Kind: KindUint64, - }, - { - Name: "/gc/heap/objects:objects", - Description: "Number of objects, live or unswept, occupying heap memory.", - Kind: KindUint64, - }, - { - Name: "/gc/heap/tiny/allocs:objects", - Description: "Count of small allocations that are packed together into blocks. " + - "These allocations are counted separately from other allocations " + - "because each individual allocation is not tracked by the runtime, " + - "only their block. Each block is already accounted for in " + - "allocs-by-size and frees-by-size.", - Kind: KindUint64, - Cumulative: true, - }, - { - Name: "/gc/limiter/last-enabled:gc-cycle", - Description: "GC cycle the last time the GC CPU limiter was enabled. " + - "This metric is useful for diagnosing the root cause of an out-of-memory " + - "error, because the limiter trades memory for CPU time when the GC's CPU " + - "time gets too high. This is most likely to occur with use of SetMemoryLimit. " + - "The first GC cycle is cycle 1, so a value of 0 indicates that it was never enabled.", - Kind: KindUint64, - }, - { - Name: "/gc/pauses:seconds", - Description: "Distribution of individual GC-related stop-the-world pause latencies. Bucket counts increase monotonically.", - Kind: KindFloat64Histogram, - Cumulative: true, - }, - { - Name: "/gc/scan/globals:bytes", - Description: "The total amount of global variable space that is scannable.", - Kind: KindUint64, - }, - { - Name: "/gc/scan/heap:bytes", - Description: "The total amount of heap space that is scannable.", - Kind: KindUint64, - }, - { - Name: "/gc/scan/stack:bytes", - Description: "The number of bytes of stack that were scanned last GC cycle.", - Kind: KindUint64, - }, - { - Name: "/gc/scan/total:bytes", - Description: "The total amount space that is scannable. Sum of all metrics in /gc/scan.", - Kind: KindUint64, - }, - { - Name: "/gc/stack/starting-size:bytes", - Description: "The stack size of new goroutines.", - Kind: KindUint64, - Cumulative: false, - }, - { - Name: "/memory/classes/heap/free:bytes", - Description: "Memory that is completely free and eligible to be returned to the underlying system, " + - "but has not been. This metric is the runtime's estimate of free address space that is backed by " + - "physical memory.", - Kind: KindUint64, - }, - { - Name: "/memory/classes/heap/objects:bytes", - Description: "Memory occupied by live objects and dead objects that have not yet been marked free by the garbage collector.", - Kind: KindUint64, - }, - { - Name: "/memory/classes/heap/released:bytes", - Description: "Memory that is completely free and has been returned to the underlying system. This " + - "metric is the runtime's estimate of free address space that is still mapped into the process, " + - "but is not backed by physical memory.", - Kind: KindUint64, - }, - { - Name: "/memory/classes/heap/stacks:bytes", - Description: "Memory allocated from the heap that is reserved for stack space, whether or not it is currently in-use. " + - "Currently, this represents all stack memory for goroutines. It also includes all OS thread stacks in non-cgo programs. " + - "Note that stacks may be allocated differently in the future, and this may change.", - Kind: KindUint64, - }, - { - Name: "/memory/classes/heap/unused:bytes", - Description: "Memory that is reserved for heap objects but is not currently used to hold heap objects.", - Kind: KindUint64, - }, - { - Name: "/memory/classes/metadata/mcache/free:bytes", - Description: "Memory that is reserved for runtime mcache structures, but not in-use.", - Kind: KindUint64, - }, - { - Name: "/memory/classes/metadata/mcache/inuse:bytes", - Description: "Memory that is occupied by runtime mcache structures that are currently being used.", - Kind: KindUint64, - }, - { - Name: "/memory/classes/metadata/mspan/free:bytes", - Description: "Memory that is reserved for runtime mspan structures, but not in-use.", - Kind: KindUint64, - }, - { - Name: "/memory/classes/metadata/mspan/inuse:bytes", - Description: "Memory that is occupied by runtime mspan structures that are currently being used.", - Kind: KindUint64, - }, - { - Name: "/memory/classes/metadata/other:bytes", - Description: "Memory that is reserved for or used to hold runtime metadata.", - Kind: KindUint64, - }, - { - Name: "/memory/classes/os-stacks:bytes", - Description: "Stack memory allocated by the underlying operating system. " + - "In non-cgo programs this metric is currently zero. This may change in the future." + - "In cgo programs this metric includes OS thread stacks allocated directly from the OS. " + - "Currently, this only accounts for one stack in c-shared and c-archive build modes, " + - "and other sources of stacks from the OS are not measured. This too may change in the future.", - Kind: KindUint64, - }, - { - Name: "/memory/classes/other:bytes", - Description: "Memory used by execution trace buffers, structures for debugging the runtime, finalizer and profiler specials, and more.", - Kind: KindUint64, - }, - { - Name: "/memory/classes/profiling/buckets:bytes", - Description: "Memory that is used by the stack trace hash map used for profiling.", - Kind: KindUint64, - }, - { - Name: "/memory/classes/total:bytes", - Description: "All memory mapped by the Go runtime into the current process as read-write. Note that this does not include memory mapped by code called via cgo or via the syscall package. Sum of all metrics in /memory/classes.", - Kind: KindUint64, - }, - { - Name: "/sched/gomaxprocs:threads", - Description: "The current runtime.GOMAXPROCS setting, or the number of operating system threads that can execute user-level Go code simultaneously.", - Kind: KindUint64, - }, - { - Name: "/sched/goroutines:goroutines", - Description: "Count of live goroutines.", - Kind: KindUint64, - }, - { - Name: "/sched/latencies:seconds", - Description: "Distribution of the time goroutines have spent in the scheduler in a runnable state before actually running. Bucket counts increase monotonically.", - Kind: KindFloat64Histogram, - Cumulative: true, - }, - { - Name: "/sync/mutex/wait/total:seconds", - Description: "Approximate cumulative time goroutines have spent blocked on a sync.Mutex or sync.RWMutex. This metric is useful for identifying global changes in lock contention. Collect a mutex or block profile using the runtime/pprof package for more detailed contention data.", - Kind: KindFloat64, - Cumulative: true, - }, -} - -func init() { - // Insert all the non-default-reporting GODEBUGs into the table, - // preserving the overall sort order. - i := 0 - for i < len(allDesc) && allDesc[i].Name < "/godebug/" { - i++ - } - more := make([]Description, i, len(allDesc)+len(godebugs.All)) - copy(more, allDesc) - for _, info := range godebugs.All { - if !info.Opaque { - more = append(more, Description{ - Name: "/godebug/non-default-behavior/" + info.Name + ":events", - Description: "The number of non-default behaviors executed by the " + - info.Package + " package " + "due to a non-default " + - "GODEBUG=" + info.Name + "=... setting.", - Kind: KindUint64, - Cumulative: true, - }) - } - } - allDesc = append(more, allDesc[i:]...) -} - -// All returns a slice of containing metric descriptions for all supported metrics. -func All() []Description { - return allDesc -} diff --git a/contrib/go/_std_1.21/src/runtime/metrics/doc.go b/contrib/go/_std_1.21/src/runtime/metrics/doc.go deleted file mode 100644 index 55d1f65f42..0000000000 --- a/contrib/go/_std_1.21/src/runtime/metrics/doc.go +++ /dev/null @@ -1,400 +0,0 @@ -// Copyright 2020 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Note: run 'go generate' (which will run 'go test -generate') to update the "Supported metrics" list. -//go:generate go test -run=Docs -generate - -/* -Package metrics provides a stable interface to access implementation-defined -metrics exported by the Go runtime. This package is similar to existing functions -like [runtime.ReadMemStats] and [debug.ReadGCStats], but significantly more general. - -The set of metrics defined by this package may evolve as the runtime itself -evolves, and also enables variation across Go implementations, whose relevant -metric sets may not intersect. - -# Interface - -Metrics are designated by a string key, rather than, for example, a field name in -a struct. The full list of supported metrics is always available in the slice of -Descriptions returned by All. Each Description also includes useful information -about the metric. - -Thus, users of this API are encouraged to sample supported metrics defined by the -slice returned by All to remain compatible across Go versions. Of course, situations -arise where reading specific metrics is critical. For these cases, users are -encouraged to use build tags, and although metrics may be deprecated and removed, -users should consider this to be an exceptional and rare event, coinciding with a -very large change in a particular Go implementation. - -Each metric key also has a "kind" that describes the format of the metric's value. -In the interest of not breaking users of this package, the "kind" for a given metric -is guaranteed not to change. If it must change, then a new metric will be introduced -with a new key and a new "kind." - -# Metric key format - -As mentioned earlier, metric keys are strings. Their format is simple and well-defined, -designed to be both human and machine readable. It is split into two components, -separated by a colon: a rooted path and a unit. The choice to include the unit in -the key is motivated by compatibility: if a metric's unit changes, its semantics likely -did also, and a new key should be introduced. - -For more details on the precise definition of the metric key's path and unit formats, see -the documentation of the Name field of the Description struct. - -# A note about floats - -This package supports metrics whose values have a floating-point representation. In -order to improve ease-of-use, this package promises to never produce the following -classes of floating-point values: NaN, infinity. - -# Supported metrics - -Below is the full list of supported metrics, ordered lexicographically. - - /cgo/go-to-c-calls:calls - Count of calls made from Go to C by the current process. - - /cpu/classes/gc/mark/assist:cpu-seconds - Estimated total CPU time goroutines spent performing GC - tasks to assist the GC and prevent it from falling behind the - application. This metric is an overestimate, and not directly - comparable to system CPU time measurements. Compare only with - other /cpu/classes metrics. - - /cpu/classes/gc/mark/dedicated:cpu-seconds - Estimated total CPU time spent performing GC tasks on processors - (as defined by GOMAXPROCS) dedicated to those tasks. This metric - is an overestimate, and not directly comparable to system CPU - time measurements. Compare only with other /cpu/classes metrics. - - /cpu/classes/gc/mark/idle:cpu-seconds - Estimated total CPU time spent performing GC tasks on spare CPU - resources that the Go scheduler could not otherwise find a use - for. This should be subtracted from the total GC CPU time to - obtain a measure of compulsory GC CPU time. This metric is an - overestimate, and not directly comparable to system CPU time - measurements. Compare only with other /cpu/classes metrics. - - /cpu/classes/gc/pause:cpu-seconds - Estimated total CPU time spent with the application paused by - the GC. Even if only one thread is running during the pause, - this is computed as GOMAXPROCS times the pause latency because - nothing else can be executing. This is the exact sum of samples - in /gc/pause:seconds if each sample is multiplied by GOMAXPROCS - at the time it is taken. This metric is an overestimate, - and not directly comparable to system CPU time measurements. - Compare only with other /cpu/classes metrics. - - /cpu/classes/gc/total:cpu-seconds - Estimated total CPU time spent performing GC tasks. This metric - is an overestimate, and not directly comparable to system CPU - time measurements. Compare only with other /cpu/classes metrics. - Sum of all metrics in /cpu/classes/gc. - - /cpu/classes/idle:cpu-seconds - Estimated total available CPU time not spent executing - any Go or Go runtime code. In other words, the part of - /cpu/classes/total:cpu-seconds that was unused. This metric is - an overestimate, and not directly comparable to system CPU time - measurements. Compare only with other /cpu/classes metrics. - - /cpu/classes/scavenge/assist:cpu-seconds - Estimated total CPU time spent returning unused memory to the - underlying platform in response eagerly in response to memory - pressure. This metric is an overestimate, and not directly - comparable to system CPU time measurements. Compare only with - other /cpu/classes metrics. - - /cpu/classes/scavenge/background:cpu-seconds - Estimated total CPU time spent performing background tasks to - return unused memory to the underlying platform. This metric is - an overestimate, and not directly comparable to system CPU time - measurements. Compare only with other /cpu/classes metrics. - - /cpu/classes/scavenge/total:cpu-seconds - Estimated total CPU time spent performing tasks that return - unused memory to the underlying platform. This metric is an - overestimate, and not directly comparable to system CPU time - measurements. Compare only with other /cpu/classes metrics. - Sum of all metrics in /cpu/classes/scavenge. - - /cpu/classes/total:cpu-seconds - Estimated total available CPU time for user Go code or the Go - runtime, as defined by GOMAXPROCS. In other words, GOMAXPROCS - integrated over the wall-clock duration this process has been - executing for. This metric is an overestimate, and not directly - comparable to system CPU time measurements. Compare only with - other /cpu/classes metrics. Sum of all metrics in /cpu/classes. - - /cpu/classes/user:cpu-seconds - Estimated total CPU time spent running user Go code. This may - also include some small amount of time spent in the Go runtime. - This metric is an overestimate, and not directly comparable - to system CPU time measurements. Compare only with other - /cpu/classes metrics. - - /gc/cycles/automatic:gc-cycles - Count of completed GC cycles generated by the Go runtime. - - /gc/cycles/forced:gc-cycles - Count of completed GC cycles forced by the application. - - /gc/cycles/total:gc-cycles - Count of all completed GC cycles. - - /gc/gogc:percent - Heap size target percentage configured by the user, otherwise - 100. This value is set by the GOGC environment variable, and the - runtime/debug.SetGCPercent function. - - /gc/gomemlimit:bytes - Go runtime memory limit configured by the user, otherwise - math.MaxInt64. This value is set by the GOMEMLIMIT environment - variable, and the runtime/debug.SetMemoryLimit function. - - /gc/heap/allocs-by-size:bytes - Distribution of heap allocations by approximate size. - Bucket counts increase monotonically. Note that this does not - include tiny objects as defined by /gc/heap/tiny/allocs:objects, - only tiny blocks. - - /gc/heap/allocs:bytes - Cumulative sum of memory allocated to the heap by the - application. - - /gc/heap/allocs:objects - Cumulative count of heap allocations triggered by the - application. Note that this does not include tiny objects as - defined by /gc/heap/tiny/allocs:objects, only tiny blocks. - - /gc/heap/frees-by-size:bytes - Distribution of freed heap allocations by approximate size. - Bucket counts increase monotonically. Note that this does not - include tiny objects as defined by /gc/heap/tiny/allocs:objects, - only tiny blocks. - - /gc/heap/frees:bytes - Cumulative sum of heap memory freed by the garbage collector. - - /gc/heap/frees:objects - Cumulative count of heap allocations whose storage was freed - by the garbage collector. Note that this does not include tiny - objects as defined by /gc/heap/tiny/allocs:objects, only tiny - blocks. - - /gc/heap/goal:bytes - Heap size target for the end of the GC cycle. - - /gc/heap/live:bytes - Heap memory occupied by live objects that were marked by the - previous GC. - - /gc/heap/objects:objects - Number of objects, live or unswept, occupying heap memory. - - /gc/heap/tiny/allocs:objects - Count of small allocations that are packed together into blocks. - These allocations are counted separately from other allocations - because each individual allocation is not tracked by the - runtime, only their block. Each block is already accounted for - in allocs-by-size and frees-by-size. - - /gc/limiter/last-enabled:gc-cycle - GC cycle the last time the GC CPU limiter was enabled. - This metric is useful for diagnosing the root cause of an - out-of-memory error, because the limiter trades memory for CPU - time when the GC's CPU time gets too high. This is most likely - to occur with use of SetMemoryLimit. The first GC cycle is cycle - 1, so a value of 0 indicates that it was never enabled. - - /gc/pauses:seconds - Distribution of individual GC-related stop-the-world pause - latencies. Bucket counts increase monotonically. - - /gc/scan/globals:bytes - The total amount of global variable space that is scannable. - - /gc/scan/heap:bytes - The total amount of heap space that is scannable. - - /gc/scan/stack:bytes - The number of bytes of stack that were scanned last GC cycle. - - /gc/scan/total:bytes - The total amount space that is scannable. Sum of all metrics in - /gc/scan. - - /gc/stack/starting-size:bytes - The stack size of new goroutines. - - /godebug/non-default-behavior/execerrdot:events - The number of non-default behaviors executed by the os/exec - package due to a non-default GODEBUG=execerrdot=... setting. - - /godebug/non-default-behavior/gocachehash:events - The number of non-default behaviors executed by the cmd/go - package due to a non-default GODEBUG=gocachehash=... setting. - - /godebug/non-default-behavior/gocachetest:events - The number of non-default behaviors executed by the cmd/go - package due to a non-default GODEBUG=gocachetest=... setting. - - /godebug/non-default-behavior/gocacheverify:events - The number of non-default behaviors executed by the cmd/go - package due to a non-default GODEBUG=gocacheverify=... setting. - - /godebug/non-default-behavior/http2client:events - The number of non-default behaviors executed by the net/http - package due to a non-default GODEBUG=http2client=... setting. - - /godebug/non-default-behavior/http2server:events - The number of non-default behaviors executed by the net/http - package due to a non-default GODEBUG=http2server=... setting. - - /godebug/non-default-behavior/installgoroot:events - The number of non-default behaviors executed by the go/build - package due to a non-default GODEBUG=installgoroot=... setting. - - /godebug/non-default-behavior/jstmpllitinterp:events - The number of non-default behaviors executed by - the html/template package due to a non-default - GODEBUG=jstmpllitinterp=... setting. - - /godebug/non-default-behavior/multipartmaxheaders:events - The number of non-default behaviors executed by - the mime/multipart package due to a non-default - GODEBUG=multipartmaxheaders=... setting. - - /godebug/non-default-behavior/multipartmaxparts:events - The number of non-default behaviors executed by - the mime/multipart package due to a non-default - GODEBUG=multipartmaxparts=... setting. - - /godebug/non-default-behavior/multipathtcp:events - The number of non-default behaviors executed by the net package - due to a non-default GODEBUG=multipathtcp=... setting. - - /godebug/non-default-behavior/panicnil:events - The number of non-default behaviors executed by the runtime - package due to a non-default GODEBUG=panicnil=... setting. - - /godebug/non-default-behavior/randautoseed:events - The number of non-default behaviors executed by the math/rand - package due to a non-default GODEBUG=randautoseed=... setting. - - /godebug/non-default-behavior/tarinsecurepath:events - The number of non-default behaviors executed by the archive/tar - package due to a non-default GODEBUG=tarinsecurepath=... - setting. - - /godebug/non-default-behavior/tlsmaxrsasize:events - The number of non-default behaviors executed by the crypto/tls - package due to a non-default GODEBUG=tlsmaxrsasize=... setting. - - /godebug/non-default-behavior/x509sha1:events - The number of non-default behaviors executed by the crypto/x509 - package due to a non-default GODEBUG=x509sha1=... setting. - - /godebug/non-default-behavior/x509usefallbackroots:events - The number of non-default behaviors executed by the crypto/x509 - package due to a non-default GODEBUG=x509usefallbackroots=... - setting. - - /godebug/non-default-behavior/zipinsecurepath:events - The number of non-default behaviors executed by the archive/zip - package due to a non-default GODEBUG=zipinsecurepath=... - setting. - - /memory/classes/heap/free:bytes - Memory that is completely free and eligible to be returned to - the underlying system, but has not been. This metric is the - runtime's estimate of free address space that is backed by - physical memory. - - /memory/classes/heap/objects:bytes - Memory occupied by live objects and dead objects that have not - yet been marked free by the garbage collector. - - /memory/classes/heap/released:bytes - Memory that is completely free and has been returned to the - underlying system. This metric is the runtime's estimate of free - address space that is still mapped into the process, but is not - backed by physical memory. - - /memory/classes/heap/stacks:bytes - Memory allocated from the heap that is reserved for stack space, - whether or not it is currently in-use. Currently, this - represents all stack memory for goroutines. It also includes all - OS thread stacks in non-cgo programs. Note that stacks may be - allocated differently in the future, and this may change. - - /memory/classes/heap/unused:bytes - Memory that is reserved for heap objects but is not currently - used to hold heap objects. - - /memory/classes/metadata/mcache/free:bytes - Memory that is reserved for runtime mcache structures, but not - in-use. - - /memory/classes/metadata/mcache/inuse:bytes - Memory that is occupied by runtime mcache structures that are - currently being used. - - /memory/classes/metadata/mspan/free:bytes - Memory that is reserved for runtime mspan structures, but not - in-use. - - /memory/classes/metadata/mspan/inuse:bytes - Memory that is occupied by runtime mspan structures that are - currently being used. - - /memory/classes/metadata/other:bytes - Memory that is reserved for or used to hold runtime metadata. - - /memory/classes/os-stacks:bytes - Stack memory allocated by the underlying operating system. - In non-cgo programs this metric is currently zero. This may - change in the future.In cgo programs this metric includes - OS thread stacks allocated directly from the OS. Currently, - this only accounts for one stack in c-shared and c-archive build - modes, and other sources of stacks from the OS are not measured. - This too may change in the future. - - /memory/classes/other:bytes - Memory used by execution trace buffers, structures for debugging - the runtime, finalizer and profiler specials, and more. - - /memory/classes/profiling/buckets:bytes - Memory that is used by the stack trace hash map used for - profiling. - - /memory/classes/total:bytes - All memory mapped by the Go runtime into the current process - as read-write. Note that this does not include memory mapped - by code called via cgo or via the syscall package. Sum of all - metrics in /memory/classes. - - /sched/gomaxprocs:threads - The current runtime.GOMAXPROCS setting, or the number of - operating system threads that can execute user-level Go code - simultaneously. - - /sched/goroutines:goroutines - Count of live goroutines. - - /sched/latencies:seconds - Distribution of the time goroutines have spent in the scheduler - in a runnable state before actually running. Bucket counts - increase monotonically. - - /sync/mutex/wait/total:seconds - Approximate cumulative time goroutines have spent blocked - on a sync.Mutex or sync.RWMutex. This metric is useful for - identifying global changes in lock contention. Collect a mutex - or block profile using the runtime/pprof package for more - detailed contention data. -*/ -package metrics diff --git a/contrib/go/_std_1.21/src/runtime/metrics/histogram.go b/contrib/go/_std_1.21/src/runtime/metrics/histogram.go deleted file mode 100644 index 956422bf84..0000000000 --- a/contrib/go/_std_1.21/src/runtime/metrics/histogram.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2020 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package metrics - -// Float64Histogram represents a distribution of float64 values. -type Float64Histogram struct { - // Counts contains the weights for each histogram bucket. - // - // Given N buckets, Count[n] is the weight of the range - // [bucket[n], bucket[n+1]), for 0 <= n < N. - Counts []uint64 - - // Buckets contains the boundaries of the histogram buckets, in increasing order. - // - // Buckets[0] is the inclusive lower bound of the minimum bucket while - // Buckets[len(Buckets)-1] is the exclusive upper bound of the maximum bucket. - // Hence, there are len(Buckets)-1 counts. Furthermore, len(Buckets) != 1, always, - // since at least two boundaries are required to describe one bucket (and 0 - // boundaries are used to describe 0 buckets). - // - // Buckets[0] is permitted to have value -Inf and Buckets[len(Buckets)-1] is - // permitted to have value Inf. - // - // For a given metric name, the value of Buckets is guaranteed not to change - // between calls until program exit. - // - // This slice value is permitted to alias with other Float64Histograms' Buckets - // fields, so the values within should only ever be read. If they need to be - // modified, the user must make a copy. - Buckets []float64 -} diff --git a/contrib/go/_std_1.21/src/runtime/metrics/sample.go b/contrib/go/_std_1.21/src/runtime/metrics/sample.go deleted file mode 100644 index 4cf8cdf799..0000000000 --- a/contrib/go/_std_1.21/src/runtime/metrics/sample.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package metrics - -import ( - _ "runtime" // depends on the runtime via a linkname'd function - "unsafe" -) - -// Sample captures a single metric sample. -type Sample struct { - // Name is the name of the metric sampled. - // - // It must correspond to a name in one of the metric descriptions - // returned by All. - Name string - - // Value is the value of the metric sample. - Value Value -} - -// Implemented in the runtime. -func runtime_readMetrics(unsafe.Pointer, int, int) - -// Read populates each Value field in the given slice of metric samples. -// -// Desired metrics should be present in the slice with the appropriate name. -// The user of this API is encouraged to re-use the same slice between calls for -// efficiency, but is not required to do so. -// -// Note that re-use has some caveats. Notably, Values should not be read or -// manipulated while a Read with that value is outstanding; that is a data race. -// This property includes pointer-typed Values (for example, Float64Histogram) -// whose underlying storage will be reused by Read when possible. To safely use -// such values in a concurrent setting, all data must be deep-copied. -// -// It is safe to execute multiple Read calls concurrently, but their arguments -// must share no underlying memory. When in doubt, create a new []Sample from -// scratch, which is always safe, though may be inefficient. -// -// Sample values with names not appearing in All will have their Value populated -// as KindBad to indicate that the name is unknown. -func Read(m []Sample) { - runtime_readMetrics(unsafe.Pointer(&m[0]), len(m), cap(m)) -} diff --git a/contrib/go/_std_1.21/src/runtime/metrics/value.go b/contrib/go/_std_1.21/src/runtime/metrics/value.go deleted file mode 100644 index ed9a33d87c..0000000000 --- a/contrib/go/_std_1.21/src/runtime/metrics/value.go +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright 2020 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package metrics - -import ( - "math" - "unsafe" -) - -// ValueKind is a tag for a metric Value which indicates its type. -type ValueKind int - -const ( - // KindBad indicates that the Value has no type and should not be used. - KindBad ValueKind = iota - - // KindUint64 indicates that the type of the Value is a uint64. - KindUint64 - - // KindFloat64 indicates that the type of the Value is a float64. - KindFloat64 - - // KindFloat64Histogram indicates that the type of the Value is a *Float64Histogram. - KindFloat64Histogram -) - -// Value represents a metric value returned by the runtime. -type Value struct { - kind ValueKind - scalar uint64 // contains scalar values for scalar Kinds. - pointer unsafe.Pointer // contains non-scalar values. -} - -// Kind returns the tag representing the kind of value this is. -func (v Value) Kind() ValueKind { - return v.kind -} - -// Uint64 returns the internal uint64 value for the metric. -// -// If v.Kind() != KindUint64, this method panics. -func (v Value) Uint64() uint64 { - if v.kind != KindUint64 { - panic("called Uint64 on non-uint64 metric value") - } - return v.scalar -} - -// Float64 returns the internal float64 value for the metric. -// -// If v.Kind() != KindFloat64, this method panics. -func (v Value) Float64() float64 { - if v.kind != KindFloat64 { - panic("called Float64 on non-float64 metric value") - } - return math.Float64frombits(v.scalar) -} - -// Float64Histogram returns the internal *Float64Histogram value for the metric. -// -// If v.Kind() != KindFloat64Histogram, this method panics. -func (v Value) Float64Histogram() *Float64Histogram { - if v.kind != KindFloat64Histogram { - panic("called Float64Histogram on non-Float64Histogram metric value") - } - return (*Float64Histogram)(v.pointer) -} diff --git a/contrib/go/_std_1.21/src/runtime/metrics/ya.make b/contrib/go/_std_1.21/src/runtime/metrics/ya.make deleted file mode 100644 index 5d8109dda5..0000000000 --- a/contrib/go/_std_1.21/src/runtime/metrics/ya.make +++ /dev/null @@ -1,11 +0,0 @@ -GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) - SRCS( - description.go - doc.go - histogram.go - sample.go - value.go - ) -ENDIF() -END() diff --git a/contrib/go/_std_1.21/src/runtime/pprof/ya.make b/contrib/go/_std_1.21/src/runtime/pprof/ya.make index 5e4864eabf..2edcd8c68f 100644 --- a/contrib/go/_std_1.21/src/runtime/pprof/ya.make +++ b/contrib/go/_std_1.21/src/runtime/pprof/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE) SRCS( elf.go label.go @@ -13,7 +13,7 @@ IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_A protomem.go runtime.go ) -ELSEIF (OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( elf.go label.go diff --git a/contrib/go/_std_1.21/src/runtime/race/doc.go b/contrib/go/_std_1.21/src/runtime/race/doc.go deleted file mode 100644 index 60a20df5bf..0000000000 --- a/contrib/go/_std_1.21/src/runtime/race/doc.go +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright 2013 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package race implements data race detection logic. -// No public interface is provided. -// For details about the race detector see -// https://golang.org/doc/articles/race_detector.html -package race - -//go:generate ./mkcgo.sh diff --git a/contrib/go/_std_1.21/src/runtime/race/internal/amd64v1/doc.go b/contrib/go/_std_1.21/src/runtime/race/internal/amd64v1/doc.go deleted file mode 100644 index ccb088cc46..0000000000 --- a/contrib/go/_std_1.21/src/runtime/race/internal/amd64v1/doc.go +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// This package holds the race detector .syso for -// amd64 architectures with GOAMD64<v3. - -//go:build amd64 && ((linux && !amd64.v3) || darwin || freebsd || netbsd || openbsd || windows) - -package amd64v1 diff --git a/contrib/go/_std_1.21/src/runtime/race/internal/amd64v1/ya.make b/contrib/go/_std_1.21/src/runtime/race/internal/amd64v1/ya.make deleted file mode 100644 index 785bdc265b..0000000000 --- a/contrib/go/_std_1.21/src/runtime/race/internal/amd64v1/ya.make +++ /dev/null @@ -1,29 +0,0 @@ -GO_LIBRARY() - -IF (ARCH_X86_64) - SRCS( - doc.go - ) -ENDIF() - -IF (RACE) - IF (OS_DARWIN AND ARCH_X86_64) - SRCS( - race_darwin.syso - ) - ENDIF() - - IF (OS_LINUX AND ARCH_X86_64) - SRCS( - race_linux.syso - ) - ENDIF() - - IF (OS_WINDOWS AND ARCH_X86_64) - SRCS( - race_windows.syso - ) - ENDIF() -ENDIF() - -END() diff --git a/contrib/go/_std_1.21/src/runtime/race/internal/ya.make b/contrib/go/_std_1.21/src/runtime/race/internal/ya.make deleted file mode 100644 index e69de29bb2..0000000000 --- a/contrib/go/_std_1.21/src/runtime/race/internal/ya.make +++ /dev/null diff --git a/contrib/go/_std_1.21/src/runtime/race/race_darwin_amd64.go b/contrib/go/_std_1.21/src/runtime/race/race_darwin_amd64.go deleted file mode 100644 index fbb838aa2e..0000000000 --- a/contrib/go/_std_1.21/src/runtime/race/race_darwin_amd64.go +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Code generated by mkcgo.sh. DO NOT EDIT. - -//go:build race - -package race - -//go:cgo_import_dynamic _Block_object_assign _Block_object_assign "" -//go:cgo_import_dynamic _Block_object_dispose _Block_object_dispose "" -//go:cgo_import_dynamic _NSConcreteStackBlock _NSConcreteStackBlock "" -//go:cgo_import_dynamic _NSGetArgv _NSGetArgv "" -//go:cgo_import_dynamic _NSGetEnviron _NSGetEnviron "" -//go:cgo_import_dynamic _NSGetExecutablePath _NSGetExecutablePath "" -//go:cgo_import_dynamic __bzero __bzero "" -//go:cgo_import_dynamic __error __error "" -//go:cgo_import_dynamic __fork __fork "" -//go:cgo_import_dynamic __mmap __mmap "" -//go:cgo_import_dynamic __munmap __munmap "" -//go:cgo_import_dynamic __stack_chk_fail __stack_chk_fail "" -//go:cgo_import_dynamic __stack_chk_guard __stack_chk_guard "" -//go:cgo_import_dynamic _dyld_get_image_header _dyld_get_image_header "" -//go:cgo_import_dynamic _dyld_get_image_name _dyld_get_image_name "" -//go:cgo_import_dynamic _dyld_get_image_vmaddr_slide _dyld_get_image_vmaddr_slide "" -//go:cgo_import_dynamic _dyld_get_shared_cache_range _dyld_get_shared_cache_range "" -//go:cgo_import_dynamic _dyld_get_shared_cache_uuid _dyld_get_shared_cache_uuid "" -//go:cgo_import_dynamic _dyld_image_count _dyld_image_count "" -//go:cgo_import_dynamic _exit _exit "" -//go:cgo_import_dynamic abort abort "" -//go:cgo_import_dynamic arc4random_buf arc4random_buf "" -//go:cgo_import_dynamic close close "" -//go:cgo_import_dynamic dlsym dlsym "" -//go:cgo_import_dynamic dup dup "" -//go:cgo_import_dynamic dup2 dup2 "" -//go:cgo_import_dynamic dyld_shared_cache_iterate_text dyld_shared_cache_iterate_text "" -//go:cgo_import_dynamic execve execve "" -//go:cgo_import_dynamic exit exit "" -//go:cgo_import_dynamic fstat$INODE64 fstat$INODE64 "" -//go:cgo_import_dynamic ftruncate ftruncate "" -//go:cgo_import_dynamic getpid getpid "" -//go:cgo_import_dynamic getrlimit getrlimit "" -//go:cgo_import_dynamic gettimeofday gettimeofday "" -//go:cgo_import_dynamic getuid getuid "" -//go:cgo_import_dynamic grantpt grantpt "" -//go:cgo_import_dynamic ioctl ioctl "" -//go:cgo_import_dynamic isatty isatty "" -//go:cgo_import_dynamic lstat$INODE64 lstat$INODE64 "" -//go:cgo_import_dynamic mach_absolute_time mach_absolute_time "" -//go:cgo_import_dynamic mach_task_self_ mach_task_self_ "" -//go:cgo_import_dynamic mach_timebase_info mach_timebase_info "" -//go:cgo_import_dynamic mach_vm_region_recurse mach_vm_region_recurse "" -//go:cgo_import_dynamic madvise madvise "" -//go:cgo_import_dynamic malloc_num_zones malloc_num_zones "" -//go:cgo_import_dynamic malloc_zones malloc_zones "" -//go:cgo_import_dynamic memcpy memcpy "" -//go:cgo_import_dynamic memset_pattern16 memset_pattern16 "" -//go:cgo_import_dynamic mkdir mkdir "" -//go:cgo_import_dynamic mprotect mprotect "" -//go:cgo_import_dynamic open open "" -//go:cgo_import_dynamic pipe pipe "" -//go:cgo_import_dynamic posix_openpt posix_openpt "" -//go:cgo_import_dynamic posix_spawn posix_spawn "" -//go:cgo_import_dynamic posix_spawn_file_actions_addclose posix_spawn_file_actions_addclose "" -//go:cgo_import_dynamic posix_spawn_file_actions_adddup2 posix_spawn_file_actions_adddup2 "" -//go:cgo_import_dynamic posix_spawn_file_actions_destroy posix_spawn_file_actions_destroy "" -//go:cgo_import_dynamic posix_spawn_file_actions_init posix_spawn_file_actions_init "" -//go:cgo_import_dynamic posix_spawnattr_destroy posix_spawnattr_destroy "" -//go:cgo_import_dynamic posix_spawnattr_init posix_spawnattr_init "" -//go:cgo_import_dynamic posix_spawnattr_setflags posix_spawnattr_setflags "" -//go:cgo_import_dynamic pthread_attr_getstack pthread_attr_getstack "" -//go:cgo_import_dynamic pthread_create pthread_create "" -//go:cgo_import_dynamic pthread_get_stackaddr_np pthread_get_stackaddr_np "" -//go:cgo_import_dynamic pthread_get_stacksize_np pthread_get_stacksize_np "" -//go:cgo_import_dynamic pthread_getspecific pthread_getspecific "" -//go:cgo_import_dynamic pthread_join pthread_join "" -//go:cgo_import_dynamic pthread_self pthread_self "" -//go:cgo_import_dynamic pthread_sigmask pthread_sigmask "" -//go:cgo_import_dynamic pthread_threadid_np pthread_threadid_np "" -//go:cgo_import_dynamic read read "" -//go:cgo_import_dynamic readlink readlink "" -//go:cgo_import_dynamic realpath$DARWIN_EXTSN realpath$DARWIN_EXTSN "" -//go:cgo_import_dynamic rename rename "" -//go:cgo_import_dynamic sched_yield sched_yield "" -//go:cgo_import_dynamic setrlimit setrlimit "" -//go:cgo_import_dynamic sigaction sigaction "" -//go:cgo_import_dynamic stat$INODE64 stat$INODE64 "" -//go:cgo_import_dynamic sysconf sysconf "" -//go:cgo_import_dynamic sysctl sysctl "" -//go:cgo_import_dynamic sysctlbyname sysctlbyname "" -//go:cgo_import_dynamic task_info task_info "" -//go:cgo_import_dynamic tcgetattr tcgetattr "" -//go:cgo_import_dynamic tcsetattr tcsetattr "" -//go:cgo_import_dynamic unlink unlink "" -//go:cgo_import_dynamic unlockpt unlockpt "" -//go:cgo_import_dynamic usleep usleep "" -//go:cgo_import_dynamic vm_region_64 vm_region_64 "" -//go:cgo_import_dynamic vm_region_recurse_64 vm_region_recurse_64 "" -//go:cgo_import_dynamic waitpid waitpid "" -//go:cgo_import_dynamic write write "" diff --git a/contrib/go/_std_1.21/src/runtime/race/race_darwin_arm64.go b/contrib/go/_std_1.21/src/runtime/race/race_darwin_arm64.go deleted file mode 100644 index fe8584c322..0000000000 --- a/contrib/go/_std_1.21/src/runtime/race/race_darwin_arm64.go +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Code generated by mkcgo.sh. DO NOT EDIT. - -//go:build race - -package race - -//go:cgo_import_dynamic _NSGetArgv _NSGetArgv "" -//go:cgo_import_dynamic _NSGetEnviron _NSGetEnviron "" -//go:cgo_import_dynamic _NSGetExecutablePath _NSGetExecutablePath "" -//go:cgo_import_dynamic __error __error "" -//go:cgo_import_dynamic __fork __fork "" -//go:cgo_import_dynamic __mmap __mmap "" -//go:cgo_import_dynamic __munmap __munmap "" -//go:cgo_import_dynamic __stack_chk_fail __stack_chk_fail "" -//go:cgo_import_dynamic __stack_chk_guard __stack_chk_guard "" -//go:cgo_import_dynamic _dyld_get_image_header _dyld_get_image_header "" -//go:cgo_import_dynamic _dyld_get_image_name _dyld_get_image_name "" -//go:cgo_import_dynamic _dyld_get_image_vmaddr_slide _dyld_get_image_vmaddr_slide "" -//go:cgo_import_dynamic _dyld_image_count _dyld_image_count "" -//go:cgo_import_dynamic _exit _exit "" -//go:cgo_import_dynamic abort abort "" -//go:cgo_import_dynamic arc4random_buf arc4random_buf "" -//go:cgo_import_dynamic bzero bzero "" -//go:cgo_import_dynamic close close "" -//go:cgo_import_dynamic dlsym dlsym "" -//go:cgo_import_dynamic dup dup "" -//go:cgo_import_dynamic dup2 dup2 "" -//go:cgo_import_dynamic execve execve "" -//go:cgo_import_dynamic exit exit "" -//go:cgo_import_dynamic fstat fstat "" -//go:cgo_import_dynamic ftruncate ftruncate "" -//go:cgo_import_dynamic getpid getpid "" -//go:cgo_import_dynamic getrlimit getrlimit "" -//go:cgo_import_dynamic gettimeofday gettimeofday "" -//go:cgo_import_dynamic getuid getuid "" -//go:cgo_import_dynamic grantpt grantpt "" -//go:cgo_import_dynamic ioctl ioctl "" -//go:cgo_import_dynamic isatty isatty "" -//go:cgo_import_dynamic lstat lstat "" -//go:cgo_import_dynamic mach_absolute_time mach_absolute_time "" -//go:cgo_import_dynamic mach_task_self_ mach_task_self_ "" -//go:cgo_import_dynamic mach_timebase_info mach_timebase_info "" -//go:cgo_import_dynamic mach_vm_region_recurse mach_vm_region_recurse "" -//go:cgo_import_dynamic madvise madvise "" -//go:cgo_import_dynamic malloc_num_zones malloc_num_zones "" -//go:cgo_import_dynamic malloc_zones malloc_zones "" -//go:cgo_import_dynamic memcpy memcpy "" -//go:cgo_import_dynamic memset_pattern16 memset_pattern16 "" -//go:cgo_import_dynamic mkdir mkdir "" -//go:cgo_import_dynamic mprotect mprotect "" -//go:cgo_import_dynamic open open "" -//go:cgo_import_dynamic pipe pipe "" -//go:cgo_import_dynamic posix_openpt posix_openpt "" -//go:cgo_import_dynamic posix_spawn posix_spawn "" -//go:cgo_import_dynamic posix_spawn_file_actions_addclose posix_spawn_file_actions_addclose "" -//go:cgo_import_dynamic posix_spawn_file_actions_adddup2 posix_spawn_file_actions_adddup2 "" -//go:cgo_import_dynamic posix_spawn_file_actions_destroy posix_spawn_file_actions_destroy "" -//go:cgo_import_dynamic posix_spawn_file_actions_init posix_spawn_file_actions_init "" -//go:cgo_import_dynamic posix_spawnattr_destroy posix_spawnattr_destroy "" -//go:cgo_import_dynamic posix_spawnattr_init posix_spawnattr_init "" -//go:cgo_import_dynamic posix_spawnattr_setflags posix_spawnattr_setflags "" -//go:cgo_import_dynamic pthread_attr_getstack pthread_attr_getstack "" -//go:cgo_import_dynamic pthread_create pthread_create "" -//go:cgo_import_dynamic pthread_get_stackaddr_np pthread_get_stackaddr_np "" -//go:cgo_import_dynamic pthread_get_stacksize_np pthread_get_stacksize_np "" -//go:cgo_import_dynamic pthread_getspecific pthread_getspecific "" -//go:cgo_import_dynamic pthread_join pthread_join "" -//go:cgo_import_dynamic pthread_self pthread_self "" -//go:cgo_import_dynamic pthread_sigmask pthread_sigmask "" -//go:cgo_import_dynamic pthread_threadid_np pthread_threadid_np "" -//go:cgo_import_dynamic read read "" -//go:cgo_import_dynamic readlink readlink "" -//go:cgo_import_dynamic realpath$DARWIN_EXTSN realpath$DARWIN_EXTSN "" -//go:cgo_import_dynamic rename rename "" -//go:cgo_import_dynamic sched_yield sched_yield "" -//go:cgo_import_dynamic setrlimit setrlimit "" -//go:cgo_import_dynamic sigaction sigaction "" -//go:cgo_import_dynamic stat stat "" -//go:cgo_import_dynamic sysconf sysconf "" -//go:cgo_import_dynamic sysctl sysctl "" -//go:cgo_import_dynamic sysctlbyname sysctlbyname "" -//go:cgo_import_dynamic task_info task_info "" -//go:cgo_import_dynamic tcgetattr tcgetattr "" -//go:cgo_import_dynamic tcsetattr tcsetattr "" -//go:cgo_import_dynamic unlink unlink "" -//go:cgo_import_dynamic unlockpt unlockpt "" -//go:cgo_import_dynamic usleep usleep "" -//go:cgo_import_dynamic vm_region_64 vm_region_64 "" -//go:cgo_import_dynamic vm_region_recurse_64 vm_region_recurse_64 "" -//go:cgo_import_dynamic waitpid waitpid "" -//go:cgo_import_dynamic write write "" diff --git a/contrib/go/_std_1.21/src/runtime/race/race_darwin_arm64.syso b/contrib/go/_std_1.21/src/runtime/race/race_darwin_arm64.syso Binary files differdeleted file mode 100644 index 4a23df2725..0000000000 --- a/contrib/go/_std_1.21/src/runtime/race/race_darwin_arm64.syso +++ /dev/null diff --git a/contrib/go/_std_1.21/src/runtime/race/race_linux_arm64.syso b/contrib/go/_std_1.21/src/runtime/race/race_linux_arm64.syso Binary files differdeleted file mode 100644 index c8b3f48ca7..0000000000 --- a/contrib/go/_std_1.21/src/runtime/race/race_linux_arm64.syso +++ /dev/null diff --git a/contrib/go/_std_1.21/src/runtime/race/race_v1_amd64.go b/contrib/go/_std_1.21/src/runtime/race/race_v1_amd64.go deleted file mode 100644 index 7c40db1dcf..0000000000 --- a/contrib/go/_std_1.21/src/runtime/race/race_v1_amd64.go +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build (linux && !amd64.v3) || darwin || freebsd || netbsd || openbsd || windows - -package race - -import _ "runtime/race/internal/amd64v1" diff --git a/contrib/go/_std_1.21/src/runtime/race/ya.make b/contrib/go/_std_1.21/src/runtime/race/ya.make deleted file mode 100644 index 0663618efe..0000000000 --- a/contrib/go/_std_1.21/src/runtime/race/ya.make +++ /dev/null @@ -1,51 +0,0 @@ -GO_LIBRARY() - -NO_COMPILER_WARNINGS() - -SRCS( - doc.go -) - -IF (ARCH_X86_64) - SRCS( - race_v1_amd64.go - ) -ENDIF() - -IF (OS_DARWIN) - IF (ARCH_X86_64) - SRCS( - race_darwin_amd64.go - ) - ENDIF() - IF (ARCH_ARM64) - SRCS( - race_darwin_arm64.go - race_darwin_arm64.syso - ) - ENDIF() -ENDIF() - -IF (OS_LINUX) - IF (ARCH_ARM64) - SRCS( - race_linux_arm64.syso - ) - ENDIF() -ENDIF() - -IF (RACE) - IF (CGO_ENABLED OR OS_DARWIN) - CGO_SRCS( - race.go - ) - ENDIF() -ENDIF() - -END() - -IF (ARCH_X86_64) - RECURSE( - internal - ) -ENDIF() diff --git a/contrib/go/_std_1.21/src/runtime/trace/ya.make b/contrib/go/_std_1.21/src/runtime/trace/ya.make index 08531f1530..bacf4189a9 100644 --- a/contrib/go/_std_1.21/src/runtime/trace/ya.make +++ b/contrib/go/_std_1.21/src/runtime/trace/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( annotation.go trace.go diff --git a/contrib/go/_std_1.21/src/runtime/ya.make b/contrib/go/_std_1.21/src/runtime/ya.make index 4d1e67d15d..1befd1835e 100644 --- a/contrib/go/_std_1.21/src/runtime/ya.make +++ b/contrib/go/_std_1.21/src/runtime/ya.make @@ -1,346 +1,1554 @@ GO_LIBRARY() - -SRCS( - alg.go - arena.go - asan0.go - asm.s - atomic_pointer.go - cgo.go - cgocall.go - cgocallback.go - cgocheck.go - chan.go - checkptr.go - compiler.go - complex.go - covercounter.go - covermeta.go - cpuflags.go - cpuprof.go - debug.go - debugcall.go - debuglog.go - debuglog_off.go - env_posix.go - error.go - exithook.go - extern.go - fastlog2.go - fastlog2table.go - float.go - hash64.go - heapdump.go - histogram.go - iface.go - lfstack.go - lockrank.go - lockrank_off.go - malloc.go - map.go - map_fast32.go - map_fast64.go - map_faststr.go - mbarrier.go - mbitmap.go - mcache.go - mcentral.go - mcheckmark.go - mem.go - metrics.go - mfinal.go - mfixalloc.go - mgc.go - mgclimit.go - mgcmark.go - mgcpacer.go - mgcscavenge.go - mgcstack.go - mgcsweep.go - mgcwork.go - mheap.go - minmax.go - mpagealloc.go - mpagealloc_64bit.go - mpagecache.go - mpallocbits.go - mprof.go - mranges.go - msan0.go - msize.go - mspanset.go - mstats.go - mwbbuf.go - netpoll.go - os_nonopenbsd.go - pagetrace_off.go - panic.go - pinner.go - plugin.go - preempt.go - print.go - proc.go - profbuf.go - proflabel.go - rdebug.go - runtime.go - runtime1.go - runtime2.go - runtime_boring.go - rwmutex.go - select.go - sema.go - sigqueue.go - sizeclasses.go - slice.go - softfloat64.go - stack.go - stkframe.go - string.go - stubs.go - symtab.go - symtabinl.go - sys_nonppc64x.go - tagptr.go - tagptr_64bit.go - time.go - time_nofake.go - trace.go - traceback.go - type.go - typekind.go - unsafe.go - utf8.go - write_err.go -) - -IF (ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE) SRCS( - asm_amd64.s - cpuflags_amd64.go - cputicks.go - duff_amd64.s - memclr_amd64.s - memmove_amd64.s - preempt_amd64.s - stubs_amd64.go - sys_x86.go - test_amd64.go - test_amd64.s + alg.go + arena.go + asan0.go + asm.s + asm_arm64.s + atomic_arm64.s + atomic_pointer.go + cgo.go + cgocall.go + cgocallback.go + cgocheck.go + chan.go + checkptr.go + compiler.go + complex.go + covercounter.go + covermeta.go + cpuflags.go + cpuflags_arm64.go + cpuprof.go + create_file_unix.go + debug.go + debugcall.go + debuglog.go + debuglog_off.go + defs_darwin_arm64.go + duff_arm64.s + env_posix.go + error.go + exithook.go + extern.go + fastlog2.go + fastlog2table.go + float.go + hash64.go + heapdump.go + histogram.go + iface.go + lfstack.go + lock_sema.go + lockrank.go + lockrank_off.go + malloc.go + map.go + map_fast32.go + map_fast64.go + map_faststr.go + mbarrier.go + mbitmap.go + mcache.go + mcentral.go + mcheckmark.go + mem.go + mem_darwin.go + memclr_arm64.s + memmove_arm64.s + metrics.go + mfinal.go + mfixalloc.go + mgc.go + mgclimit.go + mgcmark.go + mgcpacer.go + mgcscavenge.go + mgcstack.go + mgcsweep.go + mgcwork.go + mheap.go + minmax.go + mpagealloc.go + mpagealloc_64bit.go + mpagecache.go + mpallocbits.go + mprof.go + mranges.go + msan0.go + msize.go + mspanset.go + mstats.go + mwbbuf.go + nbpipe_pipe.go + netpoll.go + netpoll_kqueue.go + nonwindows_stub.go + os_darwin.go + os_darwin_arm64.go + os_nonopenbsd.go + os_unix.go + os_unix_nonlinux.go + pagetrace_off.go + panic.go + pinner.go + plugin.go + preempt.go + preempt_arm64.s + preempt_nonwindows.go + print.go + proc.go + profbuf.go + proflabel.go + race.go + race_arm64.s + rdebug.go + retry.go + rt0_darwin_arm64.s + runtime.go + runtime1.go + runtime2.go + runtime_boring.go + rwmutex.go + security_issetugid.go + security_unix.go + select.go + sema.go + signal_arm64.go + signal_darwin.go + signal_darwin_arm64.go + signal_unix.go + sigqueue.go + sizeclasses.go + slice.go + softfloat64.go + stack.go + stkframe.go + string.go + stubs.go + stubs_arm64.go + stubs_nonlinux.go + symtab.go + symtabinl.go + sys_arm64.go + sys_darwin.go + sys_darwin_arm64.go + sys_darwin_arm64.s + sys_libc.go + sys_nonppc64x.go + tagptr.go + tagptr_64bit.go + test_stubs.go + time.go + time_nofake.go + timestub.go + tls_arm64.s + tls_stub.go + trace.go + traceback.go + type.go + typekind.go + unsafe.go + utf8.go + vdso_in_none.go + write_err.go ) - -ENDIF() - -IF (ARCH_ARM64) +ELSEIF (OS_DARWIN AND ARCH_ARM64 AND NOT RACE) SRCS( - asm_arm64.s - atomic_arm64.s - cpuflags_arm64.go - duff_arm64.s - memclr_arm64.s - memmove_arm64.s - preempt_arm64.s - stubs_arm64.go - sys_arm64.go - test_stubs.go - tls_arm64.s - tls_stub.go + alg.go + arena.go + asan0.go + asm.s + asm_arm64.s + atomic_arm64.s + atomic_pointer.go + cgo.go + cgocall.go + cgocallback.go + cgocheck.go + chan.go + checkptr.go + compiler.go + complex.go + covercounter.go + covermeta.go + cpuflags.go + cpuflags_arm64.go + cpuprof.go + create_file_unix.go + debug.go + debugcall.go + debuglog.go + debuglog_off.go + defs_darwin_arm64.go + duff_arm64.s + env_posix.go + error.go + exithook.go + extern.go + fastlog2.go + fastlog2table.go + float.go + hash64.go + heapdump.go + histogram.go + iface.go + lfstack.go + lock_sema.go + lockrank.go + lockrank_off.go + malloc.go + map.go + map_fast32.go + map_fast64.go + map_faststr.go + mbarrier.go + mbitmap.go + mcache.go + mcentral.go + mcheckmark.go + mem.go + mem_darwin.go + memclr_arm64.s + memmove_arm64.s + metrics.go + mfinal.go + mfixalloc.go + mgc.go + mgclimit.go + mgcmark.go + mgcpacer.go + mgcscavenge.go + mgcstack.go + mgcsweep.go + mgcwork.go + mheap.go + minmax.go + mpagealloc.go + mpagealloc_64bit.go + mpagecache.go + mpallocbits.go + mprof.go + mranges.go + msan0.go + msize.go + mspanset.go + mstats.go + mwbbuf.go + nbpipe_pipe.go + netpoll.go + netpoll_kqueue.go + nonwindows_stub.go + os_darwin.go + os_darwin_arm64.go + os_nonopenbsd.go + os_unix.go + os_unix_nonlinux.go + pagetrace_off.go + panic.go + pinner.go + plugin.go + preempt.go + preempt_arm64.s + preempt_nonwindows.go + print.go + proc.go + profbuf.go + proflabel.go + race0.go + rdebug.go + retry.go + rt0_darwin_arm64.s + runtime.go + runtime1.go + runtime2.go + runtime_boring.go + rwmutex.go + security_issetugid.go + security_unix.go + select.go + sema.go + signal_arm64.go + signal_darwin.go + signal_darwin_arm64.go + signal_unix.go + sigqueue.go + sizeclasses.go + slice.go + softfloat64.go + stack.go + stkframe.go + string.go + stubs.go + stubs_arm64.go + stubs_nonlinux.go + symtab.go + symtabinl.go + sys_arm64.go + sys_darwin.go + sys_darwin_arm64.go + sys_darwin_arm64.s + sys_libc.go + sys_nonppc64x.go + tagptr.go + tagptr_64bit.go + test_stubs.go + time.go + time_nofake.go + timestub.go + tls_arm64.s + tls_stub.go + trace.go + traceback.go + type.go + typekind.go + unsafe.go + utf8.go + vdso_in_none.go + write_err.go ) -ENDIF() - -IF (OS_LINUX) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE) SRCS( - cgo_mmap.go - cgo_sigaction.go - create_file_unix.go - lock_futex.go - mem_linux.go - nbpipe_pipe2.go - netpoll_epoll.go - nonwindows_stub.go - os_linux.go - os_linux_generic.go - os_unix.go - preempt_nonwindows.go - retry.go - security_linux.go - security_unix.go - signal_unix.go - sigqueue_note.go - sigtab_linux_generic.go - stubs2.go - stubs3.go - stubs_linux.go - vdso_elf64.go - vdso_linux.go + alg.go + arena.go + asan0.go + asm.s + asm_amd64.s + atomic_pointer.go + cgo.go + cgocall.go + cgocallback.go + cgocheck.go + chan.go + checkptr.go + compiler.go + complex.go + covercounter.go + covermeta.go + cpuflags.go + cpuflags_amd64.go + cpuprof.go + cputicks.go + create_file_unix.go + debug.go + debugcall.go + debuglog.go + debuglog_off.go + defs_darwin_amd64.go + duff_amd64.s + env_posix.go + error.go + exithook.go + extern.go + fastlog2.go + fastlog2table.go + float.go + hash64.go + heapdump.go + histogram.go + iface.go + lfstack.go + lock_sema.go + lockrank.go + lockrank_off.go + malloc.go + map.go + map_fast32.go + map_fast64.go + map_faststr.go + mbarrier.go + mbitmap.go + mcache.go + mcentral.go + mcheckmark.go + mem.go + mem_darwin.go + memclr_amd64.s + memmove_amd64.s + metrics.go + mfinal.go + mfixalloc.go + mgc.go + mgclimit.go + mgcmark.go + mgcpacer.go + mgcscavenge.go + mgcstack.go + mgcsweep.go + mgcwork.go + mheap.go + minmax.go + mpagealloc.go + mpagealloc_64bit.go + mpagecache.go + mpallocbits.go + mprof.go + mranges.go + msan0.go + msize.go + mspanset.go + mstats.go + mwbbuf.go + nbpipe_pipe.go + netpoll.go + netpoll_kqueue.go + nonwindows_stub.go + os_darwin.go + os_nonopenbsd.go + os_unix.go + os_unix_nonlinux.go + pagetrace_off.go + panic.go + pinner.go + plugin.go + preempt.go + preempt_amd64.s + preempt_nonwindows.go + print.go + proc.go + profbuf.go + proflabel.go + race.go + race_amd64.s + rdebug.go + retry.go + rt0_darwin_amd64.s + runtime.go + runtime1.go + runtime2.go + runtime_boring.go + rwmutex.go + security_issetugid.go + security_unix.go + select.go + sema.go + signal_amd64.go + signal_darwin.go + signal_darwin_amd64.go + signal_unix.go + sigqueue.go + sizeclasses.go + slice.go + softfloat64.go + stack.go + stkframe.go + string.go + stubs.go + stubs_amd64.go + stubs_nonlinux.go + symtab.go + symtabinl.go + sys_darwin.go + sys_darwin_amd64.s + sys_libc.go + sys_nonppc64x.go + sys_x86.go + tagptr.go + tagptr_64bit.go + test_amd64.go + test_amd64.s + time.go + time_nofake.go + timestub.go + tls_stub.go + trace.go + traceback.go + type.go + typekind.go + unsafe.go + utf8.go + vdso_in_none.go + write_err.go ) - -ENDIF() - -IF (OS_LINUX AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND NOT RACE) SRCS( - defs_linux_amd64.go - os_linux_noauxv.go - os_linux_x86.go - rt0_linux_amd64.s - signal_amd64.go - signal_linux_amd64.go - sys_linux_amd64.s - time_linux_amd64.s - timeasm.go - tls_stub.go - vdso_linux_amd64.go + alg.go + arena.go + asan0.go + asm.s + asm_amd64.s + atomic_pointer.go + cgo.go + cgocall.go + cgocallback.go + cgocheck.go + chan.go + checkptr.go + compiler.go + complex.go + covercounter.go + covermeta.go + cpuflags.go + cpuflags_amd64.go + cpuprof.go + cputicks.go + create_file_unix.go + debug.go + debugcall.go + debuglog.go + debuglog_off.go + defs_darwin_amd64.go + duff_amd64.s + env_posix.go + error.go + exithook.go + extern.go + fastlog2.go + fastlog2table.go + float.go + hash64.go + heapdump.go + histogram.go + iface.go + lfstack.go + lock_sema.go + lockrank.go + lockrank_off.go + malloc.go + map.go + map_fast32.go + map_fast64.go + map_faststr.go + mbarrier.go + mbitmap.go + mcache.go + mcentral.go + mcheckmark.go + mem.go + mem_darwin.go + memclr_amd64.s + memmove_amd64.s + metrics.go + mfinal.go + mfixalloc.go + mgc.go + mgclimit.go + mgcmark.go + mgcpacer.go + mgcscavenge.go + mgcstack.go + mgcsweep.go + mgcwork.go + mheap.go + minmax.go + mpagealloc.go + mpagealloc_64bit.go + mpagecache.go + mpallocbits.go + mprof.go + mranges.go + msan0.go + msize.go + mspanset.go + mstats.go + mwbbuf.go + nbpipe_pipe.go + netpoll.go + netpoll_kqueue.go + nonwindows_stub.go + os_darwin.go + os_nonopenbsd.go + os_unix.go + os_unix_nonlinux.go + pagetrace_off.go + panic.go + pinner.go + plugin.go + preempt.go + preempt_amd64.s + preempt_nonwindows.go + print.go + proc.go + profbuf.go + proflabel.go + race0.go + rdebug.go + retry.go + rt0_darwin_amd64.s + runtime.go + runtime1.go + runtime2.go + runtime_boring.go + rwmutex.go + security_issetugid.go + security_unix.go + select.go + sema.go + signal_amd64.go + signal_darwin.go + signal_darwin_amd64.go + signal_unix.go + sigqueue.go + sizeclasses.go + slice.go + softfloat64.go + stack.go + stkframe.go + string.go + stubs.go + stubs_amd64.go + stubs_nonlinux.go + symtab.go + symtabinl.go + sys_darwin.go + sys_darwin_amd64.s + sys_libc.go + sys_nonppc64x.go + sys_x86.go + tagptr.go + tagptr_64bit.go + test_amd64.go + test_amd64.s + time.go + time_nofake.go + timestub.go + tls_stub.go + trace.go + traceback.go + type.go + typekind.go + unsafe.go + utf8.go + vdso_in_none.go + write_err.go ) -ENDIF() - -IF (OS_LINUX AND ARCH_ARM64) +ELSEIF (OS_LINUX AND ARCH_AARCH64 AND RACE) SRCS( - defs_linux_arm64.go - os_linux_arm64.go - rt0_linux_arm64.s - signal_arm64.go - signal_linux_arm64.go - sys_linux_arm64.s - timestub.go - timestub2.go - vdso_linux_arm64.go + alg.go + arena.go + asan0.go + asm.s + asm_arm64.s + atomic_arm64.s + atomic_pointer.go + cgo.go + cgo_mmap.go + cgo_sigaction.go + cgocall.go + cgocallback.go + cgocheck.go + chan.go + checkptr.go + compiler.go + complex.go + covercounter.go + covermeta.go + cpuflags.go + cpuflags_arm64.go + cpuprof.go + create_file_unix.go + debug.go + debugcall.go + debuglog.go + debuglog_off.go + defs_linux_arm64.go + duff_arm64.s + env_posix.go + error.go + exithook.go + extern.go + fastlog2.go + fastlog2table.go + float.go + hash64.go + heapdump.go + histogram.go + iface.go + lfstack.go + lock_futex.go + lockrank.go + lockrank_off.go + malloc.go + map.go + map_fast32.go + map_fast64.go + map_faststr.go + mbarrier.go + mbitmap.go + mcache.go + mcentral.go + mcheckmark.go + mem.go + mem_linux.go + memclr_arm64.s + memmove_arm64.s + metrics.go + mfinal.go + mfixalloc.go + mgc.go + mgclimit.go + mgcmark.go + mgcpacer.go + mgcscavenge.go + mgcstack.go + mgcsweep.go + mgcwork.go + mheap.go + minmax.go + mpagealloc.go + mpagealloc_64bit.go + mpagecache.go + mpallocbits.go + mprof.go + mranges.go + msan0.go + msize.go + mspanset.go + mstats.go + mwbbuf.go + nbpipe_pipe2.go + netpoll.go + netpoll_epoll.go + nonwindows_stub.go + os_linux.go + os_linux_arm64.go + os_linux_generic.go + os_nonopenbsd.go + os_unix.go + pagetrace_off.go + panic.go + pinner.go + plugin.go + preempt.go + preempt_arm64.s + preempt_nonwindows.go + print.go + proc.go + profbuf.go + proflabel.go + race.go + race_arm64.s + rdebug.go + retry.go + rt0_linux_arm64.s + runtime.go + runtime1.go + runtime2.go + runtime_boring.go + rwmutex.go + security_linux.go + security_unix.go + select.go + sema.go + signal_arm64.go + signal_linux_arm64.go + signal_unix.go + sigqueue.go + sigqueue_note.go + sigtab_linux_generic.go + sizeclasses.go + slice.go + softfloat64.go + stack.go + stkframe.go + string.go + stubs.go + stubs2.go + stubs3.go + stubs_arm64.go + stubs_linux.go + symtab.go + symtabinl.go + sys_arm64.go + sys_linux_arm64.s + sys_nonppc64x.go + tagptr.go + tagptr_64bit.go + test_stubs.go + time.go + time_nofake.go + timestub.go + timestub2.go + tls_arm64.s + tls_stub.go + trace.go + traceback.go + type.go + typekind.go + unsafe.go + utf8.go + vdso_elf64.go + vdso_linux.go + vdso_linux_arm64.go + write_err.go ) -ENDIF() - -IF (OS_DARWIN) +ELSEIF (OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( - create_file_unix.go - lock_sema.go - mem_darwin.go - nbpipe_pipe.go - netpoll_kqueue.go - nonwindows_stub.go - os_darwin.go - os_unix.go - os_unix_nonlinux.go - preempt_nonwindows.go - retry.go - security_issetugid.go - security_unix.go - signal_darwin.go - signal_unix.go - stubs_nonlinux.go - sys_darwin.go - sys_libc.go - timestub.go - vdso_in_none.go + alg.go + arena.go + asan0.go + asm.s + asm_arm64.s + atomic_arm64.s + atomic_pointer.go + cgo.go + cgo_mmap.go + cgo_sigaction.go + cgocall.go + cgocallback.go + cgocheck.go + chan.go + checkptr.go + compiler.go + complex.go + covercounter.go + covermeta.go + cpuflags.go + cpuflags_arm64.go + cpuprof.go + create_file_unix.go + debug.go + debugcall.go + debuglog.go + debuglog_off.go + defs_linux_arm64.go + duff_arm64.s + env_posix.go + error.go + exithook.go + extern.go + fastlog2.go + fastlog2table.go + float.go + hash64.go + heapdump.go + histogram.go + iface.go + lfstack.go + lock_futex.go + lockrank.go + lockrank_off.go + malloc.go + map.go + map_fast32.go + map_fast64.go + map_faststr.go + mbarrier.go + mbitmap.go + mcache.go + mcentral.go + mcheckmark.go + mem.go + mem_linux.go + memclr_arm64.s + memmove_arm64.s + metrics.go + mfinal.go + mfixalloc.go + mgc.go + mgclimit.go + mgcmark.go + mgcpacer.go + mgcscavenge.go + mgcstack.go + mgcsweep.go + mgcwork.go + mheap.go + minmax.go + mpagealloc.go + mpagealloc_64bit.go + mpagecache.go + mpallocbits.go + mprof.go + mranges.go + msan0.go + msize.go + mspanset.go + mstats.go + mwbbuf.go + nbpipe_pipe2.go + netpoll.go + netpoll_epoll.go + nonwindows_stub.go + os_linux.go + os_linux_arm64.go + os_linux_generic.go + os_nonopenbsd.go + os_unix.go + pagetrace_off.go + panic.go + pinner.go + plugin.go + preempt.go + preempt_arm64.s + preempt_nonwindows.go + print.go + proc.go + profbuf.go + proflabel.go + race0.go + rdebug.go + retry.go + rt0_linux_arm64.s + runtime.go + runtime1.go + runtime2.go + runtime_boring.go + rwmutex.go + security_linux.go + security_unix.go + select.go + sema.go + signal_arm64.go + signal_linux_arm64.go + signal_unix.go + sigqueue.go + sigqueue_note.go + sigtab_linux_generic.go + sizeclasses.go + slice.go + softfloat64.go + stack.go + stkframe.go + string.go + stubs.go + stubs2.go + stubs3.go + stubs_arm64.go + stubs_linux.go + symtab.go + symtabinl.go + sys_arm64.go + sys_linux_arm64.s + sys_nonppc64x.go + tagptr.go + tagptr_64bit.go + test_stubs.go + time.go + time_nofake.go + timestub.go + timestub2.go + tls_arm64.s + tls_stub.go + trace.go + traceback.go + type.go + typekind.go + unsafe.go + utf8.go + vdso_elf64.go + vdso_linux.go + vdso_linux_arm64.go + write_err.go ) -ENDIF() - -IF (OS_DARWIN AND ARCH_X86_64) +ELSEIF (OS_LINUX AND ARCH_X86_64 AND RACE) SRCS( - defs_darwin_amd64.go - rt0_darwin_amd64.s - signal_amd64.go - signal_darwin_amd64.go - sys_darwin_amd64.s - tls_stub.go + alg.go + arena.go + asan0.go + asm.s + asm_amd64.s + atomic_pointer.go + cgo.go + cgo_mmap.go + cgo_sigaction.go + cgocall.go + cgocallback.go + cgocheck.go + chan.go + checkptr.go + compiler.go + complex.go + covercounter.go + covermeta.go + cpuflags.go + cpuflags_amd64.go + cpuprof.go + cputicks.go + create_file_unix.go + debug.go + debugcall.go + debuglog.go + debuglog_off.go + defs_linux_amd64.go + duff_amd64.s + env_posix.go + error.go + exithook.go + extern.go + fastlog2.go + fastlog2table.go + float.go + hash64.go + heapdump.go + histogram.go + iface.go + lfstack.go + lock_futex.go + lockrank.go + lockrank_off.go + malloc.go + map.go + map_fast32.go + map_fast64.go + map_faststr.go + mbarrier.go + mbitmap.go + mcache.go + mcentral.go + mcheckmark.go + mem.go + mem_linux.go + memclr_amd64.s + memmove_amd64.s + metrics.go + mfinal.go + mfixalloc.go + mgc.go + mgclimit.go + mgcmark.go + mgcpacer.go + mgcscavenge.go + mgcstack.go + mgcsweep.go + mgcwork.go + mheap.go + minmax.go + mpagealloc.go + mpagealloc_64bit.go + mpagecache.go + mpallocbits.go + mprof.go + mranges.go + msan0.go + msize.go + mspanset.go + mstats.go + mwbbuf.go + nbpipe_pipe2.go + netpoll.go + netpoll_epoll.go + nonwindows_stub.go + os_linux.go + os_linux_generic.go + os_linux_noauxv.go + os_linux_x86.go + os_nonopenbsd.go + os_unix.go + pagetrace_off.go + panic.go + pinner.go + plugin.go + preempt.go + preempt_amd64.s + preempt_nonwindows.go + print.go + proc.go + profbuf.go + proflabel.go + race.go + race_amd64.s + rdebug.go + retry.go + rt0_linux_amd64.s + runtime.go + runtime1.go + runtime2.go + runtime_boring.go + rwmutex.go + security_linux.go + security_unix.go + select.go + sema.go + signal_amd64.go + signal_linux_amd64.go + signal_unix.go + sigqueue.go + sigqueue_note.go + sigtab_linux_generic.go + sizeclasses.go + slice.go + softfloat64.go + stack.go + stkframe.go + string.go + stubs.go + stubs2.go + stubs3.go + stubs_amd64.go + stubs_linux.go + symtab.go + symtabinl.go + sys_linux_amd64.s + sys_nonppc64x.go + sys_x86.go + tagptr.go + tagptr_64bit.go + test_amd64.go + test_amd64.s + time.go + time_linux_amd64.s + time_nofake.go + timeasm.go + tls_stub.go + trace.go + traceback.go + type.go + typekind.go + unsafe.go + utf8.go + vdso_elf64.go + vdso_linux.go + vdso_linux_amd64.go + write_err.go ) -ENDIF() - -IF (OS_DARWIN AND ARCH_ARM64) +ELSEIF (OS_LINUX AND ARCH_X86_64 AND NOT RACE) SRCS( - defs_darwin_arm64.go - os_darwin_arm64.go - rt0_darwin_arm64.s - signal_arm64.go - signal_darwin_arm64.go - sys_darwin_arm64.go - sys_darwin_arm64.s + alg.go + arena.go + asan0.go + asm.s + asm_amd64.s + atomic_pointer.go + cgo.go + cgo_mmap.go + cgo_sigaction.go + cgocall.go + cgocallback.go + cgocheck.go + chan.go + checkptr.go + compiler.go + complex.go + covercounter.go + covermeta.go + cpuflags.go + cpuflags_amd64.go + cpuprof.go + cputicks.go + create_file_unix.go + debug.go + debugcall.go + debuglog.go + debuglog_off.go + defs_linux_amd64.go + duff_amd64.s + env_posix.go + error.go + exithook.go + extern.go + fastlog2.go + fastlog2table.go + float.go + hash64.go + heapdump.go + histogram.go + iface.go + lfstack.go + lock_futex.go + lockrank.go + lockrank_off.go + malloc.go + map.go + map_fast32.go + map_fast64.go + map_faststr.go + mbarrier.go + mbitmap.go + mcache.go + mcentral.go + mcheckmark.go + mem.go + mem_linux.go + memclr_amd64.s + memmove_amd64.s + metrics.go + mfinal.go + mfixalloc.go + mgc.go + mgclimit.go + mgcmark.go + mgcpacer.go + mgcscavenge.go + mgcstack.go + mgcsweep.go + mgcwork.go + mheap.go + minmax.go + mpagealloc.go + mpagealloc_64bit.go + mpagecache.go + mpallocbits.go + mprof.go + mranges.go + msan0.go + msize.go + mspanset.go + mstats.go + mwbbuf.go + nbpipe_pipe2.go + netpoll.go + netpoll_epoll.go + nonwindows_stub.go + os_linux.go + os_linux_generic.go + os_linux_noauxv.go + os_linux_x86.go + os_nonopenbsd.go + os_unix.go + pagetrace_off.go + panic.go + pinner.go + plugin.go + preempt.go + preempt_amd64.s + preempt_nonwindows.go + print.go + proc.go + profbuf.go + proflabel.go + race0.go + rdebug.go + retry.go + rt0_linux_amd64.s + runtime.go + runtime1.go + runtime2.go + runtime_boring.go + rwmutex.go + security_linux.go + security_unix.go + select.go + sema.go + signal_amd64.go + signal_linux_amd64.go + signal_unix.go + sigqueue.go + sigqueue_note.go + sigtab_linux_generic.go + sizeclasses.go + slice.go + softfloat64.go + stack.go + stkframe.go + string.go + stubs.go + stubs2.go + stubs3.go + stubs_amd64.go + stubs_linux.go + symtab.go + symtabinl.go + sys_linux_amd64.s + sys_nonppc64x.go + sys_x86.go + tagptr.go + tagptr_64bit.go + test_amd64.go + test_amd64.s + time.go + time_linux_amd64.s + time_nofake.go + timeasm.go + tls_stub.go + trace.go + traceback.go + type.go + typekind.go + unsafe.go + utf8.go + vdso_elf64.go + vdso_linux.go + vdso_linux_amd64.go + write_err.go ) -ENDIF() - -IF (OS_WINDOWS) +ELSEIF (OS_WINDOWS AND ARCH_X86_64 AND RACE) SRCS( - auxv_none.go - create_file_nounix.go - defs_windows.go - lock_sema.go - mem_windows.go - netpoll_windows.go - os_windows.go - security_nonunix.go - signal_windows.go - sigqueue_note.go - stubs3.go - stubs_nonlinux.go - syscall_windows.go - timeasm.go - vdso_in_none.go - zcallback_windows.go + alg.go + arena.go + asan0.go + asm.s + asm_amd64.s + atomic_pointer.go + auxv_none.go + cgo.go + cgocall.go + cgocallback.go + cgocheck.go + chan.go + checkptr.go + compiler.go + complex.go + covercounter.go + covermeta.go + cpuflags.go + cpuflags_amd64.go + cpuprof.go + cputicks.go + create_file_nounix.go + debug.go + debugcall.go + debuglog.go + debuglog_off.go + defs_windows.go + defs_windows_amd64.go + duff_amd64.s + env_posix.go + error.go + exithook.go + extern.go + fastlog2.go + fastlog2table.go + float.go + hash64.go + heapdump.go + histogram.go + iface.go + lfstack.go + lock_sema.go + lockrank.go + lockrank_off.go + malloc.go + map.go + map_fast32.go + map_fast64.go + map_faststr.go + mbarrier.go + mbitmap.go + mcache.go + mcentral.go + mcheckmark.go + mem.go + mem_windows.go + memclr_amd64.s + memmove_amd64.s + metrics.go + mfinal.go + mfixalloc.go + mgc.go + mgclimit.go + mgcmark.go + mgcpacer.go + mgcscavenge.go + mgcstack.go + mgcsweep.go + mgcwork.go + mheap.go + minmax.go + mpagealloc.go + mpagealloc_64bit.go + mpagecache.go + mpallocbits.go + mprof.go + mranges.go + msan0.go + msize.go + mspanset.go + mstats.go + mwbbuf.go + netpoll.go + netpoll_windows.go + os_nonopenbsd.go + os_windows.go + pagetrace_off.go + panic.go + pinner.go + plugin.go + preempt.go + preempt_amd64.s + print.go + proc.go + profbuf.go + proflabel.go + race.go + race_amd64.s + rdebug.go + rt0_windows_amd64.s + runtime.go + runtime1.go + runtime2.go + runtime_boring.go + rwmutex.go + security_nonunix.go + select.go + sema.go + signal_windows.go + sigqueue.go + sigqueue_note.go + sizeclasses.go + slice.go + softfloat64.go + stack.go + stkframe.go + string.go + stubs.go + stubs3.go + stubs_amd64.go + stubs_nonlinux.go + symtab.go + symtabinl.go + sys_nonppc64x.go + sys_windows_amd64.s + sys_x86.go + syscall_windows.go + tagptr.go + tagptr_64bit.go + test_amd64.go + test_amd64.s + time.go + time_nofake.go + time_windows_amd64.s + timeasm.go + tls_windows_amd64.go + trace.go + traceback.go + type.go + typekind.go + unsafe.go + utf8.go + vdso_in_none.go + write_err.go + zcallback_windows.go + zcallback_windows.s ) -ENDIF() - -IF (OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( - defs_windows_amd64.go - rt0_windows_amd64.s - sys_windows_amd64.s - time_windows_amd64.s - tls_windows_amd64.go - zcallback_windows.s + alg.go + arena.go + asan0.go + asm.s + asm_amd64.s + atomic_pointer.go + auxv_none.go + cgo.go + cgocall.go + cgocallback.go + cgocheck.go + chan.go + checkptr.go + compiler.go + complex.go + covercounter.go + covermeta.go + cpuflags.go + cpuflags_amd64.go + cpuprof.go + cputicks.go + create_file_nounix.go + debug.go + debugcall.go + debuglog.go + debuglog_off.go + defs_windows.go + defs_windows_amd64.go + duff_amd64.s + env_posix.go + error.go + exithook.go + extern.go + fastlog2.go + fastlog2table.go + float.go + hash64.go + heapdump.go + histogram.go + iface.go + lfstack.go + lock_sema.go + lockrank.go + lockrank_off.go + malloc.go + map.go + map_fast32.go + map_fast64.go + map_faststr.go + mbarrier.go + mbitmap.go + mcache.go + mcentral.go + mcheckmark.go + mem.go + mem_windows.go + memclr_amd64.s + memmove_amd64.s + metrics.go + mfinal.go + mfixalloc.go + mgc.go + mgclimit.go + mgcmark.go + mgcpacer.go + mgcscavenge.go + mgcstack.go + mgcsweep.go + mgcwork.go + mheap.go + minmax.go + mpagealloc.go + mpagealloc_64bit.go + mpagecache.go + mpallocbits.go + mprof.go + mranges.go + msan0.go + msize.go + mspanset.go + mstats.go + mwbbuf.go + netpoll.go + netpoll_windows.go + os_nonopenbsd.go + os_windows.go + pagetrace_off.go + panic.go + pinner.go + plugin.go + preempt.go + preempt_amd64.s + print.go + proc.go + profbuf.go + proflabel.go + race0.go + rdebug.go + rt0_windows_amd64.s + runtime.go + runtime1.go + runtime2.go + runtime_boring.go + rwmutex.go + security_nonunix.go + select.go + sema.go + signal_windows.go + sigqueue.go + sigqueue_note.go + sizeclasses.go + slice.go + softfloat64.go + stack.go + stkframe.go + string.go + stubs.go + stubs3.go + stubs_amd64.go + stubs_nonlinux.go + symtab.go + symtabinl.go + sys_nonppc64x.go + sys_windows_amd64.s + sys_x86.go + syscall_windows.go + tagptr.go + tagptr_64bit.go + test_amd64.go + test_amd64.s + time.go + time_nofake.go + time_windows_amd64.s + timeasm.go + tls_windows_amd64.go + trace.go + traceback.go + type.go + typekind.go + unsafe.go + utf8.go + vdso_in_none.go + write_err.go + zcallback_windows.go + zcallback_windows.s ) ENDIF() - -IF (OS_WINDOWS AND ARCH_ARM64) - SRCS( - defs_windows_arm64.go - os_windows_arm64.go - rt0_windows_arm64.s - sys_windows_arm64.s - time_windows_arm64.s - zcallback_windows_arm64.s - ) -ENDIF() - -IF (CGO_ENABLED OR OS_DARWIN) - IF (RACE) - SRCS( - race.go - ) - - IF (ARCH_ARM64) - SRCS( - race_arm64.s - ) - ENDIF() - - IF (ARCH_X86_64) - SRCS( - race_amd64.s - ) - ENDIF() - ELSE() - SRCS( - race0.go - ) - ENDIF() -ELSE() - SRCS( - race0.go - ) -ENDIF() - END() - -RECURSE( - coverage - debug - internal - metrics - pprof - race - trace -) - -IF (CGO_ENABLED) - RECURSE( - cgo - ) -ENDIF() - diff --git a/contrib/go/_std_1.21/src/sort/ya.make b/contrib/go/_std_1.21/src/sort/ya.make index c0023a4c0a..fdafd71241 100644 --- a/contrib/go/_std_1.21/src/sort/ya.make +++ b/contrib/go/_std_1.21/src/sort/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( search.go slice.go diff --git a/contrib/go/_std_1.21/src/strconv/ya.make b/contrib/go/_std_1.21/src/strconv/ya.make index a0c91206ea..8fc44d480e 100644 --- a/contrib/go/_std_1.21/src/strconv/ya.make +++ b/contrib/go/_std_1.21/src/strconv/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( atob.go atoc.go diff --git a/contrib/go/_std_1.21/src/strings/ya.make b/contrib/go/_std_1.21/src/strings/ya.make index f263238ba0..63124aa6fc 100644 --- a/contrib/go/_std_1.21/src/strings/ya.make +++ b/contrib/go/_std_1.21/src/strings/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( builder.go clone.go diff --git a/contrib/go/_std_1.21/src/sync/atomic/ya.make b/contrib/go/_std_1.21/src/sync/atomic/ya.make index bc80c285d4..ddcd87837c 100644 --- a/contrib/go/_std_1.21/src/sync/atomic/ya.make +++ b/contrib/go/_std_1.21/src/sync/atomic/ya.make @@ -1,19 +1,17 @@ GO_LIBRARY() - -SRCS( - doc.go - type.go - value.go -) - -IF (RACE) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE) SRCS( - race.s + doc.go + race.s + type.go + value.go ) -ELSE() +ELSEIF (OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( - asm.s + asm.s + doc.go + type.go + value.go ) ENDIF() - END() diff --git a/contrib/go/_std_1.21/src/sync/ya.make b/contrib/go/_std_1.21/src/sync/ya.make index 79361418a5..9e79a7e55b 100644 --- a/contrib/go/_std_1.21/src/sync/ya.make +++ b/contrib/go/_std_1.21/src/sync/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( cond.go map.go diff --git a/contrib/go/_std_1.21/src/syscall/ya.make b/contrib/go/_std_1.21/src/syscall/ya.make index b31ede8319..68d1724536 100644 --- a/contrib/go/_std_1.21/src/syscall/ya.make +++ b/contrib/go/_std_1.21/src/syscall/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE) SRCS( asan0.go asm_darwin_arm64.s @@ -33,7 +33,7 @@ IF (OS_DARWIN AND ARCH_ARM64) zsysnum_darwin_arm64.go ztypes_darwin_arm64.go ) -ELSEIF (OS_DARWIN AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE) SRCS( asan0.go asm_darwin_amd64.s @@ -67,7 +67,7 @@ ELSEIF (OS_DARWIN AND ARCH_X86_64) zsysnum_darwin_amd64.go ztypes_darwin_amd64.go ) -ELSEIF (OS_LINUX AND ARCH_AARCH64) +ELSEIF (OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( asan0.go asm_linux_arm64.s @@ -100,7 +100,7 @@ ELSEIF (OS_LINUX AND ARCH_AARCH64) zsysnum_linux_arm64.go ztypes_linux_arm64.go ) -ELSEIF (OS_LINUX AND ARCH_X86_64) +ELSEIF (OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE) SRCS( asan0.go asm_linux_amd64.s @@ -133,7 +133,7 @@ ELSEIF (OS_LINUX AND ARCH_X86_64) zsysnum_linux_amd64.go ztypes_linux_amd64.go ) -ELSEIF (OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( asan0.go dll_windows.go diff --git a/contrib/go/_std_1.21/src/testing/internal/testdeps/ya.make b/contrib/go/_std_1.21/src/testing/internal/testdeps/ya.make index 847f59a557..86fd875fed 100644 --- a/contrib/go/_std_1.21/src/testing/internal/testdeps/ya.make +++ b/contrib/go/_std_1.21/src/testing/internal/testdeps/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( deps.go ) diff --git a/contrib/go/_std_1.21/src/testing/ya.make b/contrib/go/_std_1.21/src/testing/ya.make index 34a23963f9..c6cfd50827 100644 --- a/contrib/go/_std_1.21/src/testing/ya.make +++ b/contrib/go/_std_1.21/src/testing/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE) SRCS( allocs.go benchmark.go @@ -12,7 +12,7 @@ IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_A testing.go testing_other.go ) -ELSEIF (OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( allocs.go benchmark.go diff --git a/contrib/go/_std_1.21/src/text/scanner/ya.make b/contrib/go/_std_1.21/src/text/scanner/ya.make index 6003358c55..3dc731bcb6 100644 --- a/contrib/go/_std_1.21/src/text/scanner/ya.make +++ b/contrib/go/_std_1.21/src/text/scanner/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( scanner.go ) diff --git a/contrib/go/_std_1.21/src/text/tabwriter/ya.make b/contrib/go/_std_1.21/src/text/tabwriter/ya.make index 2be4621630..ebf8792598 100644 --- a/contrib/go/_std_1.21/src/text/tabwriter/ya.make +++ b/contrib/go/_std_1.21/src/text/tabwriter/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( tabwriter.go ) diff --git a/contrib/go/_std_1.21/src/text/template/parse/ya.make b/contrib/go/_std_1.21/src/text/template/parse/ya.make index cfc13911ba..f69210eeb8 100644 --- a/contrib/go/_std_1.21/src/text/template/parse/ya.make +++ b/contrib/go/_std_1.21/src/text/template/parse/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( lex.go node.go diff --git a/contrib/go/_std_1.21/src/text/template/ya.make b/contrib/go/_std_1.21/src/text/template/ya.make index 3c1c1006c6..5fcb1a52ed 100644 --- a/contrib/go/_std_1.21/src/text/template/ya.make +++ b/contrib/go/_std_1.21/src/text/template/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( doc.go exec.go diff --git a/contrib/go/_std_1.21/src/time/ya.make b/contrib/go/_std_1.21/src/time/ya.make index 06c7a2e5cd..eb4ba7830f 100644 --- a/contrib/go/_std_1.21/src/time/ya.make +++ b/contrib/go/_std_1.21/src/time/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE) SRCS( format.go format_rfc3339.go @@ -12,7 +12,7 @@ IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_A zoneinfo_read.go zoneinfo_unix.go ) -ELSEIF (OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( format.go format_rfc3339.go diff --git a/contrib/go/_std_1.21/src/unicode/utf16/ya.make b/contrib/go/_std_1.21/src/unicode/utf16/ya.make index 42abfdeda0..1d64f8ef38 100644 --- a/contrib/go/_std_1.21/src/unicode/utf16/ya.make +++ b/contrib/go/_std_1.21/src/unicode/utf16/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( utf16.go ) diff --git a/contrib/go/_std_1.21/src/unicode/utf8/ya.make b/contrib/go/_std_1.21/src/unicode/utf8/ya.make index 10ec06b2f7..73cb555fee 100644 --- a/contrib/go/_std_1.21/src/unicode/utf8/ya.make +++ b/contrib/go/_std_1.21/src/unicode/utf8/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( utf8.go ) diff --git a/contrib/go/_std_1.21/src/unicode/ya.make b/contrib/go/_std_1.21/src/unicode/ya.make index 4467bfc157..d198193a61 100644 --- a/contrib/go/_std_1.21/src/unicode/ya.make +++ b/contrib/go/_std_1.21/src/unicode/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( casetables.go digit.go diff --git a/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/chacha20/ya.make b/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/chacha20/ya.make index f3f02dbf90..b3b6fd3a14 100644 --- a/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/chacha20/ya.make +++ b/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/chacha20/ya.make @@ -1,12 +1,12 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( chacha_arm64.go chacha_arm64.s chacha_generic.go xor.go ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( chacha_generic.go chacha_noasm.go diff --git a/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/chacha20poly1305/ya.make b/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/chacha20poly1305/ya.make index 4ba4c46a63..da0dc669cb 100644 --- a/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/chacha20poly1305/ya.make +++ b/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/chacha20poly1305/ya.make @@ -1,12 +1,12 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( chacha20poly1305.go chacha20poly1305_generic.go chacha20poly1305_noasm.go xchacha20poly1305.go ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( chacha20poly1305.go chacha20poly1305_amd64.go diff --git a/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/cryptobyte/asn1/ya.make b/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/cryptobyte/asn1/ya.make index 96f0b81689..e530a7e740 100644 --- a/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/cryptobyte/asn1/ya.make +++ b/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/cryptobyte/asn1/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( asn1.go ) diff --git a/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/cryptobyte/ya.make b/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/cryptobyte/ya.make index b3412c48ec..a13292484f 100644 --- a/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/cryptobyte/ya.make +++ b/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/cryptobyte/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( asn1.go builder.go diff --git a/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/hkdf/ya.make b/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/hkdf/ya.make index 5fad1bd5a0..d4dec047cb 100644 --- a/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/hkdf/ya.make +++ b/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/hkdf/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( hkdf.go ) diff --git a/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/internal/alias/ya.make b/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/internal/alias/ya.make index ce542f1a28..41656cc71e 100644 --- a/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/internal/alias/ya.make +++ b/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/internal/alias/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( alias.go ) diff --git a/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/internal/poly1305/ya.make b/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/internal/poly1305/ya.make index 053fb39f2d..7618ef1f27 100644 --- a/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/internal/poly1305/ya.make +++ b/contrib/go/_std_1.21/src/vendor/golang.org/x/crypto/internal/poly1305/ya.make @@ -1,12 +1,12 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_LINUX AND ARCH_AARCH64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( bits_go1.13.go mac_noasm.go poly1305.go sum_generic.go ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( bits_go1.13.go poly1305.go diff --git a/contrib/go/_std_1.21/src/vendor/golang.org/x/net/dns/dnsmessage/ya.make b/contrib/go/_std_1.21/src/vendor/golang.org/x/net/dns/dnsmessage/ya.make index 4643c66baa..5724ce854d 100644 --- a/contrib/go/_std_1.21/src/vendor/golang.org/x/net/dns/dnsmessage/ya.make +++ b/contrib/go/_std_1.21/src/vendor/golang.org/x/net/dns/dnsmessage/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( message.go ) diff --git a/contrib/go/_std_1.21/src/vendor/golang.org/x/net/http/httpguts/ya.make b/contrib/go/_std_1.21/src/vendor/golang.org/x/net/http/httpguts/ya.make index b473095a2b..ea4f094be0 100644 --- a/contrib/go/_std_1.21/src/vendor/golang.org/x/net/http/httpguts/ya.make +++ b/contrib/go/_std_1.21/src/vendor/golang.org/x/net/http/httpguts/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( guts.go httplex.go diff --git a/contrib/go/_std_1.21/src/vendor/golang.org/x/net/http/httpproxy/ya.make b/contrib/go/_std_1.21/src/vendor/golang.org/x/net/http/httpproxy/ya.make index e82e48f9bb..7389fdbc45 100644 --- a/contrib/go/_std_1.21/src/vendor/golang.org/x/net/http/httpproxy/ya.make +++ b/contrib/go/_std_1.21/src/vendor/golang.org/x/net/http/httpproxy/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( proxy.go ) diff --git a/contrib/go/_std_1.21/src/vendor/golang.org/x/net/http2/hpack/ya.make b/contrib/go/_std_1.21/src/vendor/golang.org/x/net/http2/hpack/ya.make index 46613a8309..d6ae4ef467 100644 --- a/contrib/go/_std_1.21/src/vendor/golang.org/x/net/http2/hpack/ya.make +++ b/contrib/go/_std_1.21/src/vendor/golang.org/x/net/http2/hpack/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( encode.go hpack.go diff --git a/contrib/go/_std_1.21/src/vendor/golang.org/x/net/idna/ya.make b/contrib/go/_std_1.21/src/vendor/golang.org/x/net/idna/ya.make index e3922774b5..00a889c014 100644 --- a/contrib/go/_std_1.21/src/vendor/golang.org/x/net/idna/ya.make +++ b/contrib/go/_std_1.21/src/vendor/golang.org/x/net/idna/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( go118.go idna10.0.0.go diff --git a/contrib/go/_std_1.21/src/vendor/golang.org/x/net/route/ya.make b/contrib/go/_std_1.21/src/vendor/golang.org/x/net/route/ya.make index 3fdaac7dcf..523cb4c7e5 100644 --- a/contrib/go/_std_1.21/src/vendor/golang.org/x/net/route/ya.make +++ b/contrib/go/_std_1.21/src/vendor/golang.org/x/net/route/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE) SRCS( address.go binary.go diff --git a/contrib/go/_std_1.21/src/vendor/golang.org/x/sys/cpu/ya.make b/contrib/go/_std_1.21/src/vendor/golang.org/x/sys/cpu/ya.make index 8d0a42c3ac..b2b8b00853 100644 --- a/contrib/go/_std_1.21/src/vendor/golang.org/x/sys/cpu/ya.make +++ b/contrib/go/_std_1.21/src/vendor/golang.org/x/sys/cpu/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE) SRCS( byteorder.go cpu.go @@ -12,7 +12,7 @@ IF (OS_DARWIN AND ARCH_ARM64) runtime_auxv.go runtime_auxv_go121.go ) -ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +ELSEIF (OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( byteorder.go cpu.go @@ -24,7 +24,7 @@ ELSEIF (OS_DARWIN AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) runtime_auxv.go runtime_auxv_go121.go ) -ELSEIF (OS_LINUX AND ARCH_AARCH64) +ELSEIF (OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE) SRCS( byteorder.go cpu.go @@ -39,7 +39,7 @@ ELSEIF (OS_LINUX AND ARCH_AARCH64) runtime_auxv.go runtime_auxv_go121.go ) -ELSEIF (OS_LINUX AND ARCH_X86_64) +ELSEIF (OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE) SRCS( byteorder.go cpu.go diff --git a/contrib/go/_std_1.21/src/vendor/golang.org/x/text/secure/bidirule/ya.make b/contrib/go/_std_1.21/src/vendor/golang.org/x/text/secure/bidirule/ya.make index 636f27cd11..e6467de2a1 100644 --- a/contrib/go/_std_1.21/src/vendor/golang.org/x/text/secure/bidirule/ya.make +++ b/contrib/go/_std_1.21/src/vendor/golang.org/x/text/secure/bidirule/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( bidirule.go bidirule10.0.0.go diff --git a/contrib/go/_std_1.21/src/vendor/golang.org/x/text/transform/ya.make b/contrib/go/_std_1.21/src/vendor/golang.org/x/text/transform/ya.make index 6185557e16..d884c33501 100644 --- a/contrib/go/_std_1.21/src/vendor/golang.org/x/text/transform/ya.make +++ b/contrib/go/_std_1.21/src/vendor/golang.org/x/text/transform/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( transform.go ) diff --git a/contrib/go/_std_1.21/src/vendor/golang.org/x/text/unicode/bidi/ya.make b/contrib/go/_std_1.21/src/vendor/golang.org/x/text/unicode/bidi/ya.make index 4df969c01c..648a647194 100644 --- a/contrib/go/_std_1.21/src/vendor/golang.org/x/text/unicode/bidi/ya.make +++ b/contrib/go/_std_1.21/src/vendor/golang.org/x/text/unicode/bidi/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( bidi.go bracket.go diff --git a/contrib/go/_std_1.21/src/vendor/golang.org/x/text/unicode/norm/ya.make b/contrib/go/_std_1.21/src/vendor/golang.org/x/text/unicode/norm/ya.make index 25294cdd30..d7b6ec70da 100644 --- a/contrib/go/_std_1.21/src/vendor/golang.org/x/text/unicode/norm/ya.make +++ b/contrib/go/_std_1.21/src/vendor/golang.org/x/text/unicode/norm/ya.make @@ -1,5 +1,5 @@ GO_LIBRARY() -IF (OS_DARWIN AND ARCH_ARM64 OR OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64) +IF (OS_DARWIN AND ARCH_ARM64 AND RACE OR OS_DARWIN AND ARCH_ARM64 AND NOT RACE OR OS_DARWIN AND ARCH_X86_64 AND RACE OR OS_DARWIN AND ARCH_X86_64 AND NOT RACE OR OS_LINUX AND ARCH_AARCH64 AND RACE OR OS_LINUX AND ARCH_AARCH64 AND NOT RACE OR OS_LINUX AND ARCH_X86_64 AND RACE OR OS_LINUX AND ARCH_X86_64 AND NOT RACE OR OS_WINDOWS AND ARCH_X86_64 AND RACE OR OS_WINDOWS AND ARCH_X86_64 AND NOT RACE) SRCS( composition.go forminfo.go |