Files
node/lib
Anna Henningsen 6f6bf010a7 src: use symbol to store AsyncWrap resource
Use a symbol on the bindings object to store the public resource object,
rather than a `v8::Global` Persistent. This has several advantages:

- It’s harder to inadvertently create memory leaks this way.
  The garbage collector sees the `AsyncWrap` →  resource link like
  a regular JS property, and can collect the objects as a group,
  even if the resource object should happen to point back to the
  `AsyncWrap` object.
- This will make it easier in the future to use `owner_symbol` for
  this purpose, which is generally the direction we should be moving
  the `async_hooks` API into (i.e. using more public objects instead
  of letting internal wires stick out).

PR-URL: https://github.com/nodejs/node/pull/31745
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
2020-05-21 17:45:09 -07:00
..
2020-02-18 22:15:50 -08:00
2019-12-17 08:11:13 -05:00
2020-05-09 08:04:10 +02:00
2020-05-16 06:42:16 +02:00
2020-05-16 06:42:16 +02:00
…
2020-05-16 06:42:16 +02:00
2020-03-09 12:44:16 +01:00
2020-04-28 19:10:26 +02:00
2020-05-20 17:05:06 +02:00
2020-05-20 17:31:47 +02:00
…
2020-04-14 13:54:21 +08:00
2019-12-11 16:38:06 -06:00
2020-05-16 06:42:16 +02:00
2020-05-16 06:42:16 +02:00
2020-05-16 06:42:16 +02:00