mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-12-28 10:09:25 -05:00
954163ab07
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. |
||
---|---|---|
.. | ||
compile_fail | ||
slots.rs | ||
test_api.rs | ||
test_ui.rs |