You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
629 B

define: DUK_OPT_NO_MARK_AND_SWEEP
introduced: 1.0.0
tags:
- gc
- memory
description: >
Disable mark-and-sweep and use only reference counting for garbage
collection. This reduces code footprint and eliminates garbage collection
pauses, but objects participating in unreachable reference cycles won't be
collected until the Duktape heap is destroyed. In particular, function
instances won't be collected because they're always in a reference cycle
with their default prototype object. Unreachable objects are collected if
you break reference cycles manually (and are always freed when a heap is
destroyed).