Build Information
Successful build of Benchmark, reference 1.27.3 (d49096
), with Swift 6.0 for macOS (SPM) on 6 Nov 2024 14:14:26 UTC.
Swift 6 data race errors: 15
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ordo-one/package-benchmark.git
Reference: 1.27.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ordo-one/package-benchmark
* tag 1.27.3 -> FETCH_HEAD
HEAD is now at d490969 chore: Update .spi.yml (#292)
Cloned https://github.com/ordo-one/package-benchmark.git
Revision (git rev-parse @):
d4909695344b6e1ef88f0a711df6ab8708dd135d
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ordo-one/package-benchmark.git at 1.27.3
Fetching https://github.com/ordo-one/package-jemalloc
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/HdrHistogram/hdrhistogram-swift
Fetching https://github.com/apple/swift-system
Fetching https://github.com/apple/swift-atomics
Fetching https://github.com/ordo-one/TextTable
Fetching https://github.com/apple/swift-numerics
[1/35] Fetching package-jemalloc
[36/238] Fetching package-jemalloc, texttable
[63/1807] Fetching package-jemalloc, texttable, swift-atomics
[111/7383] Fetching package-jemalloc, texttable, swift-atomics, swift-numerics
[330/7732] Fetching package-jemalloc, texttable, swift-atomics, swift-numerics, hdrhistogram-swift
[456/11633] Fetching package-jemalloc, texttable, swift-atomics, swift-numerics, hdrhistogram-swift, swift-system
[11313/23991] Fetching package-jemalloc, texttable, swift-atomics, swift-numerics, hdrhistogram-swift, swift-system, swift-argument-parser
Fetched https://github.com/apple/swift-numerics from cache (1.14s)
Fetched https://github.com/apple/swift-system from cache (1.14s)
Fetched https://github.com/ordo-one/TextTable from cache (1.14s)
Fetched https://github.com/HdrHistogram/hdrhistogram-swift from cache (1.14s)
Fetched https://github.com/apple/swift-atomics from cache (1.14s)
[159/12393] Fetching package-jemalloc, swift-argument-parser
Fetched https://github.com/ordo-one/package-jemalloc from cache (1.77s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.77s)
Computing version for https://github.com/ordo-one/package-jemalloc
Computed https://github.com/ordo-one/package-jemalloc at 1.0.0 (0.66s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.2.0 (0.48s)
Computing version for https://github.com/HdrHistogram/hdrhistogram-swift
Computed https://github.com/HdrHistogram/hdrhistogram-swift at 0.1.2 (0.64s)
Computing version for https://github.com/ordo-one/TextTable
Computed https://github.com/ordo-one/TextTable at 0.0.2 (0.62s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.51s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.3.2 (0.50s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (0.70s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.3.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/ordo-one/TextTable
Working copy of https://github.com/ordo-one/TextTable resolved at 0.0.2
Creating working copy for https://github.com/ordo-one/package-jemalloc
Working copy of https://github.com/ordo-one/package-jemalloc resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.2
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "package-benchmark",
"name": "Benchmark",
"url": "https://github.com/ordo-one/package-benchmark.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/package-benchmark",
"dependencies": [
{
"identity": "swift-system",
"name": "swift-system",
"url": "https://github.com/apple/swift-system",
"version": "1.4.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
"dependencies": [
]
},
{
"identity": "swift-argument-parser",
"name": "swift-argument-parser",
"url": "https://github.com/apple/swift-argument-parser",
"version": "1.5.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
"dependencies": [
]
},
{
"identity": "texttable",
"name": "TextTable",
"url": "https://github.com/ordo-one/TextTable",
"version": "0.0.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/TextTable",
"dependencies": [
]
},
{
"identity": "hdrhistogram-swift",
"name": "package-histogram",
"url": "https://github.com/HdrHistogram/hdrhistogram-swift",
"version": "0.1.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/hdrhistogram-swift",
"dependencies": [
{
"identity": "swift-numerics",
"name": "swift-numerics",
"url": "https://github.com/apple/swift-numerics",
"version": "1.0.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-numerics",
"dependencies": [
]
}
]
},
{
"identity": "swift-atomics",
"name": "swift-atomics",
"url": "https://github.com/apple/swift-atomics",
"version": "1.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-atomics",
"dependencies": [
]
},
{
"identity": "package-jemalloc",
"name": "jemalloc",
"url": "https://github.com/ordo-one/package-jemalloc",
"version": "1.0.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/package-jemalloc",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/ordo-one/package-benchmark.git
[1/5559] Fetching package-benchmark
Fetched https://github.com/ordo-one/package-benchmark.git from cache (2.91s)
Fetching https://github.com/apple/swift-argument-parser from cache
Fetching https://github.com/HdrHistogram/hdrhistogram-swift from cache
Fetching https://github.com/apple/swift-system from cache
Fetching https://github.com/ordo-one/package-jemalloc from cache
Fetching https://github.com/apple/swift-atomics from cache
Fetching https://github.com/ordo-one/TextTable from cache
Fetched https://github.com/apple/swift-argument-parser from cache (0.63s)
Fetched https://github.com/ordo-one/TextTable from cache (0.63s)
Fetched https://github.com/ordo-one/package-jemalloc from cache (0.63s)
Fetched https://github.com/apple/swift-system from cache (0.63s)
Fetched https://github.com/HdrHistogram/hdrhistogram-swift from cache (0.63s)
Fetched https://github.com/apple/swift-atomics from cache (0.63s)
Computing version for https://github.com/ordo-one/package-jemalloc
Computed https://github.com/ordo-one/package-jemalloc at 1.0.0 (0.02s)
Computing version for https://github.com/ordo-one/TextTable
Computed https://github.com/ordo-one/TextTable at 0.0.2 (0.02s)
Computing version for https://github.com/HdrHistogram/hdrhistogram-swift
Computed https://github.com/HdrHistogram/hdrhistogram-swift at 0.1.2 (0.02s)
Fetching https://github.com/apple/swift-numerics from cache
Fetched https://github.com/apple/swift-numerics from cache (0.48s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (0.03s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.2.0 (0.03s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.4.0 (0.47s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.03s)
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/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/ordo-one/package-benchmark.git
Working copy of https://github.com/ordo-one/package-benchmark.git resolved at 1.27.3 (d490969)
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/HdrHistogram/hdrhistogram-swift
Working copy of https://github.com/HdrHistogram/hdrhistogram-swift resolved at 0.1.2
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.4.0
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/apple/swift-atomics
Working copy of https://github.com/apple/swift-atomics resolved at 1.2.0
Found 6 product dependencies
- swift-system
- swift-argument-parser
- TextTable
- package-histogram
- swift-atomics
- jemalloc
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/ordo-one/package-benchmark.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
[1/1] Compiling plugin BenchmarkCommandPlugin
[2/2] Compiling plugin BenchmarkPlugin
[3/3] Compiling plugin GenerateManual
Building for debugging...
[3/34] Write sources
[7/34] Write BenchmarkTool-entitlement.plist
[7/34] Write sources
[10/34] Write BenchmarkHelpGenerator-entitlement.plist
[12/34] Write sources
[14/34] Write BenchmarkBoilerplateGenerator-entitlement.plist
[16/34] Write sources
[19/34] Compiling CSystem shims.c
[20/34] Compiling _NumericsShims _NumericsShims.c
[21/34] Compiling CDarwinOperatingSystemStats CDarwinOperatingSystemStats.c
[22/34] Write swift-version--7754E27361AE5C74.txt
[23/34] Compiling _AtomicsShims.c
[24/34] Compiling SwiftRuntimeHooks shims.c
[26/98] Emitting module SystemPackage
[27/100] Compiling RealModule ElementaryFunctions.swift
[28/101] Compiling RealModule RealFunctions.swift
[29/101] Compiling RealModule Float80+Real.swift
[30/101] Compiling RealModule Real.swift
[31/101] Emitting module RealModule
[32/101] Compiling RealModule AlgebraicField.swift
[33/101] Compiling RealModule ApproximateEquality.swift
[34/101] Compiling RealModule Float16+Real.swift
[35/101] Compiling RealModule AugmentedArithmetic.swift
[36/101] Compiling RealModule Double+Real.swift
[37/101] Compiling Atomics UnsafeAtomic.swift
[38/101] Compiling Atomics UnsafeAtomicLazyReference.swift
[39/101] Compiling Atomics AtomicMemoryOrderings.swift
[40/101] Compiling Atomics DoubleWord.swift
[41/101] Compiling Atomics ManagedAtomic.swift
[42/101] Compiling Atomics ManagedAtomicLazyReference.swift
[43/103] Compiling RealModule Float+Real.swift
[44/103] Emitting module ArgumentParserToolInfo
[45/103] Compiling ArgumentParserToolInfo ToolInfo.swift
[46/147] Compiling ComplexModule Differentiable.swift
[47/147] Compiling ArgumentParser Option.swift
[48/147] Compiling ArgumentParser OptionGroup.swift
[49/147] Compiling ArgumentParser UsageGenerator.swift
[50/147] Compiling ArgumentParser CollectionExtensions.swift
[51/147] Compiling ArgumentParser ArgumentSet.swift
[52/147] Compiling ArgumentParser CommandParser.swift
[53/147] Compiling ArgumentParser Flag.swift
[54/147] Compiling ArgumentParser ArgumentDefinition.swift
[57/147] Compiling ArgumentParser InputKey.swift
[58/147] Compiling ArgumentParser NameSpecification.swift
[59/147] Compiling ArgumentParser ArgumentHelp.swift
[60/147] Compiling ArgumentParser ArgumentVisibility.swift
[61/147] Compiling ArgumentParser CompletionKind.swift
[62/147] Compiling ArgumentParser Errors.swift
[63/147] Compiling ComplexModule Complex.swift
[64/147] Compiling ComplexModule ElementaryFunctions.swift
[65/147] Compiling ComplexModule Arithmetic.swift
[66/147] Compiling ArgumentParser Parsed.swift
[67/147] Compiling ArgumentParser ParsedValues.swift
[68/147] Compiling ArgumentParser HelpGenerator.swift
[69/147] Emitting module ComplexModule
[70/149] Emitting module Numerics
[71/149] Compiling Numerics Numerics.swift
[72/151] Compiling ArgumentParser InputOrigin.swift
[73/151] Compiling ArgumentParser Name.swift
[74/151] Compiling ArgumentParser MessageInfo.swift
[77/151] Compiling ArgumentParser CommandConfiguration.swift
[78/151] Compiling ArgumentParser CommandGroup.swift
[79/151] Compiling ArgumentParser EnumerableFlag.swift
[80/151] Compiling ArgumentParser ExpressibleByArgument.swift
[84/151] Compiling ArgumentParser AsyncParsableCommand.swift
[85/151] Compiling ArgumentParser ParsableArguments.swift
[86/151] Compiling ArgumentParser ParsableArgumentsValidation.swift
[87/151] Compiling ArgumentParser ParsableCommand.swift
[88/151] Compiling ArgumentParser ArgumentDecoder.swift
[89/155] Emitting module ArgumentParser
[91/155] Compiling ArgumentParser BashCompletionsGenerator.swift
[100/155] Emitting module Atomics
[103/155] Compiling ArgumentParser Platform.swift
[104/155] Compiling ArgumentParser SequenceExtensions.swift
[105/155] Compiling ArgumentParser StringExtensions.swift
[106/155] Compiling ArgumentParser Tree.swift
[107/155] Compiling TextTable String+Util.swift
[108/155] Compiling TextTable SimpleFormat.swift
[110/155] Compiling ArgumentParser CompletionsGenerator.swift
[111/155] Compiling ArgumentParser FishCompletionsGenerator.swift
[112/155] Compiling ArgumentParser ZshCompletionsGenerator.swift
[113/155] Compiling ArgumentParser Argument.swift
[114/155] Compiling ArgumentParser ParserError.swift
[115/155] Compiling ArgumentParser SplitArguments.swift
[116/155] Compiling ArgumentParser DumpHelpGenerator.swift
[117/155] Compiling ArgumentParser HelpCommand.swift
[118/156] Compiling TextTable OrgFormat.swift
[127/156] Compiling TextTable PlainFormat.swift
[129/156] Compiling TextTable PsqlFormat.swift
[130/156] Compiling TextTable RstFormat.swift
[139/156] Compiling TextTable PipeFormat.swift
[142/156] Emitting module TextTable
[145/161] Compiling TextTable TextTable.swift
[146/161] Compiling Histogram Histogram.swift
[147/161] Emitting module Histogram
[148/189] Emitting module BenchmarkBoilerplateGenerator
[149/189] Compiling BenchmarkBoilerplateGenerator BenchmarkBoilerplateGenerator.swift
[149/189] Write Objects.LinkFileList
[151/189] Compiling BenchmarkHelpGenerator Command+Helpers.swift
[152/189] Compiling BenchmarkHelpGenerator BenchmarkHelpGenerator.swift
/Users/admin/builder/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: """
[153/189] Emitting module BenchmarkHelpGenerator
/Users/admin/builder/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: """
[153/189] Write Objects.LinkFileList
[155/189] Compiling Benchmark ARCStats.swift
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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() {
/Users/admin/builder/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,
[156/189] Compiling Benchmark ARCStatsProducer.swift
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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() {
/Users/admin/builder/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,
[157/189] Compiling Benchmark Benchmark+ConvenienceInitializers.swift
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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() {
/Users/admin/builder/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,
[158/189] Compiling Benchmark OperatingSystemStatsProducer+Linux.swift
/Users/admin/builder/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
[159/189] Compiling Benchmark Progress.swift
/Users/admin/builder/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
[160/189] Compiling Benchmark ProgressElements.swift
/Users/admin/builder/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
[160/191] Linking BenchmarkBoilerplateGenerator
[161/191] Applying BenchmarkBoilerplateGenerator
[162/191] Linking BenchmarkHelpGenerator
[163/191] Applying BenchmarkHelpGenerator
[165/191] Compiling Benchmark Benchmark.swift
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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,
/Users/admin/builder/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 |
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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)
/Users/admin/builder/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 |
[166/191] Compiling Benchmark BenchmarkClock.swift
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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,
/Users/admin/builder/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 |
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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)
/Users/admin/builder/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 |
[167/191] Compiling Benchmark BenchmarkExecutor+Extensions.swift
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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,
/Users/admin/builder/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 |
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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)
/Users/admin/builder/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 |
[168/191] Compiling Benchmark Utilities.swift
[169/191] Compiling Benchmark Statistics.swift
[170/191] Emitting module Benchmark
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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() {
/Users/admin/builder/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,
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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() {}
/Users/admin/builder/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
[171/191] Compiling Benchmark BenchmarkMetric.swift
[172/191] Compiling Benchmark BenchmarkResult.swift
[173/191] Compiling Benchmark BenchmarkRunner+ReadWrite.swift
[174/191] Compiling Benchmark lock.swift
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/OperatingSystemStats/OperatingSystemStatsProducer+Darwin.swift:100:21: warning: capture of 'self' with non-sendable type 'OperatingSystemStatsProducer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | import Dispatch
16 |
17 | final class OperatingSystemStatsProducer {
| `- note: class 'OperatingSystemStatsProducer' does not conform to the 'Sendable' protocol
18 | var nsPerMachTick: Double
19 | var nsPerSchedulerTick: Int
:
98 |
99 | DispatchQueue.global(qos: .userInitiated).async {
100 | 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
101 | let rate = self.sampleRate
102 | self.peakThreads = 0
[175/191] Compiling Benchmark OperatingSystemStats.swift
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/OperatingSystemStats/OperatingSystemStatsProducer+Darwin.swift:100:21: warning: capture of 'self' with non-sendable type 'OperatingSystemStatsProducer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | import Dispatch
16 |
17 | final class OperatingSystemStatsProducer {
| `- note: class 'OperatingSystemStatsProducer' does not conform to the 'Sendable' protocol
18 | var nsPerMachTick: Double
19 | var nsPerSchedulerTick: Int
:
98 |
99 | DispatchQueue.global(qos: .userInitiated).async {
100 | 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
101 | let rate = self.sampleRate
102 | self.peakThreads = 0
[176/191] Compiling Benchmark OperatingSystemStatsProducer+Darwin.swift
/Users/admin/builder/spi-builder-workspace/Sources/Benchmark/OperatingSystemStats/OperatingSystemStatsProducer+Darwin.swift:100:21: warning: capture of 'self' with non-sendable type 'OperatingSystemStatsProducer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | import Dispatch
16 |
17 | final class OperatingSystemStatsProducer {
| `- note: class 'OperatingSystemStatsProducer' does not conform to the 'Sendable' protocol
18 | var nsPerMachTick: Double
19 | var nsPerSchedulerTick: Int
:
98 |
99 | DispatchQueue.global(qos: .userInitiated).async {
100 | 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
101 | let rate = self.sampleRate
102 | self.peakThreads = 0
[177/191] Compiling Benchmark Blackhole.swift
[178/191] Compiling Benchmark Int+Extensions.swift
[179/191] Compiling Benchmark MallocStats+jemalloc-support.swift
[180/191] Compiling Benchmark MallocStats.swift
[181/191] Compiling Benchmark MallocStatsProducer+jemalloc.swift
[182/191] Compiling Benchmark NIOLock.swift
[183/191] Compiling Benchmark BenchmarkRunner.swift
/Users/admin/builder/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() {}
/Users/admin/builder/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()
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
[184/191] Compiling Benchmark BenchmarkThresholds+Defaults.swift
/Users/admin/builder/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() {}
/Users/admin/builder/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()
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
[185/191] Compiling Benchmark BenchmarkThresholds.swift
/Users/admin/builder/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() {}
/Users/admin/builder/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()
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
[186/191] Compiling Benchmark BenchmarkExecutor.swift
[187/191] Compiling Benchmark BenchmarkInternals.swift
[188/191] Compiling Benchmark BenchmarkMetric+Defaults.swift
[189/208] Compiling BenchmarkTool FilePath+Additions.swift
[190/209] Compiling BenchmarkTool String+Additions.swift
[191/209] Compiling BenchmarkTool BenchmarkTool+Export+InfluxCSVFormatter.swift
[192/209] Compiling BenchmarkTool BenchmarkTool+Export+JMHElement.swift
[193/209] Compiling BenchmarkTool BenchmarkTool+Operations.swift
[194/209] Compiling BenchmarkTool BenchmarkTool+PrettyPrinting.swift
[195/209] Emitting module BenchmarkTool
/Users/admin/builder/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]]
/Users/admin/builder/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
[196/209] Compiling BenchmarkTool FilePath+DirectoryView.swift
[197/209] Compiling BenchmarkTool BenchmarkTool+ReadP90AbsoluteThresholds.swift
[198/209] Compiling BenchmarkTool BenchmarkTool+Thresholds.swift
[199/209] Compiling BenchmarkTool BenchmarkTool+Export+JMHFormatter.swift
[200/209] Compiling BenchmarkTool BenchmarkTool+Export.swift
[201/209] Compiling BenchmarkTool BenchmarkTool+JSON.swift
[202/209] Compiling BenchmarkTool BenchmarkTool+Machine.swift
[203/209] Compiling BenchmarkTool BenchmarkTool+Baselines.swift
[204/209] Compiling BenchmarkTool BenchmarkTool+CreateBenchmark.swift
[205/209] Compiling BenchmarkTool BenchmarkTool.swift
/Users/admin/builder/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]]
/Users/admin/builder/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
[206/209] Compiling BenchmarkTool Command+Helpers.swift
/Users/admin/builder/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]]
/Users/admin/builder/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
[206/209] Write Objects.LinkFileList
[207/209] Linking BenchmarkTool
[208/209] Applying BenchmarkTool
Build complete! (51.95s)
warning: 'spi-builder-workspace': Building for SPI@macOS, disabling Jemalloc
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" : "/Users/admin/builder/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"
}
Done.