Build Information
Successful build of Benchmark, reference 1.27.3 (d49096
), with Swift 6.0 for Linux on 6 Nov 2024 14:00:54 UTC.
Swift 6 data race errors: 20
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ordo-one/package-benchmark.git
Reference: 1.27.3
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/ordo-one/package-benchmark
* tag 1.27.3 -> FETCH_HEAD
HEAD is now at d490969 chore: Update .spi.yml (#292)
Cloned https://github.com/ordo-one/package-benchmark.git
Revision (git rev-parse @):
d4909695344b6e1ef88f0a711df6ab8708dd135d
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ordo-one/package-benchmark.git at 1.27.3
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/ordo-one/package-benchmark.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/ordo-one/package-jemalloc
Fetching https://github.com/ordo-one/TextTable
Fetching https://github.com/HdrHistogram/hdrhistogram-swift
Fetching https://github.com/apple/swift-system
Fetching https://github.com/apple/swift-atomics
Fetching https://github.com/apple/swift-argument-parser
[1/203] Fetching texttable
[204/552] Fetching texttable, hdrhistogram-swift
[553/587] Fetching texttable, hdrhistogram-swift, package-jemalloc
[588/2156] Fetching texttable, hdrhistogram-swift, package-jemalloc, swift-atomics
[1232/6057] Fetching texttable, hdrhistogram-swift, package-jemalloc, swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics from cache (0.37s)
[1/12358] Fetching swift-argument-parser
Fetched https://github.com/ordo-one/package-jemalloc from cache (0.71s)
Fetched https://github.com/HdrHistogram/hdrhistogram-swift from cache (0.71s)
Fetched https://github.com/ordo-one/TextTable from cache (0.71s)
Fetched https://github.com/apple/swift-system from cache (0.71s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.71s)
Computing version for https://github.com/ordo-one/package-jemalloc
Computed https://github.com/ordo-one/package-jemalloc at 1.0.0 (0.42s)
Computing version for https://github.com/ordo-one/TextTable
Computed https://github.com/ordo-one/TextTable at 0.0.2 (0.43s)
Computing version for https://github.com/HdrHistogram/hdrhistogram-swift
Computed https://github.com/HdrHistogram/hdrhistogram-swift at 0.1.2 (0.43s)
Fetching https://github.com/apple/swift-numerics
[1/5576] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.37s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (0.43s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.2.0 (0.41s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.4.0 (0.39s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.40s)
Creating working copy for https://github.com/ordo-one/package-jemalloc
Working copy of https://github.com/ordo-one/package-jemalloc resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.2
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-atomics
Working copy of https://github.com/apple/swift-atomics resolved at 1.2.0
Creating working copy for https://github.com/ordo-one/TextTable
Working copy of https://github.com/ordo-one/TextTable resolved at 0.0.2
Creating working copy for https://github.com/HdrHistogram/hdrhistogram-swift
Working copy of https://github.com/HdrHistogram/hdrhistogram-swift resolved at 0.1.2
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.4.0
[1/1] Compiling plugin BenchmarkCommandPlugin
[2/2] Compiling plugin BenchmarkPlugin
[3/3] Compiling plugin GenerateManual
Building for debugging...
[3/41] Write sources
[16/41] Compiling SwiftRuntimeHooks shims.c
[17/41] Compiling _AtomicsShims.c
[18/41] Compiling CSystem shims.c
[19/41] Compiling CLinuxOperatingSystemStats CLinuxOperatingSystemStats.c
[20/41] Compiling _NumericsShims _NumericsShims.c
[21/41] Write swift-version-24593BA9C3E375BF.txt
[23/112] Compiling SystemPackage MachPort.swift
[24/112] Compiling SystemPackage PlatformString.swift
[25/112] Compiling SystemPackage SystemString.swift
[26/115] Compiling SystemPackage Backcompat.swift
[27/115] Compiling SystemPackage CInterop.swift
[28/115] Compiling RealModule Float80+Real.swift
[29/118] Compiling RealModule Float16+Real.swift
[30/118] Compiling RealModule Real.swift
[31/118] Compiling Atomics Primitives.shims.swift
[32/118] Compiling Atomics AtomicInteger.swift
[33/118] Compiling SystemPackage FilePathParsing.swift
[34/118] Compiling RealModule RealFunctions.swift
[35/118] Compiling Atomics ManagedAtomic.swift
[36/118] Compiling Atomics ManagedAtomicLazyReference.swift
[37/118] Compiling Atomics IntegerConformances.swift
[38/118] Compiling Atomics PointerConformances.swift
[39/118] Compiling Atomics Primitives.native.swift
[40/118] Compiling RealModule ElementaryFunctions.swift
[41/118] Compiling SystemPackage Errno.swift
[42/118] Compiling SystemPackage ErrnoWindows.swift
[45/118] Emitting module SystemPackage
[49/118] Compiling Atomics OptionalRawRepresentable.swift
[50/118] Compiling SystemPackage FilePathTempPosix.swift
[51/118] Compiling SystemPackage FilePathTempWindows.swift
[52/118] Compiling Atomics AtomicReference.swift
[53/118] Compiling Atomics AtomicStorage.swift
[54/118] Compiling Atomics AtomicValue.swift
[59/118] Emitting module RealModule
[60/118] Compiling RealModule Float+Real.swift
[61/119] Emitting module ArgumentParserToolInfo
[62/119] Compiling ArgumentParserToolInfo ToolInfo.swift
[63/119] Compiling Atomics IntegerOperations.swift
[64/119] Compiling Atomics Unmanaged extensions.swift
[69/120] Emitting module Atomics
[75/121] Wrapping AST for ArgumentParserToolInfo for debugging
[76/121] Wrapping AST for RealModule for debugging
[77/121] Wrapping AST for Atomics for debugging
[79/122] Compiling SystemPackage Util+StringArray.swift
[80/122] Compiling SystemPackage Util.swift
[81/122] Compiling SystemPackage UtilConsumers.swift
[82/164] Compiling ArgumentParser OptionGroup.swift
[83/164] Compiling ArgumentParser AsyncParsableCommand.swift
[84/164] Compiling ArgumentParser CommandConfiguration.swift
[85/164] Compiling ArgumentParser CommandGroup.swift
[86/164] Compiling ArgumentParser EnumerableFlag.swift
[87/164] Compiling ArgumentParser ExpressibleByArgument.swift
[88/164] Compiling ArgumentParser ParsableArguments.swift
[89/164] Compiling ArgumentParser ParsableArgumentsValidation.swift
[90/164] Compiling ArgumentParser ParsableCommand.swift
[91/164] Compiling ArgumentParser ArgumentDecoder.swift
[92/164] Compiling ArgumentParser ArgumentDefinition.swift
[93/164] Compiling ArgumentParser ArgumentSet.swift
[94/165] Wrapping AST for SystemPackage for debugging
[96/165] Compiling ComplexModule ElementaryFunctions.swift
[97/165] Emitting module ComplexModule
[98/165] Compiling TextTable RstFormat.swift
[99/166] Compiling ArgumentParser BashCompletionsGenerator.swift
[100/166] Compiling ArgumentParser CompletionsGenerator.swift
[101/166] Emitting module TextTable
[102/166] Compiling TextTable SimpleFormat.swift
[103/166] Compiling ArgumentParser Argument.swift
[104/166] Compiling ArgumentParser ArgumentHelp.swift
[105/166] Compiling ArgumentParser ArgumentVisibility.swift
[106/166] Compiling ArgumentParser CompletionKind.swift
[107/166] Compiling ArgumentParser FishCompletionsGenerator.swift
[108/166] Compiling ArgumentParser ZshCompletionsGenerator.swift
[109/166] Compiling TextTable String+Util.swift
[110/166] Emitting module ArgumentParser
[113/171] Compiling ArgumentParser Errors.swift
[114/171] Compiling ArgumentParser Flag.swift
[115/171] Compiling ArgumentParser NameSpecification.swift
[116/171] Compiling ArgumentParser Option.swift
[117/171] Compiling TextTable TextTable.swift
[129/172] Wrapping AST for TextTable for debugging
[131/172] Compiling ArgumentParser Name.swift
[132/172] Compiling ArgumentParser Parsed.swift
[133/172] Compiling ArgumentParser ParsedValues.swift
[134/172] Compiling ArgumentParser ParserError.swift
[135/172] Compiling ArgumentParser SplitArguments.swift
[136/172] Compiling ArgumentParser DumpHelpGenerator.swift
[137/172] Compiling ArgumentParser HelpCommand.swift
[138/172] Compiling ArgumentParser HelpGenerator.swift
[139/172] Compiling ArgumentParser MessageInfo.swift
[140/172] Compiling ArgumentParser UsageGenerator.swift
[141/172] Compiling ArgumentParser CollectionExtensions.swift
[142/172] Compiling ArgumentParser Platform.swift
[143/172] Compiling ArgumentParser SequenceExtensions.swift
[144/172] Compiling ArgumentParser StringExtensions.swift
[145/172] Compiling ArgumentParser Tree.swift
[153/172] Compiling ArgumentParser CommandParser.swift
[154/172] Compiling ArgumentParser InputKey.swift
[155/172] Compiling ArgumentParser InputOrigin.swift
[156/173] Wrapping AST for ArgumentParser for debugging
[158/178] Emitting module BenchmarkBoilerplateGenerator
[159/178] Compiling BenchmarkBoilerplateGenerator BenchmarkBoilerplateGenerator.swift
[160/179] Compiling ComplexModule Complex.swift
[161/179] Compiling ComplexModule Arithmetic.swift
[162/179] Compiling ComplexModule Differentiable.swift
[164/180] Wrapping AST for BenchmarkBoilerplateGenerator for debugging
[165/180] Write Objects.LinkFileList
[166/180] Wrapping AST for ComplexModule for debugging
[168/182] Emitting module Numerics
[169/182] Compiling Numerics Numerics.swift
[171/183] Emitting module BenchmarkHelpGenerator
/host/spi-builder-workspace/Plugins/BenchmarkHelpGenerator/BenchmarkHelpGenerator.swift:54:16: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | @main
53 | struct Benchmark: AsyncParsableCommand {
54 | static var configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | abstract: "Run benchmarks or update, compare or check performance baselines",
56 | usage: """
[172/183] Compiling BenchmarkHelpGenerator Command+Helpers.swift
[173/183] Compiling BenchmarkHelpGenerator BenchmarkHelpGenerator.swift
/host/spi-builder-workspace/Plugins/BenchmarkHelpGenerator/BenchmarkHelpGenerator.swift:54:16: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | @main
53 | struct Benchmark: AsyncParsableCommand {
54 | static var configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | abstract: "Run benchmarks or update, compare or check performance baselines",
56 | usage: """
[173/184] Linking BenchmarkBoilerplateGenerator
[175/184] Wrapping AST for Numerics for debugging
[176/186] Wrapping AST for BenchmarkHelpGenerator for debugging
[177/186] Write Objects.LinkFileList
[178/186] Linking BenchmarkHelpGenerator
[180/186] Emitting module Histogram
[181/186] Compiling Histogram Histogram.swift
[182/187] Wrapping AST for Histogram for debugging
[184/214] Compiling Benchmark NIOLock.swift
[185/214] Compiling Benchmark lock.swift
[186/214] Compiling Benchmark OperatingSystemStats.swift
[187/214] Compiling Benchmark OperatingSystemStatsProducer+Darwin.swift
/host/spi-builder-workspace/Sources/Benchmark/OperatingSystemStats/OperatingSystemStatsProducer+Linux.swift:167:17: warning: capture of 'self' with non-sendable type 'OperatingSystemStatsProducer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | import SystemPackage
17 |
18 | final class OperatingSystemStatsProducer {
| `- note: class 'OperatingSystemStatsProducer' does not conform to the 'Sendable' protocol
19 | var nsPerSchedulerTick: Int
20 | var pageSize: Int
:
165 |
166 | DispatchQueue.global(qos: .userInitiated).async {
167 | self.lock.lock()
| `- warning: capture of 'self' with non-sendable type 'OperatingSystemStatsProducer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | let rate = self.sampleRate
/host/spi-builder-workspace/Sources/Benchmark/Progress/Progress.swift:72:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | let configuration: [ProgressElementType]?
71 |
72 | public static var defaultConfiguration: [ProgressElementType] = [ProgressIndex(), ProgressBarLine(), ProgressTimeEstimates()]
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 | var printer: ProgressBarPrinter
[188/214] Compiling Benchmark OperatingSystemStatsProducer+Linux.swift
/host/spi-builder-workspace/Sources/Benchmark/OperatingSystemStats/OperatingSystemStatsProducer+Linux.swift:167:17: warning: capture of 'self' with non-sendable type 'OperatingSystemStatsProducer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | import SystemPackage
17 |
18 | final class OperatingSystemStatsProducer {
| `- note: class 'OperatingSystemStatsProducer' does not conform to the 'Sendable' protocol
19 | var nsPerSchedulerTick: Int
20 | var pageSize: Int
:
165 |
166 | DispatchQueue.global(qos: .userInitiated).async {
167 | self.lock.lock()
| `- warning: capture of 'self' with non-sendable type 'OperatingSystemStatsProducer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | let rate = self.sampleRate
/host/spi-builder-workspace/Sources/Benchmark/Progress/Progress.swift:72:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | let configuration: [ProgressElementType]?
71 |
72 | public static var defaultConfiguration: [ProgressElementType] = [ProgressIndex(), ProgressBarLine(), ProgressTimeEstimates()]
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 | var printer: ProgressBarPrinter
[189/214] Compiling Benchmark Progress.swift
/host/spi-builder-workspace/Sources/Benchmark/OperatingSystemStats/OperatingSystemStatsProducer+Linux.swift:167:17: warning: capture of 'self' with non-sendable type 'OperatingSystemStatsProducer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | import SystemPackage
17 |
18 | final class OperatingSystemStatsProducer {
| `- note: class 'OperatingSystemStatsProducer' does not conform to the 'Sendable' protocol
19 | var nsPerSchedulerTick: Int
20 | var pageSize: Int
:
165 |
166 | DispatchQueue.global(qos: .userInitiated).async {
167 | self.lock.lock()
| `- warning: capture of 'self' with non-sendable type 'OperatingSystemStatsProducer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |
169 | let rate = self.sampleRate
/host/spi-builder-workspace/Sources/Benchmark/Progress/Progress.swift:72:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | let configuration: [ProgressElementType]?
71 |
72 | public static var defaultConfiguration: [ProgressElementType] = [ProgressIndex(), ProgressBarLine(), ProgressTimeEstimates()]
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 | var printer: ProgressBarPrinter
[190/217] Compiling Benchmark ARCStats.swift
/host/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:19:16: warning: static property 'allocCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | typealias SwiftRuntimeHook = @convention(c) (UnsafeRawPointer?, UnsafeMutableRawPointer?) -> Void
18 |
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'allocCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allocCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allocCount' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
/host/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:20:16: warning: static property 'retainCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'retainCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'retainCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'retainCount' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
22 |
/host/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:21:16: warning: static property 'releaseCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'releaseCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'releaseCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'releaseCount' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | static func hook() {
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:142:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
140 |
141 | /// Hook for setting defaults for a whole benchmark suite
142 | public static var defaultConfiguration: Configuration = .init(metrics: BenchmarkMetric.default,
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | tags: [:],
144 | timeUnits: .automatic,
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:49:23: warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | @_documentation(visibility: internal)
48 | #endif
49 | public static var startupHook: BenchmarkSetupHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'startupHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'startupHook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | #if swift(>=5.8)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:54:23: warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | @_documentation(visibility: internal)
53 | #endif
54 | public static var shutdownHook: BenchmarkTeardownHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shutdownHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shutdownHook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:57:23: warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
57 | public static var setup: BenchmarkSetupHook?
| |- warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'setup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'setup' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:60:23: warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
60 | public static var teardown: BenchmarkTeardownHook?
| |- warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'teardown' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'teardown' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// Set to true if this benchmark results should be compared with an absolute threshold when `--check-absolute` is
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:66:23: warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | /// such comparisons by e.g. reading them in from external storage.
65 | @available(*, deprecated, message: "The checking of absolute thresholds should now be done using `swift package benchmark thresholds`")
66 | public static var checkAbsoluteThresholds = false
| |- warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'checkAbsoluteThresholds' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'checkAbsoluteThresholds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 |
68 | #if swift(>=5.8)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:71:23: warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 | @_documentation(visibility: internal)
70 | #endif
71 | public static var benchmarks: [Benchmark] = [] // Bookkeeping of all registered benchmarks
| |- warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'benchmarks' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'benchmarks' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// The name of the benchmark without any of the tags appended
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:152:16: warning: static property 'testSkipBenchmarkRegistrations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
150 | thresholds: nil)
151 |
152 | static var testSkipBenchmarkRegistrations = false // true in test to avoid bench registration fail
| |- warning: static property 'testSkipBenchmarkRegistrations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testSkipBenchmarkRegistrations' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testSkipBenchmarkRegistrations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
153 | var measurementCompleted = false // Keep track so we skip multiple 'end of measurement'
154 |
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:357:17: warning: capture of 'self' with non-sendable type 'Benchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 |
15 | /// Defines a benchmark
16 | public final class Benchmark: Codable, Hashable { // swiftlint:disable:this type_body_length
| `- note: class 'Benchmark' does not conform to the 'Sendable' protocol
17 | #if swift(>=5.8)
18 | @_documentation(visibility: internal)
:
355 | DispatchQueue.global(qos: .userInitiated).async {
356 | Task {
357 | self._startMeasurement(false)
| `- warning: capture of 'self' with non-sendable type 'Benchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
358 | await asyncClosure(self)
359 | self._stopMeasurement(false)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:358:23: warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
356 | Task {
357 | self._startMeasurement(false)
358 | await asyncClosure(self)
| |- warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
359 | self._stopMeasurement(false)
360 |
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:357:17: warning: capture of 'self' with non-sendable type 'Benchmark' in an isolated closure; this is an error in the Swift 6 language mode
14 |
15 | /// Defines a benchmark
16 | public final class Benchmark: Codable, Hashable { // swiftlint:disable:this type_body_length
| `- note: class 'Benchmark' does not conform to the 'Sendable' protocol
17 | #if swift(>=5.8)
18 | @_documentation(visibility: internal)
:
355 | DispatchQueue.global(qos: .userInitiated).async {
356 | Task {
357 | self._startMeasurement(false)
| `- warning: capture of 'self' with non-sendable type 'Benchmark' in an isolated closure; this is an error in the Swift 6 language mode
358 | await asyncClosure(self)
359 | self._stopMeasurement(false)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:358:23: warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in an isolated closure; this is an error in the Swift 6 language mode
356 | Task {
357 | self._startMeasurement(false)
358 | await asyncClosure(self)
| |- warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
359 | self._stopMeasurement(false)
360 |
[191/217] Compiling Benchmark ARCStatsProducer.swift
/host/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:19:16: warning: static property 'allocCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | typealias SwiftRuntimeHook = @convention(c) (UnsafeRawPointer?, UnsafeMutableRawPointer?) -> Void
18 |
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'allocCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allocCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allocCount' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
/host/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:20:16: warning: static property 'retainCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'retainCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'retainCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'retainCount' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
22 |
/host/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:21:16: warning: static property 'releaseCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'releaseCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'releaseCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'releaseCount' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | static func hook() {
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:142:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
140 |
141 | /// Hook for setting defaults for a whole benchmark suite
142 | public static var defaultConfiguration: Configuration = .init(metrics: BenchmarkMetric.default,
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | tags: [:],
144 | timeUnits: .automatic,
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:49:23: warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | @_documentation(visibility: internal)
48 | #endif
49 | public static var startupHook: BenchmarkSetupHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'startupHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'startupHook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | #if swift(>=5.8)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:54:23: warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | @_documentation(visibility: internal)
53 | #endif
54 | public static var shutdownHook: BenchmarkTeardownHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shutdownHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shutdownHook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:57:23: warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
57 | public static var setup: BenchmarkSetupHook?
| |- warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'setup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'setup' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:60:23: warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
60 | public static var teardown: BenchmarkTeardownHook?
| |- warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'teardown' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'teardown' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// Set to true if this benchmark results should be compared with an absolute threshold when `--check-absolute` is
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:66:23: warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | /// such comparisons by e.g. reading them in from external storage.
65 | @available(*, deprecated, message: "The checking of absolute thresholds should now be done using `swift package benchmark thresholds`")
66 | public static var checkAbsoluteThresholds = false
| |- warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'checkAbsoluteThresholds' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'checkAbsoluteThresholds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 |
68 | #if swift(>=5.8)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:71:23: warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 | @_documentation(visibility: internal)
70 | #endif
71 | public static var benchmarks: [Benchmark] = [] // Bookkeeping of all registered benchmarks
| |- warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'benchmarks' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'benchmarks' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// The name of the benchmark without any of the tags appended
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:152:16: warning: static property 'testSkipBenchmarkRegistrations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
150 | thresholds: nil)
151 |
152 | static var testSkipBenchmarkRegistrations = false // true in test to avoid bench registration fail
| |- warning: static property 'testSkipBenchmarkRegistrations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testSkipBenchmarkRegistrations' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testSkipBenchmarkRegistrations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
153 | var measurementCompleted = false // Keep track so we skip multiple 'end of measurement'
154 |
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:357:17: warning: capture of 'self' with non-sendable type 'Benchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 |
15 | /// Defines a benchmark
16 | public final class Benchmark: Codable, Hashable { // swiftlint:disable:this type_body_length
| `- note: class 'Benchmark' does not conform to the 'Sendable' protocol
17 | #if swift(>=5.8)
18 | @_documentation(visibility: internal)
:
355 | DispatchQueue.global(qos: .userInitiated).async {
356 | Task {
357 | self._startMeasurement(false)
| `- warning: capture of 'self' with non-sendable type 'Benchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
358 | await asyncClosure(self)
359 | self._stopMeasurement(false)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:358:23: warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
356 | Task {
357 | self._startMeasurement(false)
358 | await asyncClosure(self)
| |- warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
359 | self._stopMeasurement(false)
360 |
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:357:17: warning: capture of 'self' with non-sendable type 'Benchmark' in an isolated closure; this is an error in the Swift 6 language mode
14 |
15 | /// Defines a benchmark
16 | public final class Benchmark: Codable, Hashable { // swiftlint:disable:this type_body_length
| `- note: class 'Benchmark' does not conform to the 'Sendable' protocol
17 | #if swift(>=5.8)
18 | @_documentation(visibility: internal)
:
355 | DispatchQueue.global(qos: .userInitiated).async {
356 | Task {
357 | self._startMeasurement(false)
| `- warning: capture of 'self' with non-sendable type 'Benchmark' in an isolated closure; this is an error in the Swift 6 language mode
358 | await asyncClosure(self)
359 | self._stopMeasurement(false)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:358:23: warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in an isolated closure; this is an error in the Swift 6 language mode
356 | Task {
357 | self._startMeasurement(false)
358 | await asyncClosure(self)
| |- warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
359 | self._stopMeasurement(false)
360 |
[192/217] Compiling Benchmark Benchmark+ConvenienceInitializers.swift
/host/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:19:16: warning: static property 'allocCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | typealias SwiftRuntimeHook = @convention(c) (UnsafeRawPointer?, UnsafeMutableRawPointer?) -> Void
18 |
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'allocCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allocCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allocCount' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
/host/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:20:16: warning: static property 'retainCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'retainCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'retainCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'retainCount' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
22 |
/host/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:21:16: warning: static property 'releaseCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'releaseCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'releaseCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'releaseCount' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | static func hook() {
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:142:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
140 |
141 | /// Hook for setting defaults for a whole benchmark suite
142 | public static var defaultConfiguration: Configuration = .init(metrics: BenchmarkMetric.default,
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | tags: [:],
144 | timeUnits: .automatic,
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:49:23: warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | @_documentation(visibility: internal)
48 | #endif
49 | public static var startupHook: BenchmarkSetupHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'startupHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'startupHook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | #if swift(>=5.8)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:54:23: warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | @_documentation(visibility: internal)
53 | #endif
54 | public static var shutdownHook: BenchmarkTeardownHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shutdownHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shutdownHook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:57:23: warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
57 | public static var setup: BenchmarkSetupHook?
| |- warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'setup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'setup' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:60:23: warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
60 | public static var teardown: BenchmarkTeardownHook?
| |- warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'teardown' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'teardown' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// Set to true if this benchmark results should be compared with an absolute threshold when `--check-absolute` is
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:66:23: warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | /// such comparisons by e.g. reading them in from external storage.
65 | @available(*, deprecated, message: "The checking of absolute thresholds should now be done using `swift package benchmark thresholds`")
66 | public static var checkAbsoluteThresholds = false
| |- warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'checkAbsoluteThresholds' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'checkAbsoluteThresholds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 |
68 | #if swift(>=5.8)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:71:23: warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 | @_documentation(visibility: internal)
70 | #endif
71 | public static var benchmarks: [Benchmark] = [] // Bookkeeping of all registered benchmarks
| |- warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'benchmarks' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'benchmarks' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// The name of the benchmark without any of the tags appended
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:152:16: warning: static property 'testSkipBenchmarkRegistrations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
150 | thresholds: nil)
151 |
152 | static var testSkipBenchmarkRegistrations = false // true in test to avoid bench registration fail
| |- warning: static property 'testSkipBenchmarkRegistrations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testSkipBenchmarkRegistrations' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testSkipBenchmarkRegistrations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
153 | var measurementCompleted = false // Keep track so we skip multiple 'end of measurement'
154 |
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:357:17: warning: capture of 'self' with non-sendable type 'Benchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 |
15 | /// Defines a benchmark
16 | public final class Benchmark: Codable, Hashable { // swiftlint:disable:this type_body_length
| `- note: class 'Benchmark' does not conform to the 'Sendable' protocol
17 | #if swift(>=5.8)
18 | @_documentation(visibility: internal)
:
355 | DispatchQueue.global(qos: .userInitiated).async {
356 | Task {
357 | self._startMeasurement(false)
| `- warning: capture of 'self' with non-sendable type 'Benchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
358 | await asyncClosure(self)
359 | self._stopMeasurement(false)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:358:23: warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
356 | Task {
357 | self._startMeasurement(false)
358 | await asyncClosure(self)
| |- warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
359 | self._stopMeasurement(false)
360 |
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:357:17: warning: capture of 'self' with non-sendable type 'Benchmark' in an isolated closure; this is an error in the Swift 6 language mode
14 |
15 | /// Defines a benchmark
16 | public final class Benchmark: Codable, Hashable { // swiftlint:disable:this type_body_length
| `- note: class 'Benchmark' does not conform to the 'Sendable' protocol
17 | #if swift(>=5.8)
18 | @_documentation(visibility: internal)
:
355 | DispatchQueue.global(qos: .userInitiated).async {
356 | Task {
357 | self._startMeasurement(false)
| `- warning: capture of 'self' with non-sendable type 'Benchmark' in an isolated closure; this is an error in the Swift 6 language mode
358 | await asyncClosure(self)
359 | self._stopMeasurement(false)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:358:23: warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in an isolated closure; this is an error in the Swift 6 language mode
356 | Task {
357 | self._startMeasurement(false)
358 | await asyncClosure(self)
| |- warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
359 | self._stopMeasurement(false)
360 |
[193/217] Compiling Benchmark Benchmark.swift
/host/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:19:16: warning: static property 'allocCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | typealias SwiftRuntimeHook = @convention(c) (UnsafeRawPointer?, UnsafeMutableRawPointer?) -> Void
18 |
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'allocCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allocCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allocCount' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
/host/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:20:16: warning: static property 'retainCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'retainCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'retainCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'retainCount' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
22 |
/host/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:21:16: warning: static property 'releaseCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'releaseCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'releaseCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'releaseCount' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | static func hook() {
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:142:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
140 |
141 | /// Hook for setting defaults for a whole benchmark suite
142 | public static var defaultConfiguration: Configuration = .init(metrics: BenchmarkMetric.default,
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | tags: [:],
144 | timeUnits: .automatic,
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:49:23: warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | @_documentation(visibility: internal)
48 | #endif
49 | public static var startupHook: BenchmarkSetupHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'startupHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'startupHook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | #if swift(>=5.8)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:54:23: warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | @_documentation(visibility: internal)
53 | #endif
54 | public static var shutdownHook: BenchmarkTeardownHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shutdownHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shutdownHook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:57:23: warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
57 | public static var setup: BenchmarkSetupHook?
| |- warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'setup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'setup' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:60:23: warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
60 | public static var teardown: BenchmarkTeardownHook?
| |- warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'teardown' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'teardown' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// Set to true if this benchmark results should be compared with an absolute threshold when `--check-absolute` is
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:66:23: warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | /// such comparisons by e.g. reading them in from external storage.
65 | @available(*, deprecated, message: "The checking of absolute thresholds should now be done using `swift package benchmark thresholds`")
66 | public static var checkAbsoluteThresholds = false
| |- warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'checkAbsoluteThresholds' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'checkAbsoluteThresholds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 |
68 | #if swift(>=5.8)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:71:23: warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 | @_documentation(visibility: internal)
70 | #endif
71 | public static var benchmarks: [Benchmark] = [] // Bookkeeping of all registered benchmarks
| |- warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'benchmarks' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'benchmarks' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// The name of the benchmark without any of the tags appended
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:152:16: warning: static property 'testSkipBenchmarkRegistrations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
150 | thresholds: nil)
151 |
152 | static var testSkipBenchmarkRegistrations = false // true in test to avoid bench registration fail
| |- warning: static property 'testSkipBenchmarkRegistrations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testSkipBenchmarkRegistrations' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testSkipBenchmarkRegistrations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
153 | var measurementCompleted = false // Keep track so we skip multiple 'end of measurement'
154 |
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:357:17: warning: capture of 'self' with non-sendable type 'Benchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 |
15 | /// Defines a benchmark
16 | public final class Benchmark: Codable, Hashable { // swiftlint:disable:this type_body_length
| `- note: class 'Benchmark' does not conform to the 'Sendable' protocol
17 | #if swift(>=5.8)
18 | @_documentation(visibility: internal)
:
355 | DispatchQueue.global(qos: .userInitiated).async {
356 | Task {
357 | self._startMeasurement(false)
| `- warning: capture of 'self' with non-sendable type 'Benchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
358 | await asyncClosure(self)
359 | self._stopMeasurement(false)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:358:23: warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
356 | Task {
357 | self._startMeasurement(false)
358 | await asyncClosure(self)
| |- warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
359 | self._stopMeasurement(false)
360 |
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:357:17: warning: capture of 'self' with non-sendable type 'Benchmark' in an isolated closure; this is an error in the Swift 6 language mode
14 |
15 | /// Defines a benchmark
16 | public final class Benchmark: Codable, Hashable { // swiftlint:disable:this type_body_length
| `- note: class 'Benchmark' does not conform to the 'Sendable' protocol
17 | #if swift(>=5.8)
18 | @_documentation(visibility: internal)
:
355 | DispatchQueue.global(qos: .userInitiated).async {
356 | Task {
357 | self._startMeasurement(false)
| `- warning: capture of 'self' with non-sendable type 'Benchmark' in an isolated closure; this is an error in the Swift 6 language mode
358 | await asyncClosure(self)
359 | self._stopMeasurement(false)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:358:23: warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in an isolated closure; this is an error in the Swift 6 language mode
356 | Task {
357 | self._startMeasurement(false)
358 | await asyncClosure(self)
| |- warning: capture of 'asyncClosure' with non-sendable type 'Benchmark.BenchmarkAsyncClosure' (aka '(Benchmark) async -> ()') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
359 | self._stopMeasurement(false)
360 |
[194/217] Emitting module Benchmark
/host/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:19:16: warning: static property 'allocCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | typealias SwiftRuntimeHook = @convention(c) (UnsafeRawPointer?, UnsafeMutableRawPointer?) -> Void
18 |
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'allocCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allocCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allocCount' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
/host/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:20:16: warning: static property 'retainCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'retainCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'retainCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'retainCount' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
22 |
/host/spi-builder-workspace/Sources/Benchmark/ARCStats/ARCStatsProducer.swift:21:16: warning: static property 'releaseCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | static var allocCount: UnsafeAtomic<Int> = .create(0)
20 | static var retainCount: UnsafeAtomic<Int> = .create(0)
21 | static var releaseCount: UnsafeAtomic<Int> = .create(0)
| |- warning: static property 'releaseCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'releaseCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'releaseCount' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | static func hook() {
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:142:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
140 |
141 | /// Hook for setting defaults for a whole benchmark suite
142 | public static var defaultConfiguration: Configuration = .init(metrics: BenchmarkMetric.default,
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | tags: [:],
144 | timeUnits: .automatic,
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:49:23: warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | @_documentation(visibility: internal)
48 | #endif
49 | public static var startupHook: BenchmarkSetupHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'startupHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'startupHook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | #if swift(>=5.8)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:54:23: warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | @_documentation(visibility: internal)
53 | #endif
54 | public static var shutdownHook: BenchmarkTeardownHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shutdownHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shutdownHook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:57:23: warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
57 | public static var setup: BenchmarkSetupHook?
| |- warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'setup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'setup' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:60:23: warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
60 | public static var teardown: BenchmarkTeardownHook?
| |- warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'teardown' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'teardown' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// Set to true if this benchmark results should be compared with an absolute threshold when `--check-absolute` is
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:66:23: warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | /// such comparisons by e.g. reading them in from external storage.
65 | @available(*, deprecated, message: "The checking of absolute thresholds should now be done using `swift package benchmark thresholds`")
66 | public static var checkAbsoluteThresholds = false
| |- warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'checkAbsoluteThresholds' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'checkAbsoluteThresholds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 |
68 | #if swift(>=5.8)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:71:23: warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 | @_documentation(visibility: internal)
70 | #endif
71 | public static var benchmarks: [Benchmark] = [] // Bookkeeping of all registered benchmarks
| |- warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'benchmarks' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'benchmarks' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// The name of the benchmark without any of the tags appended
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:152:16: warning: static property 'testSkipBenchmarkRegistrations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
150 | thresholds: nil)
151 |
152 | static var testSkipBenchmarkRegistrations = false // true in test to avoid bench registration fail
| |- warning: static property 'testSkipBenchmarkRegistrations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testSkipBenchmarkRegistrations' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testSkipBenchmarkRegistrations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
153 | var measurementCompleted = false // Keep track so we skip multiple 'end of measurement'
154 |
/host/spi-builder-workspace/Sources/Benchmark/BenchmarkRunner.swift:44:16: warning: static property 'testReadWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | /// Internal type that will be hidden from documentation when upgrading doc generation to Swift 5.8+
43 | public struct BenchmarkRunner: AsyncParsableCommand, BenchmarkRunnerReadWrite {
44 | static var testReadWrite: BenchmarkRunnerReadWrite?
| |- warning: static property 'testReadWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testReadWrite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testReadWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | public init() {}
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:27:20: warning: static property 'threadCacheMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | // Basically just set up a number of cached MIB structures for
26 | // more efficient queries later of malloc statistics.
27 | static var threadCacheMIB = setupMIB(name: "thread.tcache.flush")
| |- warning: static property 'threadCacheMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'threadCacheMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'threadCacheMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | static var epochMIB = setupMIB(name: "epoch")
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:28:20: warning: static property 'epochMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | // more efficient queries later of malloc statistics.
27 | static var threadCacheMIB = setupMIB(name: "thread.tcache.flush")
28 | static var epochMIB = setupMIB(name: "epoch")
| |- warning: static property 'epochMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'epochMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'epochMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
30 | static var smallNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nrequests")
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:29:20: warning: static property 'totalAllocatedMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | static var threadCacheMIB = setupMIB(name: "thread.tcache.flush")
28 | static var epochMIB = setupMIB(name: "epoch")
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
| |- warning: static property 'totalAllocatedMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'totalAllocatedMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'totalAllocatedMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | static var smallNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nrequests")
31 | static var largeNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).large.nrequests")
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:30:20: warning: static property 'smallNRequestsMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | static var epochMIB = setupMIB(name: "epoch")
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
30 | static var smallNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nrequests")
| |- warning: static property 'smallNRequestsMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'smallNRequestsMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'smallNRequestsMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var largeNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).large.nrequests")
32 | // var smallNMallocMIB = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nmalloc")
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:31:20: warning: static property 'largeNRequestsMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
30 | static var smallNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nrequests")
31 | static var largeNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).large.nrequests")
| |- warning: static property 'largeNRequestsMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'largeNRequestsMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'largeNRequestsMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | // var smallNMallocMIB = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nmalloc")
33 | // var largeNMallocMIB = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).large.nmalloc")
/host/spi-builder-workspace/Sources/Benchmark/Progress/Progress.swift:72:23: warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | let configuration: [ProgressElementType]?
71 |
72 | public static var defaultConfiguration: [ProgressElementType] = [ProgressIndex(), ProgressBarLine(), ProgressTimeEstimates()]
| |- warning: static property 'defaultConfiguration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultConfiguration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 | var printer: ProgressBarPrinter
[195/217] Compiling Benchmark ProgressElements.swift
[196/217] Compiling Benchmark Utilities.swift
[197/217] Compiling Benchmark Statistics.swift
[198/217] Compiling Benchmark BenchmarkRunner.swift
/host/spi-builder-workspace/Sources/Benchmark/BenchmarkRunner.swift:44:16: warning: static property 'testReadWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | /// Internal type that will be hidden from documentation when upgrading doc generation to Swift 5.8+
43 | public struct BenchmarkRunner: AsyncParsableCommand, BenchmarkRunnerReadWrite {
44 | static var testReadWrite: BenchmarkRunnerReadWrite?
| |- warning: static property 'testReadWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testReadWrite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testReadWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | public init() {}
/host/spi-builder-workspace/Sources/Benchmark/BenchmarkRunner.swift:90:23: warning: 'checkAbsoluteThresholds' is deprecated: The checking of absolute thresholds should now be done using `swift package benchmark thresholds`
88 | do {
89 | var command = Self.parseOrExit()
90 | Benchmark.checkAbsoluteThresholds = command.checkAbsolute
| `- warning: 'checkAbsoluteThresholds' is deprecated: The checking of absolute thresholds should now be done using `swift package benchmark thresholds`
91 | registerBenchmarks()
92 | try await command.run()
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:66:23: warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | /// such comparisons by e.g. reading them in from external storage.
65 | @available(*, deprecated, message: "The checking of absolute thresholds should now be done using `swift package benchmark thresholds`")
66 | public static var checkAbsoluteThresholds = false
| |- warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'checkAbsoluteThresholds' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'checkAbsoluteThresholds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 |
68 | #if swift(>=5.8)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:49:23: warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | @_documentation(visibility: internal)
48 | #endif
49 | public static var startupHook: BenchmarkSetupHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'startupHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'startupHook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | #if swift(>=5.8)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:57:23: warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
57 | public static var setup: BenchmarkSetupHook?
| |- warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'setup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'setup' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:54:23: warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | @_documentation(visibility: internal)
53 | #endif
54 | public static var shutdownHook: BenchmarkTeardownHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shutdownHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shutdownHook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:60:23: warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
60 | public static var teardown: BenchmarkTeardownHook?
| |- warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'teardown' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'teardown' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// Set to true if this benchmark results should be compared with an absolute threshold when `--check-absolute` is
/host/spi-builder-workspace/Sources/Benchmark/BenchmarkRunner.swift:101:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
99 | public mutating func run() async throws {
100 | // Flush stdout so we see any failures clearly
101 | setbuf(stdout, nil)
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
102 |
103 | // We just run everything in debug mode to simplify workflow with debuggers/profilers
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:71:23: warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 | @_documentation(visibility: internal)
70 | #endif
71 | public static var benchmarks: [Benchmark] = [] // Bookkeeping of all registered benchmarks
| |- warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'benchmarks' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'benchmarks' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// The name of the benchmark without any of the tags appended
[199/217] Compiling Benchmark BenchmarkThresholds+Defaults.swift
/host/spi-builder-workspace/Sources/Benchmark/BenchmarkRunner.swift:44:16: warning: static property 'testReadWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | /// Internal type that will be hidden from documentation when upgrading doc generation to Swift 5.8+
43 | public struct BenchmarkRunner: AsyncParsableCommand, BenchmarkRunnerReadWrite {
44 | static var testReadWrite: BenchmarkRunnerReadWrite?
| |- warning: static property 'testReadWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testReadWrite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testReadWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | public init() {}
/host/spi-builder-workspace/Sources/Benchmark/BenchmarkRunner.swift:90:23: warning: 'checkAbsoluteThresholds' is deprecated: The checking of absolute thresholds should now be done using `swift package benchmark thresholds`
88 | do {
89 | var command = Self.parseOrExit()
90 | Benchmark.checkAbsoluteThresholds = command.checkAbsolute
| `- warning: 'checkAbsoluteThresholds' is deprecated: The checking of absolute thresholds should now be done using `swift package benchmark thresholds`
91 | registerBenchmarks()
92 | try await command.run()
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:66:23: warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | /// such comparisons by e.g. reading them in from external storage.
65 | @available(*, deprecated, message: "The checking of absolute thresholds should now be done using `swift package benchmark thresholds`")
66 | public static var checkAbsoluteThresholds = false
| |- warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'checkAbsoluteThresholds' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'checkAbsoluteThresholds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 |
68 | #if swift(>=5.8)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:49:23: warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | @_documentation(visibility: internal)
48 | #endif
49 | public static var startupHook: BenchmarkSetupHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'startupHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'startupHook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | #if swift(>=5.8)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:57:23: warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
57 | public static var setup: BenchmarkSetupHook?
| |- warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'setup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'setup' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:54:23: warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | @_documentation(visibility: internal)
53 | #endif
54 | public static var shutdownHook: BenchmarkTeardownHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shutdownHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shutdownHook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:60:23: warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
60 | public static var teardown: BenchmarkTeardownHook?
| |- warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'teardown' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'teardown' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// Set to true if this benchmark results should be compared with an absolute threshold when `--check-absolute` is
/host/spi-builder-workspace/Sources/Benchmark/BenchmarkRunner.swift:101:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
99 | public mutating func run() async throws {
100 | // Flush stdout so we see any failures clearly
101 | setbuf(stdout, nil)
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
102 |
103 | // We just run everything in debug mode to simplify workflow with debuggers/profilers
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:71:23: warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 | @_documentation(visibility: internal)
70 | #endif
71 | public static var benchmarks: [Benchmark] = [] // Bookkeeping of all registered benchmarks
| |- warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'benchmarks' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'benchmarks' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// The name of the benchmark without any of the tags appended
[200/217] Compiling Benchmark BenchmarkThresholds.swift
/host/spi-builder-workspace/Sources/Benchmark/BenchmarkRunner.swift:44:16: warning: static property 'testReadWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | /// Internal type that will be hidden from documentation when upgrading doc generation to Swift 5.8+
43 | public struct BenchmarkRunner: AsyncParsableCommand, BenchmarkRunnerReadWrite {
44 | static var testReadWrite: BenchmarkRunnerReadWrite?
| |- warning: static property 'testReadWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testReadWrite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testReadWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | public init() {}
/host/spi-builder-workspace/Sources/Benchmark/BenchmarkRunner.swift:90:23: warning: 'checkAbsoluteThresholds' is deprecated: The checking of absolute thresholds should now be done using `swift package benchmark thresholds`
88 | do {
89 | var command = Self.parseOrExit()
90 | Benchmark.checkAbsoluteThresholds = command.checkAbsolute
| `- warning: 'checkAbsoluteThresholds' is deprecated: The checking of absolute thresholds should now be done using `swift package benchmark thresholds`
91 | registerBenchmarks()
92 | try await command.run()
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:66:23: warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | /// such comparisons by e.g. reading them in from external storage.
65 | @available(*, deprecated, message: "The checking of absolute thresholds should now be done using `swift package benchmark thresholds`")
66 | public static var checkAbsoluteThresholds = false
| |- warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'checkAbsoluteThresholds' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'checkAbsoluteThresholds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 |
68 | #if swift(>=5.8)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:49:23: warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | @_documentation(visibility: internal)
48 | #endif
49 | public static var startupHook: BenchmarkSetupHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'startupHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'startupHook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | #if swift(>=5.8)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:57:23: warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
57 | public static var setup: BenchmarkSetupHook?
| |- warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'setup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'setup' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:54:23: warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | @_documentation(visibility: internal)
53 | #endif
54 | public static var shutdownHook: BenchmarkTeardownHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shutdownHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shutdownHook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:60:23: warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
60 | public static var teardown: BenchmarkTeardownHook?
| |- warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'teardown' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'teardown' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// Set to true if this benchmark results should be compared with an absolute threshold when `--check-absolute` is
/host/spi-builder-workspace/Sources/Benchmark/BenchmarkRunner.swift:101:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
99 | public mutating func run() async throws {
100 | // Flush stdout so we see any failures clearly
101 | setbuf(stdout, nil)
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
102 |
103 | // We just run everything in debug mode to simplify workflow with debuggers/profilers
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:71:23: warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 | @_documentation(visibility: internal)
70 | #endif
71 | public static var benchmarks: [Benchmark] = [] // Bookkeeping of all registered benchmarks
| |- warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'benchmarks' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'benchmarks' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// The name of the benchmark without any of the tags appended
[201/217] Compiling Benchmark Blackhole.swift
/host/spi-builder-workspace/Sources/Benchmark/BenchmarkRunner.swift:44:16: warning: static property 'testReadWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | /// Internal type that will be hidden from documentation when upgrading doc generation to Swift 5.8+
43 | public struct BenchmarkRunner: AsyncParsableCommand, BenchmarkRunnerReadWrite {
44 | static var testReadWrite: BenchmarkRunnerReadWrite?
| |- warning: static property 'testReadWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testReadWrite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testReadWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | public init() {}
/host/spi-builder-workspace/Sources/Benchmark/BenchmarkRunner.swift:90:23: warning: 'checkAbsoluteThresholds' is deprecated: The checking of absolute thresholds should now be done using `swift package benchmark thresholds`
88 | do {
89 | var command = Self.parseOrExit()
90 | Benchmark.checkAbsoluteThresholds = command.checkAbsolute
| `- warning: 'checkAbsoluteThresholds' is deprecated: The checking of absolute thresholds should now be done using `swift package benchmark thresholds`
91 | registerBenchmarks()
92 | try await command.run()
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:66:23: warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | /// such comparisons by e.g. reading them in from external storage.
65 | @available(*, deprecated, message: "The checking of absolute thresholds should now be done using `swift package benchmark thresholds`")
66 | public static var checkAbsoluteThresholds = false
| |- warning: static property 'checkAbsoluteThresholds' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'checkAbsoluteThresholds' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'checkAbsoluteThresholds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 |
68 | #if swift(>=5.8)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:49:23: warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 | @_documentation(visibility: internal)
48 | #endif
49 | public static var startupHook: BenchmarkSetupHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'startupHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'startupHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'startupHook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | #if swift(>=5.8)
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:57:23: warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
57 | public static var setup: BenchmarkSetupHook?
| |- warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'setup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'setup' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:54:23: warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | @_documentation(visibility: internal)
53 | #endif
54 | public static var shutdownHook: BenchmarkTeardownHook? // Should be removed when going to 2.0, just kept for API compatiblity
| |- warning: static property 'shutdownHook' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shutdownHook' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shutdownHook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | /// This closure if set, will be run before a targets benchmarks are run, but after they are registered
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:60:23: warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// This closure if set, will be run after a targets benchmarks run, but after they are registered
60 | public static var teardown: BenchmarkTeardownHook?
| |- warning: static property 'teardown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'teardown' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'teardown' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// Set to true if this benchmark results should be compared with an absolute threshold when `--check-absolute` is
/host/spi-builder-workspace/Sources/Benchmark/BenchmarkRunner.swift:101:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
99 | public mutating func run() async throws {
100 | // Flush stdout so we see any failures clearly
101 | setbuf(stdout, nil)
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
102 |
103 | // We just run everything in debug mode to simplify workflow with debuggers/profilers
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/Benchmark/Benchmark.swift:71:23: warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 | @_documentation(visibility: internal)
70 | #endif
71 | public static var benchmarks: [Benchmark] = [] // Bookkeeping of all registered benchmarks
| |- warning: static property 'benchmarks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'benchmarks' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'benchmarks' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// The name of the benchmark without any of the tags appended
[202/217] Compiling Benchmark BenchmarkMetric+Defaults.swift
[203/217] Compiling Benchmark BenchmarkMetric.swift
[204/217] Compiling Benchmark BenchmarkResult.swift
[205/217] Compiling Benchmark BenchmarkRunner+ReadWrite.swift
[206/217] Compiling Benchmark BenchmarkClock.swift
[207/217] Compiling Benchmark BenchmarkExecutor+Extensions.swift
[208/217] Compiling Benchmark BenchmarkExecutor.swift
[209/217] Compiling Benchmark BenchmarkInternals.swift
[210/217] Compiling Benchmark Int+Extensions.swift
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:27:20: warning: static property 'threadCacheMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | // Basically just set up a number of cached MIB structures for
26 | // more efficient queries later of malloc statistics.
27 | static var threadCacheMIB = setupMIB(name: "thread.tcache.flush")
| |- warning: static property 'threadCacheMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'threadCacheMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'threadCacheMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | static var epochMIB = setupMIB(name: "epoch")
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:28:20: warning: static property 'epochMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | // more efficient queries later of malloc statistics.
27 | static var threadCacheMIB = setupMIB(name: "thread.tcache.flush")
28 | static var epochMIB = setupMIB(name: "epoch")
| |- warning: static property 'epochMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'epochMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'epochMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
30 | static var smallNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nrequests")
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:29:20: warning: static property 'totalAllocatedMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | static var threadCacheMIB = setupMIB(name: "thread.tcache.flush")
28 | static var epochMIB = setupMIB(name: "epoch")
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
| |- warning: static property 'totalAllocatedMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'totalAllocatedMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'totalAllocatedMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | static var smallNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nrequests")
31 | static var largeNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).large.nrequests")
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:30:20: warning: static property 'smallNRequestsMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | static var epochMIB = setupMIB(name: "epoch")
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
30 | static var smallNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nrequests")
| |- warning: static property 'smallNRequestsMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'smallNRequestsMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'smallNRequestsMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var largeNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).large.nrequests")
32 | // var smallNMallocMIB = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nmalloc")
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:31:20: warning: static property 'largeNRequestsMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
30 | static var smallNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nrequests")
31 | static var largeNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).large.nrequests")
| |- warning: static property 'largeNRequestsMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'largeNRequestsMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'largeNRequestsMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | // var smallNMallocMIB = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nmalloc")
33 | // var largeNMallocMIB = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).large.nmalloc")
[211/217] Compiling Benchmark MallocStats+jemalloc-support.swift
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:27:20: warning: static property 'threadCacheMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | // Basically just set up a number of cached MIB structures for
26 | // more efficient queries later of malloc statistics.
27 | static var threadCacheMIB = setupMIB(name: "thread.tcache.flush")
| |- warning: static property 'threadCacheMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'threadCacheMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'threadCacheMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | static var epochMIB = setupMIB(name: "epoch")
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:28:20: warning: static property 'epochMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | // more efficient queries later of malloc statistics.
27 | static var threadCacheMIB = setupMIB(name: "thread.tcache.flush")
28 | static var epochMIB = setupMIB(name: "epoch")
| |- warning: static property 'epochMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'epochMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'epochMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
30 | static var smallNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nrequests")
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:29:20: warning: static property 'totalAllocatedMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | static var threadCacheMIB = setupMIB(name: "thread.tcache.flush")
28 | static var epochMIB = setupMIB(name: "epoch")
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
| |- warning: static property 'totalAllocatedMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'totalAllocatedMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'totalAllocatedMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | static var smallNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nrequests")
31 | static var largeNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).large.nrequests")
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:30:20: warning: static property 'smallNRequestsMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | static var epochMIB = setupMIB(name: "epoch")
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
30 | static var smallNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nrequests")
| |- warning: static property 'smallNRequestsMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'smallNRequestsMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'smallNRequestsMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var largeNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).large.nrequests")
32 | // var smallNMallocMIB = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nmalloc")
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:31:20: warning: static property 'largeNRequestsMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
30 | static var smallNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nrequests")
31 | static var largeNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).large.nrequests")
| |- warning: static property 'largeNRequestsMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'largeNRequestsMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'largeNRequestsMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | // var smallNMallocMIB = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nmalloc")
33 | // var largeNMallocMIB = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).large.nmalloc")
[212/217] Compiling Benchmark MallocStats.swift
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:27:20: warning: static property 'threadCacheMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | // Basically just set up a number of cached MIB structures for
26 | // more efficient queries later of malloc statistics.
27 | static var threadCacheMIB = setupMIB(name: "thread.tcache.flush")
| |- warning: static property 'threadCacheMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'threadCacheMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'threadCacheMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | static var epochMIB = setupMIB(name: "epoch")
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:28:20: warning: static property 'epochMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | // more efficient queries later of malloc statistics.
27 | static var threadCacheMIB = setupMIB(name: "thread.tcache.flush")
28 | static var epochMIB = setupMIB(name: "epoch")
| |- warning: static property 'epochMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'epochMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'epochMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
30 | static var smallNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nrequests")
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:29:20: warning: static property 'totalAllocatedMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | static var threadCacheMIB = setupMIB(name: "thread.tcache.flush")
28 | static var epochMIB = setupMIB(name: "epoch")
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
| |- warning: static property 'totalAllocatedMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'totalAllocatedMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'totalAllocatedMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | static var smallNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nrequests")
31 | static var largeNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).large.nrequests")
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:30:20: warning: static property 'smallNRequestsMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | static var epochMIB = setupMIB(name: "epoch")
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
30 | static var smallNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nrequests")
| |- warning: static property 'smallNRequestsMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'smallNRequestsMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'smallNRequestsMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var largeNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).large.nrequests")
32 | // var smallNMallocMIB = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nmalloc")
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:31:20: warning: static property 'largeNRequestsMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
30 | static var smallNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nrequests")
31 | static var largeNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).large.nrequests")
| |- warning: static property 'largeNRequestsMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'largeNRequestsMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'largeNRequestsMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | // var smallNMallocMIB = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nmalloc")
33 | // var largeNMallocMIB = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).large.nmalloc")
[213/217] Compiling Benchmark MallocStatsProducer+jemalloc.swift
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:27:20: warning: static property 'threadCacheMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | // Basically just set up a number of cached MIB structures for
26 | // more efficient queries later of malloc statistics.
27 | static var threadCacheMIB = setupMIB(name: "thread.tcache.flush")
| |- warning: static property 'threadCacheMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'threadCacheMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'threadCacheMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | static var epochMIB = setupMIB(name: "epoch")
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:28:20: warning: static property 'epochMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | // more efficient queries later of malloc statistics.
27 | static var threadCacheMIB = setupMIB(name: "thread.tcache.flush")
28 | static var epochMIB = setupMIB(name: "epoch")
| |- warning: static property 'epochMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'epochMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'epochMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
30 | static var smallNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nrequests")
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:29:20: warning: static property 'totalAllocatedMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | static var threadCacheMIB = setupMIB(name: "thread.tcache.flush")
28 | static var epochMIB = setupMIB(name: "epoch")
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
| |- warning: static property 'totalAllocatedMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'totalAllocatedMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'totalAllocatedMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | static var smallNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nrequests")
31 | static var largeNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).large.nrequests")
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:30:20: warning: static property 'smallNRequestsMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | static var epochMIB = setupMIB(name: "epoch")
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
30 | static var smallNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nrequests")
| |- warning: static property 'smallNRequestsMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'smallNRequestsMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'smallNRequestsMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static var largeNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).large.nrequests")
32 | // var smallNMallocMIB = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nmalloc")
/host/spi-builder-workspace/Sources/Benchmark/MallocStats/MallocStatsProducer+jemalloc.swift:31:20: warning: static property 'largeNRequestsMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | static var totalAllocatedMIB: [size_t] = setupMIB(name: "stats.resident")
30 | static var smallNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nrequests")
31 | static var largeNRequestsMIB: [size_t] = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).large.nrequests")
| |- warning: static property 'largeNRequestsMIB' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'largeNRequestsMIB' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'largeNRequestsMIB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | // var smallNMallocMIB = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).small.nmalloc")
33 | // var largeNMallocMIB = setupMIB(name: "stats.arenas.\(MALLCTL_ARENAS_ALL).large.nmalloc")
[214/218] Wrapping AST for Benchmark for debugging
[216/234] Compiling BenchmarkTool Command+Helpers.swift
[217/234] Compiling BenchmarkTool FilePath+Additions.swift
[218/234] Compiling BenchmarkTool BenchmarkTool+Machine.swift
/host/spi-builder-workspace/Plugins/BenchmarkTool/BenchmarkTool+Operations.swift:89:17: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
87 | mutating func postProcessBenchmarkResults() throws {
88 | // Turn on buffering again for output
89 | setvbuf(stdout, nil, _IOFBF, Int(BUFSIZ))
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | switch command {
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[219/234] Compiling BenchmarkTool BenchmarkTool+Operations.swift
/host/spi-builder-workspace/Plugins/BenchmarkTool/BenchmarkTool+Operations.swift:89:17: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
87 | mutating func postProcessBenchmarkResults() throws {
88 | // Turn on buffering again for output
89 | setvbuf(stdout, nil, _IOFBF, Int(BUFSIZ))
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | switch command {
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[220/234] Emitting module BenchmarkTool
/host/spi-builder-workspace/Plugins/BenchmarkTool/BenchmarkTool.swift:38:1: warning: extension declares a conformance of imported type 'BenchmarkMetric' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'Benchmark' introduce this conformance in the future
36 | extension BaselineOperation: ExpressibleByArgument {}
37 | extension ThresholdsOperation: ExpressibleByArgument {}
38 | extension BenchmarkMetric: ExpressibleByArgument {}
| |- warning: extension declares a conformance of imported type 'BenchmarkMetric' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'Benchmark' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
39 |
40 | typealias BenchmarkResults = [BenchmarkIdentifier: [BenchmarkResult]]
/host/spi-builder-workspace/Plugins/BenchmarkTool/BenchmarkTool.swift:42:17: warning: var 'failedBenchmarkRuns' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 | typealias BenchmarkResults = [BenchmarkIdentifier: [BenchmarkResult]]
41 |
42 | fileprivate var failedBenchmarkRuns = 0
| |- warning: var 'failedBenchmarkRuns' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'failedBenchmarkRuns' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'failedBenchmarkRuns' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | @main
[221/234] Compiling BenchmarkTool BenchmarkTool+Export+JMHElement.swift
[222/234] Compiling BenchmarkTool BenchmarkTool+Export+JMHFormatter.swift
[223/234] Compiling BenchmarkTool BenchmarkTool+PrettyPrinting.swift
[224/234] Compiling BenchmarkTool BenchmarkTool+ReadP90AbsoluteThresholds.swift
[225/236] Compiling BenchmarkTool FilePath+DirectoryView.swift
[226/236] Compiling BenchmarkTool String+Additions.swift
[227/236] Compiling BenchmarkTool BenchmarkTool+Thresholds.swift
/host/spi-builder-workspace/Plugins/BenchmarkTool/BenchmarkTool.swift:38:1: warning: extension declares a conformance of imported type 'BenchmarkMetric' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'Benchmark' introduce this conformance in the future
36 | extension BaselineOperation: ExpressibleByArgument {}
37 | extension ThresholdsOperation: ExpressibleByArgument {}
38 | extension BenchmarkMetric: ExpressibleByArgument {}
| |- warning: extension declares a conformance of imported type 'BenchmarkMetric' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'Benchmark' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
39 |
40 | typealias BenchmarkResults = [BenchmarkIdentifier: [BenchmarkResult]]
/host/spi-builder-workspace/Plugins/BenchmarkTool/BenchmarkTool.swift:42:17: warning: var 'failedBenchmarkRuns' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 | typealias BenchmarkResults = [BenchmarkIdentifier: [BenchmarkResult]]
41 |
42 | fileprivate var failedBenchmarkRuns = 0
| |- warning: var 'failedBenchmarkRuns' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'failedBenchmarkRuns' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'failedBenchmarkRuns' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | @main
/host/spi-builder-workspace/Plugins/BenchmarkTool/BenchmarkTool.swift:214:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
212 | mutating func run() async throws {
213 | // Flush stdout so we see any failures clearly
214 | setbuf(stdout, nil)
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
215 |
216 | guard command != .`init` else {
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[228/236] Compiling BenchmarkTool BenchmarkTool.swift
/host/spi-builder-workspace/Plugins/BenchmarkTool/BenchmarkTool.swift:38:1: warning: extension declares a conformance of imported type 'BenchmarkMetric' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'Benchmark' introduce this conformance in the future
36 | extension BaselineOperation: ExpressibleByArgument {}
37 | extension ThresholdsOperation: ExpressibleByArgument {}
38 | extension BenchmarkMetric: ExpressibleByArgument {}
| |- warning: extension declares a conformance of imported type 'BenchmarkMetric' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'Benchmark' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
39 |
40 | typealias BenchmarkResults = [BenchmarkIdentifier: [BenchmarkResult]]
/host/spi-builder-workspace/Plugins/BenchmarkTool/BenchmarkTool.swift:42:17: warning: var 'failedBenchmarkRuns' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 | typealias BenchmarkResults = [BenchmarkIdentifier: [BenchmarkResult]]
41 |
42 | fileprivate var failedBenchmarkRuns = 0
| |- warning: var 'failedBenchmarkRuns' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'failedBenchmarkRuns' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'failedBenchmarkRuns' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | @main
/host/spi-builder-workspace/Plugins/BenchmarkTool/BenchmarkTool.swift:214:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
212 | mutating func run() async throws {
213 | // Flush stdout so we see any failures clearly
214 | setbuf(stdout, nil)
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
215 |
216 | guard command != .`init` else {
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[229/236] Compiling BenchmarkTool BenchmarkTool+Export.swift
[230/236] Compiling BenchmarkTool BenchmarkTool+JSON.swift
[231/236] Compiling BenchmarkTool BenchmarkTool+Baselines.swift
[232/236] Compiling BenchmarkTool BenchmarkTool+CreateBenchmark.swift
[233/236] Compiling BenchmarkTool BenchmarkTool+Export+InfluxCSVFormatter.swift
[234/237] Wrapping AST for BenchmarkTool for debugging
[235/237] Write Objects.LinkFileList
[236/237] Linking BenchmarkTool
Build complete! (38.08s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-system",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-system"
},
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
},
{
"identity" : "texttable",
"requirement" : {
"range" : [
{
"lower_bound" : "0.0.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ordo-one/TextTable"
},
{
"identity" : "hdrhistogram-swift",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/HdrHistogram/hdrhistogram-swift"
},
{
"identity" : "swift-atomics",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-atomics"
},
{
"identity" : "package-jemalloc",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ordo-one/package-jemalloc"
}
],
"manifest_display_name" : "Benchmark",
"name" : "Benchmark",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "BenchmarkCommandPlugin",
"targets" : [
"BenchmarkCommandPlugin"
],
"type" : {
"plugin" : null
}
},
{
"name" : "BenchmarkPlugin",
"targets" : [
"BenchmarkPlugin"
],
"type" : {
"plugin" : null
}
},
{
"name" : "Benchmark",
"targets" : [
"Benchmark"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "BenchmarkTool",
"targets" : [
"BenchmarkTool"
],
"type" : {
"executable" : null
}
},
{
"name" : "BenchmarkHelpGenerator",
"targets" : [
"BenchmarkHelpGenerator"
],
"type" : {
"executable" : null
}
},
{
"name" : "BenchmarkBoilerplateGenerator",
"targets" : [
"BenchmarkBoilerplateGenerator"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "SwiftRuntimeHooks",
"module_type" : "ClangTarget",
"name" : "SwiftRuntimeHooks",
"path" : "Sources/SwiftRuntimeHooks",
"product_memberships" : [
"BenchmarkCommandPlugin",
"Benchmark",
"BenchmarkTool"
],
"sources" : [
"shims.c"
],
"type" : "library"
},
{
"c99name" : "CLinuxOperatingSystemStats",
"module_type" : "ClangTarget",
"name" : "CLinuxOperatingSystemStats",
"path" : "Platform/CLinuxOperatingSystemStats",
"product_memberships" : [
"BenchmarkCommandPlugin",
"Benchmark",
"BenchmarkTool"
],
"sources" : [
"CLinuxOperatingSystemStats.c"
],
"type" : "library"
},
{
"c99name" : "CDarwinOperatingSystemStats",
"module_type" : "ClangTarget",
"name" : "CDarwinOperatingSystemStats",
"path" : "Platform/CDarwinOperatingSystemStats",
"product_memberships" : [
"BenchmarkCommandPlugin",
"Benchmark",
"BenchmarkTool"
],
"sources" : [
"CDarwinOperatingSystemStats.c"
],
"type" : "library"
},
{
"c99name" : "BenchmarkTool",
"module_type" : "SwiftTarget",
"name" : "BenchmarkTool",
"path" : "Plugins/BenchmarkTool",
"product_dependencies" : [
"ArgumentParser",
"SystemPackage",
"TextTable"
],
"product_memberships" : [
"BenchmarkCommandPlugin",
"BenchmarkTool"
],
"sources" : [
"BenchmarkTool+Baselines.swift",
"BenchmarkTool+CreateBenchmark.swift",
"BenchmarkTool+Export+InfluxCSVFormatter.swift",
"BenchmarkTool+Export+JMHElement.swift",
"BenchmarkTool+Export+JMHFormatter.swift",
"BenchmarkTool+Export.swift",
"BenchmarkTool+JSON.swift",
"BenchmarkTool+Machine.swift",
"BenchmarkTool+Operations.swift",
"BenchmarkTool+PrettyPrinting.swift",
"BenchmarkTool+ReadP90AbsoluteThresholds.swift",
"BenchmarkTool+Thresholds.swift",
"BenchmarkTool.swift",
"Command+Helpers.swift",
"FilePath+Additions.swift",
"FilePath+DirectoryView.swift",
"String+Additions.swift"
],
"target_dependencies" : [
"Benchmark"
],
"type" : "executable"
},
{
"c99name" : "BenchmarkTests",
"module_type" : "SwiftTarget",
"name" : "BenchmarkTests",
"path" : "Tests/BenchmarkTests",
"sources" : [
"AdditionalTests.swift",
"BenchmarkMetricsTests.swift",
"BenchmarkResultTests.swift",
"BenchmarkRunnerTests.swift",
"BenchmarkTests.swift",
"OperatingSystemAndMallocTests.swift",
"StatisticsTests.swift"
],
"target_dependencies" : [
"Benchmark"
],
"type" : "test"
},
{
"c99name" : "BenchmarkPlugin",
"module_type" : "PluginTarget",
"name" : "BenchmarkPlugin",
"path" : "Plugins/BenchmarkPlugin",
"plugin_capability" : {
"type" : "buildTool"
},
"product_memberships" : [
"BenchmarkPlugin"
],
"sources" : [
"BenchmarkSupportPlugin.swift"
],
"target_dependencies" : [
"BenchmarkBoilerplateGenerator"
],
"type" : "plugin"
},
{
"c99name" : "BenchmarkHelpGenerator",
"module_type" : "SwiftTarget",
"name" : "BenchmarkHelpGenerator",
"path" : "Plugins/BenchmarkHelpGenerator",
"product_dependencies" : [
"ArgumentParser"
],
"product_memberships" : [
"BenchmarkHelpGenerator"
],
"sources" : [
"BenchmarkHelpGenerator.swift",
"Command+Helpers.swift"
],
"type" : "executable"
},
{
"c99name" : "BenchmarkCommandPlugin",
"module_type" : "PluginTarget",
"name" : "BenchmarkCommandPlugin",
"path" : "Plugins/BenchmarkCommandPlugin",
"plugin_capability" : {
"intent" : {
"description" : "Run the Benchmark performance test suite.",
"type" : "custom",
"verb" : "benchmark"
},
"permissions" : [
],
"type" : "command"
},
"product_memberships" : [
"BenchmarkCommandPlugin"
],
"sources" : [
"ArgumentExtractor+Extensions.swift",
"BenchmarkCommandPlugin.swift",
"BenchmarkPlugin+Help.swift",
"Command+Helpers.swift"
],
"target_dependencies" : [
"BenchmarkTool"
],
"type" : "plugin"
},
{
"c99name" : "BenchmarkBoilerplateGenerator",
"module_type" : "SwiftTarget",
"name" : "BenchmarkBoilerplateGenerator",
"path" : "Plugins/BenchmarkBoilerplateGenerator",
"product_dependencies" : [
"ArgumentParser",
"SystemPackage"
],
"product_memberships" : [
"BenchmarkPlugin",
"BenchmarkBoilerplateGenerator"
],
"sources" : [
"BenchmarkBoilerplateGenerator.swift"
],
"type" : "executable"
},
{
"c99name" : "Benchmark",
"module_type" : "SwiftTarget",
"name" : "Benchmark",
"path" : "Sources/Benchmark",
"product_dependencies" : [
"Histogram",
"ArgumentParser",
"SystemPackage",
"Atomics",
"jemalloc"
],
"product_memberships" : [
"BenchmarkCommandPlugin",
"Benchmark",
"BenchmarkTool"
],
"sources" : [
"ARCStats/ARCStats.swift",
"ARCStats/ARCStatsProducer.swift",
"Benchmark+ConvenienceInitializers.swift",
"Benchmark.swift",
"BenchmarkClock.swift",
"BenchmarkExecutor+Extensions.swift",
"BenchmarkExecutor.swift",
"BenchmarkInternals.swift",
"BenchmarkMetric+Defaults.swift",
"BenchmarkMetric.swift",
"BenchmarkResult.swift",
"BenchmarkRunner+ReadWrite.swift",
"BenchmarkRunner.swift",
"BenchmarkThresholds+Defaults.swift",
"BenchmarkThresholds.swift",
"Blackhole.swift",
"Int+Extensions.swift",
"MallocStats/MallocStats+jemalloc-support.swift",
"MallocStats/MallocStats.swift",
"MallocStats/MallocStatsProducer+jemalloc.swift",
"NIOConcurrencyHelpers/NIOLock.swift",
"NIOConcurrencyHelpers/lock.swift",
"OperatingSystemStats/OperatingSystemStats.swift",
"OperatingSystemStats/OperatingSystemStatsProducer+Darwin.swift",
"OperatingSystemStats/OperatingSystemStatsProducer+Linux.swift",
"Progress/Progress.swift",
"Progress/ProgressElements.swift",
"Progress/Utilities.swift",
"Statistics.swift"
],
"target_dependencies" : [
"CDarwinOperatingSystemStats",
"CLinuxOperatingSystemStats",
"SwiftRuntimeHooks"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.