Commit 8f1c1706 authored by Mythri A's avatar Mythri A Committed by Commit Bot

[heap] Fix check in concurrent marking when flushing bytecode

There was a negation missing in the check.

Bug: chromium:948559
Change-Id: I54cfdd8b83771d80aebe506e4c2793cef301e48b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1549164
Auto-Submit: Mythri Alle <mythria@chromium.org>
Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Reviewed-by: 's avatarHannes Payer <hpayer@chromium.org>
Commit-Queue: Mythri Alle <mythria@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60578}
parent 5f58a82b
......@@ -407,7 +407,7 @@ class ConcurrentMarkingVisitor final
int size = VisitJSObjectSubclass(map, object);
// Check if the JSFunction needs reset due to bytecode being flushed.
if (bytecode_flush_mode_ == BytecodeFlushMode::kDoNotFlushBytecode &&
if (bytecode_flush_mode_ != BytecodeFlushMode::kDoNotFlushBytecode &&
object->NeedsResetDueToFlushedBytecode()) {
weak_objects_->flushed_js_functions.Push(task_id_, object);
}
......
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