diff --git a/runtime/hsa-runtime/core/inc/runtime.h b/runtime/hsa-runtime/core/inc/runtime.h index ac0d4e8d31..d1aed4e26c 100644 --- a/runtime/hsa-runtime/core/inc/runtime.h +++ b/runtime/hsa-runtime/core/inc/runtime.h @@ -510,7 +510,7 @@ class Runtime { void* vm_fault_handler_user_data_; // Holds reference count to runtime object. - volatile uint32_t ref_count_; + std::atomic ref_count_; // Track environment variables. Flag flag_;