File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -107,18 +107,6 @@ public func setup_json() {
107
107
JSONTester = CodablePerfTester ( encoder: JSONEncoder ( ) , decoder: JSONDecoder ( ) )
108
108
}
109
109
110
- #if !_runtime(_ObjC)
111
- // If we do not have an objc-runtime, then we do not have a definition for
112
- // autoreleasepool. Add in our own fake autoclosure for it that is inline
113
- // always. That should be able to be eaten through by the optimizer no problem.
114
- @inline ( __always)
115
- public func autoreleasepool< Result> (
116
- invoking body: ( ) throws -> Result
117
- ) rethrows -> Result {
118
- return try body ( )
119
- }
120
- #endif
121
-
122
110
@inline ( never)
123
111
public func run_JSONPerfEncode( _ N: Int ) {
124
112
autoreleasepool {
Original file line number Diff line number Diff line change @@ -235,6 +235,19 @@ public func CheckResults(
235
235
}
236
236
}
237
237
238
+ #if !_runtime(_ObjC)
239
+ // If we do not have an objc-runtime, then we do not have a definition for
240
+ // autoreleasepool. Add in our own fake autoclosure for it that is inline
241
+ // always. That should be able to be eaten through by the optimizer no problem.
242
+ @inlinable // FIXME(inline-always)
243
+ @inline ( __always)
244
+ public func autoreleasepool< Result> (
245
+ invoking body: ( ) throws -> Result
246
+ ) rethrows -> Result {
247
+ return try body ( )
248
+ }
249
+ #endif
250
+
238
251
public func False( ) -> Bool { return false }
239
252
240
253
/// This is a dummy protocol to test the speed of our protocol dispatch.
You can’t perform that action at this time.
0 commit comments