Skip to content

Commit

Permalink
perf: remove unnecessary atomic load operation
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopodl committed Jan 16, 2024
1 parent b482f63 commit daf3dcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion argon/vm/memory/refcount.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ namespace argon::vm::memory {
* @return True if the object is managed by the GC, false otherwise.
*/
bool IsGcObject() const {
return RC_CHECK_IS_GCOBJ(this->bits_.load(std::memory_order_seq_cst));
return RC_CHECK_IS_GCOBJ(*((uintptr_t*) &this->bits_));
}

/**
Expand Down

0 comments on commit daf3dcd

Please sign in to comment.