Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Unified Diff: src/heap/spaces-inl.h

Issue 1136783002: Only double align in PagedSpace::AllocateRawDoubleAligned when allocation succeeded. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698