Commit be9788b
committed
n-api: detach external ArrayBuffers on env exit
Make sure that `ArrayBuffer`s created using
`napi_create_external_arraybuffer` are rendered unusable
after its memory has been released.
PR-URL: #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>1 parent e8af569 commit be9788bCopy full SHA for be9788b
File tree
Expand file treeCollapse file tree
1 file changed
+38
-5
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
1 file changed
+38
-5
lines changedOpen diff view settings
Collapse file
+38-5Lines changed: 38 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
186 | 186 | |
187 | 187 | |
188 | 188 | |
189 | | - |
190 | | - |
| 189 | + |
| 190 | + |
191 | 191 | |
192 | 192 | |
193 | 193 | |
| ||
289 | 289 | |
290 | 290 | |
291 | 291 | |
292 | | - |
| 292 | + |
293 | 293 | |
294 | 294 | |
295 | 295 | |
| ||
310 | 310 | |
311 | 311 | |
312 | 312 | |
| 313 | + |
313 | 314 | |
314 | 315 | |
315 | 316 | |
| ||
335 | 336 | |
336 | 337 | |
337 | 338 | |
| 339 | + |
| 340 | + |
| 341 | + |
| 342 | + |
| 343 | + |
| 344 | + |
| 345 | + |
| 346 | + |
| 347 | + |
| 348 | + |
| 349 | + |
| 350 | + |
| 351 | + |
| 352 | + |
| 353 | + |
| 354 | + |
| 355 | + |
| 356 | + |
| 357 | + |
| 358 | + |
| 359 | + |
| 360 | + |
| 361 | + |
| 362 | + |
| 363 | + |
| 364 | + |
| 365 | + |
| 366 | + |
| 367 | + |
| 368 | + |
| 369 | + |
338 | 370 | |
339 | 371 | |
340 | 372 | |
| ||
2587 | 2619 | |
2588 | 2620 | |
2589 | 2621 | |
2590 | | - |
2591 | | - |
| 2622 | + |
| 2623 | + |
| 2624 | + |
2592 | 2625 | |
2593 | 2626 | |
2594 | 2627 | |
|
0 commit comments