mirror of
https://github.com/nodejs/node.git
synced 2025-05-08 20:39:30 +00:00

The finalizer normally never gets called while a reference is strong. However, during environment shutdown all finalizers must get called. In order to unify the deferring behavior with that of a regular finalization, we must force the reference to be weak when we call its finalizer during environment shutdown. Fixes: https://github.com/nodejs/node/issues/37236 Co-authored-by: Chengzhong Wu <legendecas@gmail.com> PR-URL: https://github.com/nodejs/node/pull/37303 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
12 lines
180 B
Python
12 lines
180 B
Python
{
|
|
"targets": [
|
|
{
|
|
"target_name": "test_reference_double_free",
|
|
"sources": [
|
|
"../entry_point.c",
|
|
"test_reference_double_free.c"
|
|
]
|
|
}
|
|
]
|
|
}
|