Commit f06534b9 authored by hpayer's avatar hpayer Committed by Commit bot

Only double align in PagedSpace::AllocateRawDoubleAligned when allocation succeeded.

BUG=chromium:486003
LOG=n

Review URL: https://codereview.chromium.org/1136783002

Cr-Commit-Position: refs/heads/master@{#28326}
parent ca9d499f
......@@ -303,7 +303,9 @@ AllocationResult PagedSpace::AllocateRawDoubleAligned(int size_in_bytes) {
if (object == NULL) {
object = SlowAllocateRaw(aligned_size_in_bytes);
}
object = heap()->EnsureDoubleAligned(object, aligned_size_in_bytes);
if (object != NULL) {
object = heap()->EnsureDoubleAligned(object, aligned_size_in_bytes);
}
}
if (object != NULL) {
......
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