[shared-struct] Fix typos in comment

Bug: v8:12548
Change-Id: Ib0b22cd941f0ab928c9c3d31d77695972d87c137
No-try: true
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3840817
Reviewed-by: Deepti Gandluri <gdeepti@chromium.org>
Auto-Submit: Shu-yu Guo <syg@chromium.org>
Commit-Queue: Deepti Gandluri <gdeepti@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82599}
This commit is contained in:
Shu-yu Guo 2022-08-19 08:32:02 -07:00 committed by V8 LUCI CQ
parent b85b5d3bf3
commit 7e2f7d9768

View File

@ -965,8 +965,8 @@ class BooleanBit : public AllStatic {
}
};
// This is an RAII helper class to emit a store-store memory barrier if this
// when allocating objects in the shared heap.
// This is an RAII helper class to emit a store-store memory barrier when
// publishing objects allocated in the shared heap.
//
// This helper must be used in every Factory method that allocates a shared
// JSObject visible user JS code. This is also used in Object::ShareSlow when
@ -992,9 +992,9 @@ class V8_NODISCARD SharedObjectSafePublishGuard final {
// VM-internal state of shared objects past any subsequent stores (i.e. the
// publish).
//
// On the loading side, we rely neither the compiler nor the CPU reordering
// loads that are dependent on observing the address of the published shared
// object, like fields of the shared object.
// On the loading side, we rely on neither the compiler nor the CPU
// reordering loads that are dependent on observing the address of the
// published shared object, like fields of the shared object.
std::atomic_thread_fence(std::memory_order_release);
}
};