projects
/
platform
/
upstream
/
v8.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca9d499
)
Only double align in PagedSpace::AllocateRawDoubleAligned when allocation succeeded.
author
hpayer
<hpayer@chromium.org>
Sat, 9 May 2015 10:29:33 +0000
(
03:29
-0700)
committer
Commit bot
<commit-bot@chromium.org>
Sat, 9 May 2015 10:29:38 +0000
(10:29 +0000)
BUG=chromium:486003
LOG=n
Review URL: https://codereview.chromium.org/
1136783002
Cr-Commit-Position: refs/heads/master@{#28326}
src/heap/spaces-inl.h
patch
|
blob
|
history
diff --git
a/src/heap/spaces-inl.h
b/src/heap/spaces-inl.h
index caa53ecee13077181908e5374c10eef10670d89d..78fda3c1e1562b99b99a9aa267b5b3ae79614868 100644
(file)
--- 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) {