Skip to content

Commit

Permalink
Make it make sense
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielLiamAnderson committed Oct 13, 2023
1 parent 6a367b7 commit 0c49538
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/parlay/internal/concurrency/big_atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ struct big_atomic {
auto ver = version.load(std::memory_order_acquire);
alignas(T) char buffer[sizeof(T)];
internal::atomic_load_per_byte_memcpy(&buffer, &fast_value, sizeof(T));
value_type v = internal::bits_to_object<T>(buffer);
//value_type v = internal::bits_to_object<T>(buffer);
auto p = indirect_value.load();
//std::atomic_thread_fence(std::memory_order_acquire);
//return internal::bits_to_object<T>(fast_value);
//return internal::bits_to_object<T>(buffer);
return v;
//return v;
if (
//!is_marked(p) &&
!is_marked(p) &&
ver == version.load(std::memory_order_relaxed))
return internal::bits_to_object<T>(buffer);

Expand Down

0 comments on commit 0c49538

Please sign in to comment.