| Index: runtime/vm/atomic.h
|
| diff --git a/runtime/vm/atomic.h b/runtime/vm/atomic.h
|
| index 6197f16ab7b7a2ad3669bd37d18a5e63d8122ba6..769aad67ae4106596dcac56018bc3282cbd7d78c 100644
|
| --- a/runtime/vm/atomic.h
|
| +++ b/runtime/vm/atomic.h
|
| @@ -25,7 +25,11 @@ class AtomicOperations : public AllStatic {
|
|
|
| static uword CompareAndSwapWord(uword* ptr, uword old_value, uword new_value);
|
|
|
| - static uword LoadRelaxed(uword* ptr);
|
| + static uword LoadRelaxed(uword* ptr) {
|
| + uword result;
|
| + memcpy(&result, ptr, sizeof(result));
|
| + return result;
|
| + }
|
| };
|
|
|
|
|
|
|