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

Unified Diff: src/runtime/runtime-internal.cc

Issue 2462613002: [not for landing] Debugging gpu failures
Patch Set: more checks Created 4 years, 1 month 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 | « src/heap/spaces-inl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-internal.cc
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc
index 621f33547e80736b59fdb7d928a3c16ad1ed5fba..8a9672a3dfb229d66ce63714049e92aceb735339 100644
--- a/src/runtime/runtime-internal.cc
+++ b/src/runtime/runtime-internal.cc
@@ -330,7 +330,13 @@ RUNTIME_FUNCTION(Runtime_AllocateInTargetSpace) {
CHECK(size <= kMaxRegularHeapObjectSize);
bool double_align = AllocateDoubleAlignFlag::decode(flags);
AllocationSpace space = AllocateTargetSpace::decode(flags);
- return *isolate->factory()->NewFillerObject(size, double_align, space);
+ HeapObject* result =
+ *isolate->factory()->NewFillerObject(size, double_align, space);
+ if (space == OLD_SPACE) {
+ DCHECK(*(isolate->heap()->OldSpaceAllocationLimitAddress()) != nullptr);
+ DCHECK(*(isolate->heap()->OldSpaceAllocationTopAddress()) != nullptr);
+ }
+ return result;
}
RUNTIME_FUNCTION(Runtime_AllocateSeqOneByteString) {
« no previous file with comments | « src/heap/spaces-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698