diff --git a/src/heap/heap.cc b/src/heap/heap.cc index 40f17f48c2..bfaa1e6f1d 100644 --- a/src/heap/heap.cc +++ b/src/heap/heap.cc @@ -2542,7 +2542,7 @@ void Heap::MarkCompact() { SetGCState(MARK_COMPACT); PROFILE(isolate_, CodeMovingGCEvent()); - CodeSpaceMemoryModificationScope code_modifcation(this); + CodeSpaceMemoryModificationScope code_modification(this); // Disable soft allocation limits in the shared heap, if one exists, as // promotions into the shared heap should always succeed. diff --git a/src/heap/heap.h b/src/heap/heap.h index ec1e84323a..29aa5aad76 100644 --- a/src/heap/heap.h +++ b/src/heap/heap.h @@ -2559,9 +2559,8 @@ class V8_NODISCARD CodeSpaceMemoryModificationScope { Heap* heap_; }; -// The CodePageCollectionMemoryModificationScope can only be used by the main -// thread. It will not be enabled if a CodeSpaceMemoryModificationScope is -// already active. +// The CodePageCollectionMemoryModificationScope can be used by any thread. It +// will not be enabled if a CodeSpaceMemoryModificationScope is already active. class V8_NODISCARD CodePageCollectionMemoryModificationScope { public: explicit inline CodePageCollectionMemoryModificationScope(Heap* heap);