| Index: runtime/vm/atomic.h
|
| diff --git a/runtime/vm/atomic.h b/runtime/vm/atomic.h
|
| index b6e5f280001ae5f61fa3c8e10d339f9a91de478d..d6a833bb313b61e5fe8a3c548e89eeef1ba02cfc 100644
|
| --- a/runtime/vm/atomic.h
|
| +++ b/runtime/vm/atomic.h
|
| @@ -51,14 +51,9 @@ class AtomicOperations : public AllStatic {
|
|
|
| // Performs a load of a word from 'ptr', but without any guarantees about
|
| // memory order (i.e., no load barriers/fences).
|
| - static uword LoadRelaxed(uword* ptr) {
|
| - return *static_cast<volatile uword*>(ptr);
|
| - }
|
| -
|
| - // Performs a load of a word from 'ptr', but without any guarantees about
|
| - // memory order (i.e., no load barriers/fences).
|
| - static intptr_t LoadRelaxedIntPtr(intptr_t* ptr) {
|
| - return *static_cast<volatile intptr_t*>(ptr);
|
| + template <typename T>
|
| + static T LoadRelaxed(T* ptr) {
|
| + return *static_cast<volatile T*>(ptr);
|
| }
|
| };
|
|
|
|
|