https://chromium.googlesource.com/v8/v8/+/aaf1bdc01c1ea9ebfa28a454d876708af478db83commit aaf1bdc01c1ea9ebfa28a454d876708af478db83
Author: Nikolaos Papaspyrou <
niko...@chromium.org>
Date: Fri Feb 10 09:48:24 2023
[heap][test] Fix cctest for conservative stack scanning
The following tests rely on precise garbage collection, as they test
--- among other things --- that some objects have been collected after
a given number of GCs. They occasionally fail if conservative stack
scanning is used and this CL fixes them, mostly by disabling CSS.
- test-concurrent-allocation/*: they set a very low limit on the heap
size and test that GC works correctly when triggered from concurrent
allocation. With CSS, GC does not always collect enough and we get
OOM errors. Here we did not disable CSS but increased the limit.
- unittests/APIExceptionTest.ExceptionMessageDoesNotKeepContextAlive:
it tests that some weak reference has been cleared after a GC.
- test-heap/*Weak*: same.
- test-heap/TestSizeOfRegexpCode: it uses GC to compute the size of
code generated for a regexp.
- test-heap/Regress1465: counts map transitions and expects some to
be collected by a GC.
- test-heap/LeakNativeContext*: they test that some global objects
have been collected by a GC.
- test-api/WeakCallbackApi: same.
- test-api/Regress528: same.
- test-api/TriggerDelayedMainThreadMetricsEvent: it tests that a
delayed main thread metrics event for an invalid context is ignored.
If the GC does not collect the context, the event is not ignored and
the test fails.
Bug: v8:13257
Change-Id: Ied9366227f2d6fbfb003840f57acece4afb2a24e
Reviewed-on:
https://chromium-review.googlesource.com/c/v8/v8/+/4232297Commit-Queue: Nikolaos Papaspyrou <
niko...@chromium.org>