| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/torture.R |
| 3 |
\name{with_gctorture2} |
| 4 |
\alias{with_gctorture2} |
| 5 |
\title{Torture Garbage Collector} |
| 6 |
\usage{ |
| 7 |
with_gctorture2(new, code, wait = new, inhibit_release = FALSE) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{new}{\verb{[integer]}\cr run GC every 'step' allocations.} |
| 11 |
|
| 12 |
\item{code}{\code{[any]}\cr Code to execute in the temporary environment} |
| 13 |
|
| 14 |
\item{wait}{integer; number of allocations to wait before starting GC torture.} |
| 15 |
|
| 16 |
\item{inhibit_release}{logical; do not release free objects for |
| 17 |
re-use: use with caution.} |
| 18 |
} |
| 19 |
\value{ |
| 20 |
\code{[any]}\cr The results of the evaluation of the \code{code} |
| 21 |
argument. |
| 22 |
} |
| 23 |
\description{ |
| 24 |
Temporarily turn gctorture2 on. |
| 25 |
} |
| 26 |
\seealso{ |
| 27 |
\code{\link{withr}} for examples |
| 28 |
} |