| Index: src/heap/spaces-inl.h
|
| diff --git a/src/heap/spaces-inl.h b/src/heap/spaces-inl.h
|
| index caa53ecee13077181908e5374c10eef10670d89d..78fda3c1e1562b99b99a9aa267b5b3ae79614868 100644
|
| --- a/src/heap/spaces-inl.h
|
| +++ b/src/heap/spaces-inl.h
|
| @@ -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) {
|
|
|