node/test/cctest
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
..
gtest deps,test: bump googletest to 39f72ea6f5 2019-04-22 17:34:12 -04:00
node_test_fixture.cc src: add abstract `IsolatePlatformDelegate` 2019-11-20 19:02:55 +01:00
node_test_fixture.h src: add abstract `IsolatePlatformDelegate` 2019-11-20 19:02:55 +01:00
test_aliased_buffer.cc src: remove env-inl.h from header files 2019-05-23 08:51:41 -07:00
test_base64.cc src: apply clang-tidy rule modernize-deprecated-headers 2019-02-27 05:35:53 +01:00
test_base_object_ptr.cc src: introduce custom smart pointers for `BaseObject`s 2019-11-19 13:47:29 +01:00
test_environment.cc buffer: release buffers with free callbacks on env exit 2019-11-30 02:02:50 +01:00
test_inspector_socket.cc src: remove util-inl.h from header files 2019-05-13 13:43:26 -07:00
test_inspector_socket_server.cc inspector: added --inspect-publish-uid 2019-06-03 18:15:04 +03:00
test_linked_binding.cc src: allow adding linked bindings to Environment 2019-11-07 19:51:11 -08:00
test_node_postmortem_metadata.cc src: introduce custom smart pointers for `BaseObject`s 2019-11-19 13:47:29 +01:00
test_per_process.cc tools: fix js2c regression 2019-06-02 12:03:40 +02:00
test_platform.cc src: add abstract `IsolatePlatformDelegate` 2019-11-20 19:02:55 +01:00
test_report_util.cc src,test: fix JSON escaping in node-report 2019-01-25 08:19:11 +01:00
test_traced_value.cc src: apply clang-tidy rule modernize-deprecated-headers 2019-02-27 05:35:53 +01:00
test_url.cc src: remove env-inl.h from header files 2019-05-23 08:51:41 -07:00
test_util.cc src: de-lint header usage 2019-03-12 09:57:19 -04:00