with_gctorture2

0th

Percentile

Torture Garbage Collector

Temporarily turn gctorture2 on.

Usage
with_gctorture2(new, code, wait = new, inhibit_release = FALSE)
Arguments
new

[integer] run GC every 'step' allocations.

code

[any] Code to execute in the temporary environment

wait

integer; number of allocations to wait before starting GC torture.

inhibit_release

logical; do not release free objects for re-use: use with caution.

Value

[any] The results of the evaluation of the code argument.

See Also

withr for examples

Aliases
  • with_gctorture2
Documentation reproduced from package withr, version 2.1.2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.