Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1748)

Unified Diff: runtime/vm/object.cc

Issue 2176803003: Add new atomic operations and use them in two places. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/os_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 8b072aa79910f416e54b91da59de1483ef7f8747..89143bd665bee60d43e3dd0df51f4e1234a391a3 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -7117,7 +7117,7 @@ void Function::RestoreICDataMap(
void Function::set_ic_data_array(const Array& value) const {
- StorePointer(&raw_ptr()->ic_data_array_, value.raw());
+ AtomicStorePointer(&raw_ptr()->ic_data_array_, value.raw());
}
@@ -13458,8 +13458,8 @@ void ICData::ResetData() const {
intptr_t len = TestEntryLength();
// IC data array must be null terminated (sentinel entry).
const Array& ic_data = Array::Handle(Array::New(len, Heap::kOld));
- set_ic_data_array(ic_data);
WriteSentinel(ic_data, len);
+ set_ic_data_array(ic_data);
}
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/os_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698