ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.V8
V8ScriptEngine Class
V8ScriptEngine Properties
CpuProfileSampleInterval Property
EnableRuntimeInterruptPropagation Property
FileNameExtension Property
Global Property
MaxRuntimeHeapSize Property
MaxRuntimeStackUsage Property
RuntimeHeapSizeSampleInterval Property
RuntimeHeapSizeViolationPolicy Property
Script Property
SuppressExtensionMethodEnumeration Property
SuppressInstanceMethodEnumeration Property

# V8ScriptEngineMaxRuntimeStackUsage Property

Gets or sets the maximum amount by which the V8 runtime is permitted to grow the stack during script execution.
Namespace: Microsoft.ClearScript.V8
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public UIntPtr MaxRuntimeStackUsage { get; set; }

    Public Property MaxRuntimeStackUsage As UIntPtr
    	Get
    	Set

    public:
    property UIntPtr MaxRuntimeStackUsage {
    	UIntPtr get ();
    	void set (UIntPtr value);
    }

    member MaxRuntimeStackUsage : UIntPtr with get, set

#### Property Value

UIntPtr
Remarks

This property is specified in bytes. When it is set to the default value, no stack usage limit is enforced, and scripts with unchecked recursion or other excessive stack usage can cause unrecoverable errors and process termination.

Note that the V8 runtime does not monitor stack usage while a host call is in progress. Monitoring is resumed when control returns to the runtime.

See Also

#### Reference

V8ScriptEngine Class
Microsoft.ClearScript.V8 Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft