Click or drag to resize

V8RuntimeConstraintsHeapExpansionMultiplier Property

Gets or sets the heap expansion multiplier.

Namespace: Microsoft.ClearScript.V8
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.4.5
Syntax
public double HeapExpansionMultiplier { get; set; }

Property Value

Double
Remarks
When set to a value greater than 1, this property enables on-demand heap expansion, which automatically increases the maximum heap size by the specified multiplier whenever the script engine is close to exceeding the current limit. Note that a buggy or malicious script can still cause an application to fail by exhausting its address space or total available memory. On-demand heap expansion is recommended for use in conjunction with heap size monitoring (see MaxHeapSize, MaxRuntimeHeapSize) to help contain runaway scripts.
See Also