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

Unified Diff: src/heap-inl.h

Issue 6745033: On store buffer overflow we mark individidual pages for... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 9 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
Index: src/heap-inl.h
===================================================================
--- src/heap-inl.h (revision 7374)
+++ src/heap-inl.h (working copy)
@@ -267,6 +267,12 @@
}
+bool Heap::OldGenerationAllocationLimitReached() {
+ if (!IncrementalMarking::IsStopped()) return false;
+ return OldGenerationSpaceAvailable() < 0;
+}
+
+
bool Heap::ShouldBePromoted(Address old_address, int object_size) {
// An object should be promoted if:
// - the object has survived a scavenge operation or
@@ -388,9 +394,11 @@
// copied.
if (first_word.IsForwardingAddress()) {
HeapObject* dest = first_word.ToForwardingAddress();
+ ASSERT(InFromSpace(*p));
*p = dest;
Address slot = reinterpret_cast<Address>(p);
if (Heap::InNewSpace(dest) && !Heap::InNewSpace(slot)) {
+ ASSERT(InToSpace(dest));
StoreBuffer::EnterDirectlyIntoStoreBuffer(slot);
}
return;

Powered by Google App Engine
This is Rietveld 408576698