Commit 2658eb2a authored by mlippautz's avatar mlippautz Committed by Commit bot

[heap] Fix bad-cast in Sweeper

BUG=chromium:622351
LOG=N
R=jochen@chromium.org

Review-Url: https://codereview.chromium.org/2097453002
Cr-Commit-Position: refs/heads/master@{#37209}
parent 5250da68
......@@ -516,8 +516,7 @@ void MarkCompactCollector::Sweeper::StartSweepingHelper(
void MarkCompactCollector::Sweeper::SweepOrWaitUntilSweepingCompleted(
Page* page) {
if (!page->SweepingDone()) {
PagedSpace* owner = reinterpret_cast<PagedSpace*>(page->owner());
ParallelSweepPage(page, owner->identity());
ParallelSweepPage(page, page->owner()->identity());
if (!page->SweepingDone()) {
// We were not able to sweep that page, i.e., a concurrent
// sweeper thread currently owns this page. Wait for the sweeper
......
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