v8/test/unittests
Omer Katz acb0263c7f cppgc: Fix flaky crash due to used bytes counters mismatch
Cppgc reports used bytes statistics to CppHeap. CppHeap should forward
the stats to v8. However, if we are not allowed to trigger a GC, CppHeap
will cache the stats until the reporting.
On GC finalization, CppHeap resets v8's counters to the current marked
bytes counter.
If the last reported stats before GC finalization are cached, CppHeap
doesn't clear the cache on GC finalization. On the next stats reporting,
CppHeap will report the cached values. If the cache is a decrease that
is larger than the current marked bytes, a DCHECK in
LocalEmbedderHeapTracer::DecreaseAllocatedSize will fail.

Bug: chromium:1056170
Change-Id: I47933abc3e5f5c4a91454e0ec03adde5cf61d8fc
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3056970
Commit-Queue: Omer Katz <omerkatz@chromium.org>
Reviewed-by: Anton Bikineev <bikineev@chromium.org>
Cr-Commit-Position: refs/heads/master@{#75986}
2021-07-29 10:11:42 +00:00
..
api Revert "Calls to {console} require an access check for the provided arguments" 2021-07-23 11:15:23 +00:00
asmjs [Respect] Prefer inclusive terms 2020-06-22 18:11:23 +00:00
assembler Add RISC-V backend 2021-02-09 17:06:36 +00:00
base Fix v8 unittests broken on official builds by recent crash logging changes 2021-07-05 07:38:47 +00:00
codegen Reland "[codegen] Add static interface descriptors" 2021-04-16 15:43:05 +00:00
compiler [compiler] Make JSFunction bg-serialized 2021-07-19 13:47:16 +00:00
compiler-dispatcher [cleanup] Pass Isolate to Compiler::Compile* 2021-02-16 11:34:17 +00:00
date Reland "[d8] Remove maximum workers limitation" 2019-07-30 07:56:17 +00:00
debug Do not walk prototype chain of restricted object when displaying it in 2021-07-23 08:37:16 +00:00
diagnostics Move unittest files 2019-05-27 08:52:23 +00:00
execution CallDepthScope should track the current microtask scope 2021-04-30 14:08:49 +00:00
heap cppgc: Fix flaky crash due to used bytes counters mismatch 2021-07-29 10:11:42 +00:00
interpreter Fix most instances of -Wunreachable-code-aggressive. 2021-07-01 03:03:25 +00:00
libplatform [Jobs API]: Cleanup migration of missing Jobs pieces. 2020-09-02 20:51:29 +00:00
logging [test] Skip RuntimeCallStatsTest.GarbageCollection for gc stress tests 2021-05-31 12:10:56 +00:00
numbers [fastcall] Support JSArray as arguments 2021-06-23 14:01:40 +00:00
objects [regexp] Remove --harmony-regexp-match-indices 2021-07-22 02:28:42 +00:00
parser [cleanup] Remove DISALLOW_COPY_AND_ASSIGN in test/{common,unittests} 2020-11-06 06:07:54 +00:00
profiler [cpu-profiler] Implement basic refcounting of CodeEntry strings 2020-12-22 02:39:09 +00:00
regexp [web snapshot] Support RegExp 2021-05-14 10:27:57 +00:00
regress [heap] Remove Factory::NewUninitializedFixedArray 2021-04-26 13:52:38 +00:00
runtime Do not walk prototype chain of restricted object when displaying it in 2021-07-23 08:37:16 +00:00
strings [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
tasks [test] Skip parallel compile tasks tests under off-thread 2020-11-16 15:50:20 +00:00
torque [torque] Invert the default for @generateCppClass 2021-07-21 15:21:00 +00:00
utils [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
wasm [traphandler] Fix test link errors on some MSan/ASan builds 2021-07-28 13:34:37 +00:00
zone [zone] Final cleanup of zone allocations 2020-07-16 17:47:46 +00:00
BUILD.gn Do not walk prototype chain of restricted object when displaying it in 2021-07-23 08:37:16 +00:00
DEPS Move unit tests to test/unittests. 2014-10-01 08:34:25 +00:00
run-all-unittests.cc cppgc: Avoid initializing cppgc platform through V8 2021-02-09 08:26:11 +00:00
test-helpers.cc [runtime] Rename Builtins::Name to Builtin 1/2 2021-06-07 20:05:44 +00:00
test-helpers.h [cleanup] Remove DISALLOW_COPY_AND_ASSIGN in test/{common,unittests} 2020-11-06 06:07:54 +00:00
test-utils.cc [cleanup][test] Remove redundant NOLINT annotations 2021-04-30 11:46:14 +00:00
test-utils.h [cleanup][test] Remove redundant NOLINT annotations 2021-04-30 11:46:14 +00:00
testcfg.py [unittests] initialize the loop variable 2020-06-05 12:24:10 +00:00
unittests.status PPC: skip some cppgc tests as PPC page size is too large 2021-07-12 20:24:14 +00:00