File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -264,10 +264,11 @@ pub mod panic_count {
264
264
// (including the current one) will have `LOCAL_PANIC_COUNT`
265
265
// equal to zero, so TLS access can be avoided.
266
266
//
267
- // A relaxed atomic load is equivalent to a normal aligned memory read
268
- // (e.g., a `mov` instruction in x86), while a TLS access might require
269
- // calling a non-inlinable function (such as `__tls_get_addr` when using
270
- // the GD TLS model).
267
+ // In terms of performance, a relaxed atomic load is similar to a normal
268
+ // aligned memory read (e.g., a mov instruction in x86), but with some
269
+ // compiler optimization restrictions. On the other hand, a TLS access
270
+ // might require calling a non-inlinable function (such as `__tls_get_addr`
271
+ // when using the GD TLS model).
271
272
true
272
273
} else {
273
274
is_zero_slow_path ( )
You can’t perform that action at this time.
0 commit comments