Apply https://chromium-review.googlesource.com/c/v8/v8/+/845682
Test: cctest/test-heap/OutOfMemory
Flags: test-heap/OutOfMemory --random-seed=-976563914 --nohard-abort
Command: out/Release/cctest test-heap/OutOfMemory --random-seed=-976563914 --nohard-abort
Build environment:
gn_args: dcheck_always_on = true is_component_build = false is_debug = false symbol_level = 1 target_cpu = "x86" use_goma = true v8_use_snapshot = false
Run #1
Exit code: -6
Result: FAIL
Expected outcomes: PASS
Duration: 00:05:012
Stderr:
#
# Fatal error in ../../src/heap/spaces.cc, line 1665
# Debug check failed: Capacity() <= heap()->MaxOldGenerationSize().
#
#
#
#FailureMessage Object: 0xff8f1ec0