0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 23:43:09 +01:00
nodejs/test/addons
Anna Henningsen b7ef593744
buffer: release buffers with free callbacks on env exit
Invoke the free callback for a given `Buffer` if it was created
with one, and mark the underlying `ArrayBuffer` as detached.

This makes sure that the memory is released e.g. when addons inside
Workers create such `Buffer`s.

PR-URL: https://github.com/nodejs/node/pull/30551
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
2019-11-30 02:02:50 +01:00
..
async-hello-world
async-hooks-id
async-hooks-promise
async-resource
buffer-free-callback
callback-scope
dlopen-ping-pong src: add file name to 'Module did not self-register' error 2019-11-19 16:03:55 +01:00
errno-exception
force-context-aware test: simplify force-context-aware test 2019-09-29 08:42:08 -04:00
heap-profiler
hello-world test: make exported method static 2019-08-15 22:58:40 -07:00
hello-world-function-export
load-long-path test: clean tmpdir on process exit 2019-08-10 19:22:11 -07:00
make-callback
make-callback-domain-warning
make-callback-recurse test: use arrow functions for callbacks 2019-10-25 13:29:50 -07:00
new-target
node-module-version
non-node-context
not-a-binding src: add file name to 'Module did not self-register' error 2019-11-19 16:03:55 +01:00
null-buffer-neuter
openssl-binding src: migrate off ArrayBuffer::GetContents 2019-11-12 06:29:23 +01:00
openssl-client-cert-engine test: add mustCall to openssl-client-cert-engine 2019-05-03 06:22:30 +02:00
openssl-key-engine tls: add option for private keys for OpenSSL engines 2019-09-27 15:50:56 -07:00
parse-encoding
register-signal-handler test: add addon tests for RegisterSignalHandler() 2019-06-14 19:11:42 +02:00
repl-domain-abort
stringbytes-external-exceed-max test: specialize OOM check for AIX 2019-07-27 16:03:43 -07:00
symlinked-module
uv-handle-leak test: make sure vtable is generated in addon test with LTO 2019-06-07 05:20:40 +02:00
worker-addon report: modify getReport() to return an Object 2019-07-12 14:48:09 -07:00
worker-buffer-callback buffer: release buffers with free callbacks on env exit 2019-11-30 02:02:50 +01:00
zlib-binding src: migrate off ArrayBuffer::GetContents 2019-11-12 06:29:23 +01:00
.gitignore
addon.status test: specialize OOM check for AIX 2019-07-27 16:03:43 -07:00
common.gypi
testcfg.py