| Index: src/spaces-inl.h
|
| ===================================================================
|
| --- src/spaces-inl.h (revision 11431)
|
| +++ src/spaces-inl.h (working copy)
|
| @@ -296,6 +296,8 @@
|
| MaybeObject* NewSpace::AllocateRaw(int size_in_bytes) {
|
| Address old_top = allocation_info_.top;
|
| #ifdef DEBUG
|
| + // If we are stressing compaction we waste some memory in new space
|
| + // in order to get more frequent GCs.
|
| if (FLAG_stress_compaction && !HEAP->linear_allocation()) {
|
| if (allocation_info_.limit - old_top >= size_in_bytes * 4) {
|
| int filler_size = size_in_bytes * 4;
|
|
|