forked from ClearFoundry/ClearScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathV8RuntimeConstraints.cs
More file actions
83 lines (75 loc) · 3.43 KB
/
V8RuntimeConstraints.cs
File metadata and controls
83 lines (75 loc) · 3.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System;
namespace Microsoft.ClearScript.V8
{
/// <summary>
/// Specifies resource constraints for a V8 runtime.
/// </summary>
public sealed class V8RuntimeConstraints
{
// ReSharper disable EmptyConstructor
/// <summary>
/// Initializes a new <see cref="V8RuntimeConstraints"/> instance.
/// </summary>
public V8RuntimeConstraints()
{
// the help file builder (SHFB) insists on an empty constructor here
}
// ReSharper restore EmptyConstructor
/// <summary>
/// Gets or sets the maximum size of the new object heap in
/// <see href="http://en.wikipedia.org/wiki/Mebibyte">MiB</see>.
/// </summary>
/// <remarks>
/// For maximum compatibility with hosts that predate an inadvertent breaking change in
/// ClearScript 5.4.1, values greater than 1048576
/// (1 <see href="http://en.wikipedia.org/wiki/Tebibyte">TiB</see>) are assumed to be in
/// bytes rather than MiB. For example, the values 16 and 16777216 both specify a limit
/// of 16 MiB.
/// </remarks>
public int MaxNewSpaceSize { get; set; }
/// <summary>
/// Gets or sets the maximum size of the old object heap in
/// <see href="http://en.wikipedia.org/wiki/Mebibyte">MiB</see>.
/// </summary>
/// <remarks>
/// For maximum compatibility with hosts that predate an inadvertent breaking change in
/// ClearScript 5.4.1, values greater than 1048576
/// (1 <see href="http://en.wikipedia.org/wiki/Tebibyte">TiB</see>) are assumed to be in
/// bytes rather than MiB. For example, the values 16 and 16777216 both specify a limit
/// of 16 MiB.
/// </remarks>
public int MaxOldSpaceSize { get; set; }
/// <summary>
/// Gets or sets the maximum size of the executable code heap in
/// <see href="http://en.wikipedia.org/wiki/Mebibyte">MiB</see>.
/// </summary>
/// <remarks>
/// For maximum compatibility with hosts that predate an inadvertent breaking change in
/// ClearScript 5.4.1, values greater than 1048576
/// (1 <see href="http://en.wikipedia.org/wiki/Tebibyte">TiB</see>) are assumed to be in
/// bytes rather than MiB. For example, the values 16 and 16777216 both specify a limit
/// of 16 MiB.
/// </remarks>
[Obsolete("Executable code now occupies the old object heap. See MaxOldSpaceSize.")]
public int MaxExecutableSize { get; set; }
/// <summary>
/// Gets or sets the maximum size of the young object heap in
/// <see href="http://en.wikipedia.org/wiki/Mebibyte">MiB</see>.
/// </summary>
/// <remarks>
/// For maximum compatibility with hosts that predate an inadvertent breaking change in
/// ClearScript 5.4.1, values greater than 1048576
/// (1 <see href="http://en.wikipedia.org/wiki/Tebibyte">TiB</see>) are assumed to be in
/// bytes rather than MiB. For example, the values 16 and 16777216 both specify a limit
/// of 16 MiB.
/// </remarks>
[Obsolete("Use MaxNewSpaceSize instead.")]
public int MaxYoungSpaceSize
{
get { return MaxNewSpaceSize; }
set { MaxNewSpaceSize = value; }
}
}
}