Commit 6447da5e authored by Anton Bikineev's avatar Anton Bikineev Committed by Commit Bot

heap: Don't call write barriers from UntracedMembers assign operators

Templated assignment operators don't hide the assignment operator which
is a special function. In the case of UntracedMember the assignment
operator was generated by the compiler, which was

Bug: 1021889
Change-Id: I835a444753449096b01b6ee2087149360543d3cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2001304Reviewed-by: default avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Anton Bikineev <bikineev@chromium.org>
Cr-Commit-Position: refs/heads/master@{#731894}
parent 3d82ba1a
...@@ -398,6 +398,12 @@ class UntracedMember final ...@@ -398,6 +398,12 @@ class UntracedMember final
UntracedMember(WTF::HashTableDeletedValueType x) : Parent(x) {} UntracedMember(WTF::HashTableDeletedValueType x) : Parent(x) {}
UntracedMember& operator=(const UntracedMember& other) {
this->SetRaw(other);
this->CheckPointer();
return *this;
}
template <typename U> template <typename U>
UntracedMember& operator=(const Persistent<U>& other) { UntracedMember& operator=(const Persistent<U>& other) {
this->SetRaw(other); this->SetRaw(other);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment