0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-28 10:09:25 -05:00
denoland-rusty-v8/tests
Bert Belder 954163ab07
Fix the 'heap_limits' test (#430)
After upgrading to V8 8.6.337, with a 20 MB heap limit, the
near-heap-limit callback never gets called before V8 runs out of memory.

It turns out that this test exhibits memory allocation behavior which
produces so little actual garbage that 'scavenge' type garbage
collections make memory usage go up rather than down. Because of this,
V8 runs out of memory in the middle of a garbage collection cycle, after
it has already decided that there's no need to run the near-heap-limit
callback.

The issue is fixed by making sure that some actual garbage is produced
alongside with the retained objects that will eventually fill up the
heap.
2020-08-06 04:08:14 +02:00
..
compile_fail Integrate 'TryCatch' in the scope system (#406) 2020-06-26 01:50:32 +02:00
slots.rs Remove unnecessary 'DerefMut' impl from 'Local<T>' (#406) 2020-06-26 15:05:39 +02:00
test_api.rs Fix the 'heap_limits' test (#430) 2020-08-06 04:08:14 +02:00
test_ui.rs Rewrite the scope system from scratch (#406) 2020-06-26 01:42:00 +02:00