V8RuntimeConstraintsHeapExpansionMultiplier Property |
Gets or sets the heap expansion multiplier.
Namespace: Microsoft.ClearScript.V8Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.4.5
Syntax public double HeapExpansionMultiplier { get; set; }
Public Property HeapExpansionMultiplier As Double
Get
Set
public:
property double HeapExpansionMultiplier {
double get ();
void set (double value);
}
member HeapExpansionMultiplier : float with get, set
Property Value
DoubleRemarks
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