How does JavaScript garbage collection work in Chr

2019-07-25 14:16发布

问题:

Garbage collection is a behind-the-scenes language feature, so I'm assuming it's going to be slightly different in each browser and this question is specifically about Google Chrome.

How does Chrome's garbage collector work- what triggers it, can/should I manually trigger it, and (possibly out of scope for a single question) what patterns might cause memory leaks to get past it?