ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.V8
V8RuntimeConstraints Class
V8RuntimeConstraints Properties
HeapExpansionMultiplier Property
MaxArrayBufferAllocation Property
MaxExecutableSize Property
MaxNewSpaceSize Property
MaxOldSpaceSize Property
MaxYoungSpaceSize Property

# V8RuntimeConstraintsMaxOldSpaceSize Property

Gets or sets the maximum size of the old object heap in MiB.
Namespace: Microsoft.ClearScript.V8
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public int MaxOldSpaceSize { get; set; }

    Public Property MaxOldSpaceSize As Integer
    	Get
    	Set

    public:
    property int MaxOldSpaceSize {
    	int get ();
    	void set (int value);
    }

    member MaxOldSpaceSize : int with get, set

#### Property Value

Int32
Remarks
For maximum compatibility with hosts that predate an inadvertent breaking change in ClearScript 5.4.1, values greater than 1048576 (1 TiB) are assumed to be in bytes rather than MiB. For example, the values 16 and 16777216 both specify a limit of 16 MiB.
See Also

#### Reference

V8RuntimeConstraints Class
Microsoft.ClearScript.V8 Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft