Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.