Condividi tramite


JsCollectGarbage Function

Performs a full garbage collection.

Syntax

STDAPI_(JsErrorCode) JsCollectGarbage(  
   _In_ JsRuntimeHandle runtime  
);  

Parameters

runtime
The runtime in which the garbage collection will be performed.

Return Value

The code JsNoError if the operation succeeded, a failure code otherwise.

Requirements

Header: jsrt.h

See Also

Reference (JavaScript Runtime)