1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-17 16:09:43 +03:00
This commit is contained in:
Rui Ueyama 2023-01-18 20:57:24 +08:00
parent 83303995c7
commit f98e0ef92a

View File

@ -2007,8 +2007,7 @@ void MergedSection<E>::write_to(Context<E> &ctx, u8 *buf) {
for (i64 j = shard_size * i; j < shard_size * (i + 1); j++)
if (const char *key = map.get_key(j))
if (SectionFragment<E> &frag = map.values[j];
frag.is_alive.load(std::memory_order_relaxed))
if (SectionFragment<E> &frag = map.values[j]; frag.is_alive)
memcpy(buf + frag.offset, key, map.key_sizes[j]);
});
}