v8/test/cctest/heap
Ulan Degenbaev 4d7e6f4ce7 [test] Make cctest/test-spaces/OldLargeObjectSpace more robust
The test has a loop that allocates large objects until it gets an
allocation failure. The test then asserts that the subsequent allocation
should also fail. That however does not necessarily hold because the
previously allocated objects may be collected to free up the space.

This change creates a handle for each allocated object. It also
restricts the size of the heap to 20MB to reduce memory consumption.

Bug: v8:11172
Change-Id: Ic3dc1a0f5f235b0313bab2071546b59a77bd55e5
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2912884
Auto-Submit: Ulan Degenbaev <ulan@chromium.org>
Reviewed-by: Dominik Inführ <dinfuehr@chromium.org>
Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#74728}
2021-05-25 07:48:02 +00:00
..
heap-tester.h Reland "Reland "[deoptimizer] Change deopt entries into builtins"" 2020-10-21 06:01:38 +00:00
heap-utils.cc [heap] Fix failed tests when enabling single generation 2021-04-21 07:33:51 +00:00
heap-utils.h [heap, infra] Remove --local-heaps and --concurrent-allocation flags 2021-02-01 11:01:26 +00:00
test-alloc.cc [cleanup] Remove atomic kRelaxed accessors in favour for non-atomic ones 2021-03-08 10:57:19 +00:00
test-array-buffer-tracker.cc [heap] Make creation of NewSpace and NewLargeObjectSpace optional 2021-05-04 06:47:54 +00:00
test-compaction.cc [heap] Add flag to crash when evacuation aborts 2021-03-01 12:56:02 +00:00
test-concurrent-allocation.cc [heap] Fix failed tests when enabling single generation 2021-04-21 07:33:51 +00:00
test-concurrent-marking.cc [heap] Fix failed tests when enabling single generation 2021-04-21 07:33:51 +00:00
test-embedder-tracing.cc api,heap: Avoid dropping global handles when stack state is overridden 2021-05-12 19:20:23 +00:00
test-external-string-tracker.cc [heap] Make creation of NewSpace and NewLargeObjectSpace optional 2021-05-04 06:47:54 +00:00
test-heap.cc Remove one-shot function optimizations. 2021-05-21 12:38:18 +00:00
test-incremental-marking.cc [test]: Fix platform lifetime in IncrementalMarkingUsingTasks. 2020-11-27 06:58:21 +00:00
test-invalidated-slots.cc [heap] Fix failed tests when enabling single generation 2021-04-21 07:33:51 +00:00
test-iterators.cc [test] Fix or skip CHECKs in tests for TPH 2021-05-03 09:05:08 +00:00
test-lab.cc [torque] Use generated instance types, part 1 2019-10-28 18:30:31 +00:00
test-mark-compact.cc [heap] Fix failed tests when enabling single generation 2021-04-21 07:33:51 +00:00
test-memory-measurement.cc [cleanup] Remove stale TODOs 2021-04-23 13:36:32 +00:00
test-page-promotion.cc [test] Tests should only invoke NewSpace::Grow in safepoint 2020-09-24 16:14:10 +00:00
test-shared-heap.cc Revert "[heap] Disable the young generation in shared heaps" 2021-05-20 14:09:09 +00:00
test-spaces.cc [test] Make cctest/test-spaces/OldLargeObjectSpace more robust 2021-05-25 07:48:02 +00:00
test-unmapper.cc [test]: Fix platform lifetime in EagerUnmappingInCollectAllAvailableGarbage. 2020-10-28 09:12:05 +00:00
test-weak-references.cc Prevent memory chunk access for TPH 2021-05-06 12:29:32 +00:00
test-write-barrier.cc [heap] Fix failed tests when enabling single generation 2021-04-21 07:33:51 +00:00