Issue #1742 - Part 5: Remove unnecessary GCPtr::unbarrieredGet

Ref: BZ 1323441
This commit is contained in:
Jeremy Andrews 2022-05-27 07:25:48 -05:00 committed by roytam1
commit 1cdbf6eb6a
4 changed files with 3 additions and 7 deletions

View file

@ -290,7 +290,7 @@ NativeObject::setSlotWithType(ExclusiveContext* cx, Shape* shape,
inline void
NativeObject::updateShapeAfterMovingGC()
{
Shape* shape = shape_.unbarrieredGet();
Shape* shape = shape_;
if (IsForwarded(shape))
shape_.unsafeSet(Forwarded(shape));
}