v8/test/cctest/heap
jgruber 4ec372801e [heap] Handle edge case in NewSpaceAllocationCounter test
This test checks that counters accurately reflect the allocated size.
There's an edge case that can occur when, previously to the allocation,
the page does not have enough space left to allocate the requested
object - then we move on to a fresh page, fill the remaining space of
the old page with a filler object, and allocate the requested object on
the new page.

The counters will show the size of the filler object plus the requested
object size, while the test expects only the requested size.

This CL fixes that case by performing two GCs to clear out new space.

BUG=

Review-Url: https://codereview.chromium.org/2652933002
Cr-Commit-Position: refs/heads/master@{#42646}
2017-01-25 07:41:34 +00:00
..
heap-tester.h [heap] Don't allocate immovable code in LO space during serialization 2017-01-17 14:19:58 +00:00
heap-utils.cc [heap] Minor MC: Add marking 2016-11-18 12:56:16 +00:00
heap-utils.h [heap] Exclude the owner of the linear allocation area from evacuation. 2016-11-03 12:13:23 +00:00
test-alloc.cc Access double fields in C++ as uint64_t fields to preserve signaling bit of a NaN. 2017-01-23 18:18:48 +00:00
test-array-buffer-tracker.cc include fixing: api.h shouldn't include objects-inl.h 2017-01-09 13:43:28 +00:00
test-compaction.cc [heap] Introduce enum of garbage collection reasons. 2016-09-07 10:03:08 +00:00
test-heap.cc [heap] Handle edge case in NewSpaceAllocationCounter test 2017-01-25 07:41:34 +00:00
test-incremental-marking.cc [heap] Remove out of date IncrementalMarkingUsingIdleTasksAfterGC test. 2016-11-17 10:07:17 +00:00
test-lab.cc [heap] Set progress bar flag for FixedArray upon allocation 2016-09-30 11:13:51 +00:00
test-mark-compact.cc [heap] Fix live object iterator to skip grey filler objects. 2017-01-16 17:21:20 +00:00
test-page-promotion.cc Mark JSArrayBuffer::SetupAllocatingData with WARN_UNUSED_RESULT. 2017-01-19 16:23:07 +00:00
test-spaces.cc PPC64: Changing test-spaces/SizeOfInitialHeap to accomodate 64K page size 2016-11-25 19:38:17 +00:00