forked from svaarala/duktape
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'add-markandsweep-finalizer-torture-gh313'
Add DUK_USE_MARKANDSWEEP_FINALIZE_TORTURE to cause one fake finalizer per mark-and-sweep so that potential finalizer side effects are realized on every mark-and-sweep. Combine with DUK_USE_GC_TORTURE for maximum effect.
- Loading branch information
Showing
3 changed files
with
85 additions
and
2 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
config/config-options/DUK_USE_MARKANDSWEEP_FINALIZER_TORTURE.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
define: DUK_USE_MARKANDSWEEP_FINALIZER_TORTURE | ||
introduced: 1.3.0 | ||
related: | ||
- DUK_USE_GC_TORTURE | ||
- DUK_USE_REFZERO_FINALIZER_TORTURE | ||
default: false | ||
tags: | ||
- gc | ||
- memory | ||
- development | ||
- torture | ||
description: > | ||
Development time option: simulate a fake finalizer call during every | ||
mark-and-sweep round. This is useful to detect bugs caused by finalizer | ||
side effects. Most useful when combined with DUK_USE_GC_TORTURE so that | ||
potential finalizer side effects are realized on every allocation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters