Build Information
Successful build of Benchmark, reference main (87b08b
), with Swift 6.0 for Linux on 15 Nov 2024 18:07:18 UTC.
Swift 6 data race errors: 20
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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.57.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ordo-one/package-benchmark.git
Reference: main
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
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 87b08bf chore: Fix test compilation on Ubuntu Noble (#300)
Cloned https://github.com/ordo-one/package-benchmark.git
Revision (git rev-parse @):
87b08bf1fb2f7e4d9dd2fca5d7dd3e0ff8125c1b
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ordo-one/package-benchmark.git at main
========================================
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-1":/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/apple/swift-atomics
Fetching https://github.com/apple/swift-argument-parser
[1/35] Fetching package-jemalloc
[36/1604] Fetching package-jemalloc, swift-atomics
Fetching https://github.com/apple/swift-system
Fetching https://github.com/HdrHistogram/hdrhistogram-swift
Fetched https://github.com/ordo-one/package-jemalloc from cache (0.40s)
[659/1569] Fetching swift-atomics
Fetching https://github.com/ordo-one/TextTable
[1570/13940] Fetching swift-atomics, swift-argument-parser
[6766/14143] Fetching swift-atomics, swift-argument-parser, texttable
[8454/14725] Fetching swift-atomics, swift-argument-parser, texttable, hdrhistogram-swift
Fetched https://github.com/ordo-one/TextTable from cache (0.40s)
[11801/14522] Fetching swift-atomics, swift-argument-parser, hdrhistogram-swift
Fetched https://github.com/HdrHistogram/hdrhistogram-swift from cache (0.44s)
[11590/13940] Fetching swift-atomics, swift-argument-parser
[11962/17841] Fetching swift-atomics, swift-argument-parser, swift-system
Fetched https://github.com/apple/swift-system from cache (0.75s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.32s)
Fetched https://github.com/apple/swift-atomics from cache (1.35s)
Computing version for https://github.com/ordo-one/package-jemalloc
Computed https://github.com/ordo-one/package-jemalloc at 1.0.0 (0.92s)
Computing version for https://github.com/ordo-one/TextTable
Computed https://github.com/ordo-one/TextTable at 0.0.2 (0.96s)
Computing version for https://github.com/HdrHistogram/hdrhistogram-swift
Computed https://github.com/HdrHistogram/hdrhistogram-swift at 0.1.2 (0.82s)
Fetching https://github.com/apple/swift-numerics
[1/5576] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.59s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (0.85s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.2.0 (0.80s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.4.0 (0.69s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.74s)
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-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.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-atomics
Working copy of https://github.com/apple/swift-atomics resolved at 1.2.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-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 _NumericsShims _NumericsShims.c
[17/41] Compiling _AtomicsShims.c
[17/41] Compiling SwiftRuntimeHooks shims.c
[19/41] Compiling CSystem shims.c
[20/41] Compiling CLinuxOperatingSystemStats CLinuxOperatingSystemStats.c
[21/41] Write swift-version-24593BA9C3E375BF.txt
[23/112] Emitting module RealModule
[24/113] Emitting module SystemPackage
[25/116] Compiling RealModule AlgebraicField.swift
[26/116] Compiling RealModule ApproximateEquality.swift
[27/116] Compiling RealModule AugmentedArithmetic.swift
[28/118] Compiling SystemPackage Backcompat.swift
[29/118] Compiling SystemPackage CInterop.swift
[30/118] Compiling RealModule Float16+Real.swift
[31/118] Compiling RealModule Float+Real.swift
[32/118] Compiling RealModule ElementaryFunctions.swift
[33/118] Compiling RealModule Float80+Real.swift
[34/118] Compiling SystemPackage FilePathWindows.swift
[35/118] Compiling SystemPackage FilePermissions.swift
[36/118] Emitting module Atomics
[37/118] Compiling RealModule Double+Real.swift
[38/118] Compiling SystemPackage FileOperations.swift
[39/118] Compiling SystemPackage FilePath.swift
[40/118] Compiling SystemPackage MachPort.swift
[41/118] Compiling SystemPackage PlatformString.swift
[42/118] Compiling SystemPackage SystemString.swift
[43/118] Compiling SystemPackage Util+StringArray.swift
[44/118] Compiling SystemPackage Util.swift
[45/118] Compiling SystemPackage UtilConsumers.swift
[46/118] Compiling ArgumentParserToolInfo ToolInfo.swift
[47/118] Emitting module ArgumentParserToolInfo
[48/118] Compiling RealModule Real.swift
[49/118] Compiling SystemPackage FilePathParsing.swift
[50/118] Compiling SystemPackage FilePathString.swift
[51/118] Compiling SystemPackage FilePathSyntax.swift
[52/118] Compiling SystemPackage FilePathTemp.swift
[53/118] Compiling RealModule RealFunctions.swift
[54/119] Compiling SystemPackage FilePathComponentView.swift
[55/119] Compiling SystemPackage FilePathComponents.swift
[58/119] Compiling SystemPackage FilePathTempPosix.swift
[59/119] Compiling SystemPackage FilePathTempWindows.swift
[75/120] Wrapping AST for RealModule for debugging
[76/120] Wrapping AST for ArgumentParserToolInfo for debugging
[78/120] Compiling Atomics IntegerOperations.swift
[79/120] Compiling Atomics Unmanaged extensions.swift
[80/164] Compiling ArgumentParser OptionGroup.swift
[81/164] Compiling ArgumentParser AsyncParsableCommand.swift
[82/164] Compiling ArgumentParser CommandConfiguration.swift
[83/164] Compiling ArgumentParser CommandGroup.swift
[85/164] Compiling ArgumentParser EnumerableFlag.swift
[86/164] Compiling ArgumentParser ExpressibleByArgument.swift
[87/164] Compiling ArgumentParser ParsableArguments.swift
[88/164] Compiling ArgumentParser ParsableArgumentsValidation.swift
[89/164] Compiling ArgumentParser ParsableCommand.swift
[90/164] Compiling ArgumentParser ArgumentDecoder.swift
[91/164] Compiling ArgumentParser ArgumentDefinition.swift
[92/164] Compiling ArgumentParser ArgumentSet.swift
[92/165] Wrapping AST for Atomics for debugging
[95/165] Compiling ComplexModule Arithmetic.swift
[95/165] Wrapping AST for SystemPackage for debugging
[97/165] Compiling ComplexModule Complex.swift
[98/165] Compiling ComplexModule ElementaryFunctions.swift
[99/165] Emitting module ComplexModule
[100/165] Emitting module ArgumentParser
[101/170] Compiling TextTable RstFormat.swift
[102/171] Compiling TextTable SimpleFormat.swift
[103/171] Compiling TextTable String+Util.swift
[104/171] Emitting module TextTable
[105/171] Compiling ArgumentParser BashCompletionsGenerator.swift
[106/171] Compiling ArgumentParser CompletionsGenerator.swift
[107/171] Compiling ArgumentParser FishCompletionsGenerator.swift
[108/171] Compiling ArgumentParser ZshCompletionsGenerator.swift
[109/171] Compiling ArgumentParser ArgumentVisibility.swift
[110/171] Compiling ArgumentParser CompletionKind.swift
[111/171] Compiling ArgumentParser Argument.swift
[112/171] Compiling ArgumentParser ArgumentHelp.swift
[119/171] Compiling TextTable TextTable.swift
[121/172] Compiling ArgumentParser CollectionExtensions.swift
[122/172] Compiling ArgumentParser Platform.swift
[123/172] Compiling ArgumentParser SequenceExtensions.swift
[124/172] Compiling ArgumentParser StringExtensions.swift
[125/172] Compiling ArgumentParser Tree.swift
[126/172] Compiling ArgumentParser Name.swift
[127/172] Compiling ArgumentParser Parsed.swift
[128/172] Compiling ArgumentParser ParsedValues.swift
[129/172] Compiling ArgumentParser ParserError.swift
[130/172] Compiling ArgumentParser SplitArguments.swift
[131/172] Compiling ArgumentParser DumpHelpGenerator.swift
[132/172] Compiling ArgumentParser HelpCommand.swift
[133/172] Compiling ArgumentParser HelpGenerator.swift
[134/172] Compiling ArgumentParser MessageInfo.swift
[135/172] Compiling ArgumentParser UsageGenerator.swift
[135/172] Wrapping AST for TextTable for debugging
[144/172] Compiling ArgumentParser Errors.swift
[145/172] Compiling ArgumentParser Flag.swift
[146/172] Compiling ArgumentParser NameSpecification.swift
[147/172] Compiling ArgumentParser Option.swift
[155/172] Compiling ArgumentParser CommandParser.swift
[156/172] Compiling ArgumentParser InputKey.swift
[157/172] Compiling ArgumentParser InputOrigin.swift
[159/173] Compiling ComplexModule Differentiable.swift
[159/174] Wrapping AST for ArgumentParser for debugging
[161/179] Wrapping AST for ComplexModule for debugging
[163/181] Compiling Numerics Numerics.swift
[164/181] Emitting module Numerics
[165/182] Compiling BenchmarkHelpGenerator Command+Helpers.swift
[167/182] Emitting module BenchmarkBoilerplateGenerator
[168/182] Compiling BenchmarkBoilerplateGenerator BenchmarkBoilerplateGenerator.swift
[168/183] Wrapping AST for Numerics for debugging
[170/185] Wrapping AST for BenchmarkBoilerplateGenerator for debugging
[171/185] Write Objects.LinkFileList
[173/185] 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: """
[174/185] 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: """
[175/186] Wrapping AST for BenchmarkHelpGenerator for debugging
[176/186] Write Objects.LinkFileList
[177/186] Linking BenchmarkBoilerplateGenerator
[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] 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
[185/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 |
[186/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 |
[187/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 |
[188/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 |
[189/217] Compiling Benchmark BenchmarkClock.swift
[190/217] Compiling Benchmark BenchmarkExecutor+Extensions.swift
[191/217] Compiling Benchmark BenchmarkExecutor.swift
[192/217] Compiling Benchmark BenchmarkInternals.swift
[193/217] Compiling Benchmark ProgressElements.swift
[194/217] Compiling Benchmark Utilities.swift
[195/217] Compiling Benchmark Statistics.swift
[196/217] Compiling Benchmark NIOLock.swift
[197/217] Compiling Benchmark lock.swift
[198/217] Compiling Benchmark OperatingSystemStats.swift
[199/217] Compiling Benchmark BenchmarkMetric+Defaults.swift
[200/217] Compiling Benchmark BenchmarkMetric.swift
[201/217] Compiling Benchmark BenchmarkResult.swift
[202/217] Compiling Benchmark BenchmarkRunner+ReadWrite.swift
[203/217] 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
[204/217] 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
[205/217] 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
[206/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
[207/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
[208/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
[209/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
[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] 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
[217/236] Compiling BenchmarkTool FilePath+DirectoryView.swift
[218/236] Compiling BenchmarkTool String+Additions.swift
[219/236] Compiling BenchmarkTool BenchmarkTool+PrettyPrinting.swift
[220/236] Compiling BenchmarkTool BenchmarkTool+ReadP90AbsoluteThresholds.swift
[221/236] Compiling BenchmarkTool BenchmarkTool+Export+JMHElement.swift
[222/236] Compiling BenchmarkTool BenchmarkTool+Export+JMHFormatter.swift
[223/236] Compiling BenchmarkTool BenchmarkTool+Export.swift
[224/236] Compiling BenchmarkTool BenchmarkTool+JSON.swift
[225/236] 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
[226/236] 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
[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 Command+Helpers.swift
[230/236] Compiling BenchmarkTool FilePath+Additions.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! (54.34s)
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.