mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 02:27:39 +00:00
[vm] Appease TSAN around access on native resolvers.
Bug: https://github.com/dart-lang/sdk/issues/39611 Change-Id: I1ac3dd76313b72974ae938e0df4c004f24103691 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/145566 Reviewed-by: Alexander Aprelev <aam@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
parent
cf3a034210
commit
01ecc4a1a0
|
@ -4683,13 +4683,13 @@ class Library : public Object {
|
|||
|
||||
// Resolving native methods for script loaded in the library.
|
||||
Dart_NativeEntryResolver native_entry_resolver() const {
|
||||
return raw_ptr()->native_entry_resolver_;
|
||||
return LoadNonPointer(&raw_ptr()->native_entry_resolver_);
|
||||
}
|
||||
void set_native_entry_resolver(Dart_NativeEntryResolver value) const {
|
||||
StoreNonPointer(&raw_ptr()->native_entry_resolver_, value);
|
||||
}
|
||||
Dart_NativeEntrySymbol native_entry_symbol_resolver() const {
|
||||
return raw_ptr()->native_entry_symbol_resolver_;
|
||||
return LoadNonPointer(&raw_ptr()->native_entry_symbol_resolver_);
|
||||
}
|
||||
void set_native_entry_symbol_resolver(
|
||||
Dart_NativeEntrySymbol native_symbol_resolver) const {
|
||||
|
|
Loading…
Reference in a new issue