Skip to content

JsGetRuntimeMemoryLimit

Limin Zhu edited this page Oct 9, 2015 · 1 revision

Gets the current memory limit for a runtime.

Syntax

STDAPI_(JsErrorCode)
    JsGetRuntimeMemoryLimit(
    _In_ JsRuntimeHandle runtime,
    _Out_ size_t *memoryLimit);

Parameters

  • runtime: The runtime whose memory limit is to be retrieved.
  • memoryLimit: The runtime's current memory limit, in bytes, or -1 if no limit has been set.

Return Value

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

Remarks

The memory limit of a runtime can be always be retrieved, regardless of whether or not the runtime is active on another thread.

Clone this wiki locally