File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/performance/lib/fxt/include/lib/fxt Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 10
10
#include < zircon/types.h>
11
11
12
12
#include < atomic>
13
+ #include < type_traits>
13
14
14
15
namespace fxt {
15
16
@@ -110,8 +111,8 @@ struct InternedString {
110
111
// resulting in every InternedString instance from instantiations of the _intern literal operator
111
112
// being placed in the "__fxt_interned_string_table" section. However, GCC ignores section
112
113
// attributes on COMDAT symbols as of this writing, resulting in an empty section when compiled
113
- // with GCC. TODO(https://fxbug.dev/42101573): Cleanup this comment when GCC supports section attributes on
114
- // COMDAT.
114
+ // with GCC. TODO(https://fxbug.dev/42101573): Cleanup this comment when GCC supports section
115
+ // attributes on COMDAT.
115
116
116
117
static void PreRegister () {
117
118
for (const InternedString& interned_string : IterateSection) {
@@ -125,8 +126,8 @@ struct InternedString {
125
126
static void SetMapStringCallback (MapStringCallback callback) { map_string_callback_ = callback; }
126
127
127
128
private:
128
- // TODO(https://fxbug.dev/42108473): Replace runtime lock-free linked list with comdat linker sections once
129
- // the toolchain supports it with all compilers.
129
+ // TODO(https://fxbug.dev/42108473): Replace runtime lock-free linked list with comdat linker
130
+ // sections once the toolchain supports it with all compilers.
130
131
[[gnu::noinline]] static uint16_t Register (const InternedString& interned_string) {
131
132
// Return the id if the string ref is already registered.
132
133
uint16_t id = interned_string.id .load (std::memory_order_relaxed);
You can’t perform that action at this time.
0 commit comments