diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-09-21 02:15:32 +0200 |
---|---|---|
committer | Benjamin Coe <bencoe@google.com> | 2019-09-21 13:53:25 -0700 |
commit | e74f30894c46c94aa1329e8462f811b8d5e54a91 (patch) | |
tree | 988a74859dd65173b0fd4230088227687a4db57f /test/sequential | |
parent | f634f37be0f9464ab6e5318cd88af89cd416b5a6 (diff) | |
download | android-node-v8-e74f30894c46c94aa1329e8462f811b8d5e54a91.tar.gz android-node-v8-e74f30894c46c94aa1329e8462f811b8d5e54a91.tar.bz2 android-node-v8-e74f30894c46c94aa1329e8462f811b8d5e54a91.zip |
src: fix closing weak `HandleWrap`s on GC
In 0af62aae07ccbb3783030367ffe4, this was overlooked, with it
possibly leading to hard crashes.
Refs: https://github.com/nodejs/node/pull/29317
PR-URL: https://github.com/nodejs/node/pull/29640
Reviewed-By: Ben Coe <bencoe@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/sequential')
-rw-r--r-- | test/sequential/test-performance-eventloopdelay.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/sequential/test-performance-eventloopdelay.js b/test/sequential/test-performance-eventloopdelay.js index 82f47b6fb2..7b9527b386 100644 --- a/test/sequential/test-performance-eventloopdelay.js +++ b/test/sequential/test-performance-eventloopdelay.js @@ -1,3 +1,4 @@ +// Flags: --expose-gc 'use strict'; const common = require('../common'); @@ -97,3 +98,7 @@ const { } spinAWhile(); } + +// Make sure that the histogram instances can be garbage-collected without +// and not just implictly destroyed when the Environment is torn down. +process.on('exit', global.gc); |