Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

System.GC.HeapHardLimit and .HeapHardLimitPercent in runtimeconfig.json - #25574

Merged
5 commits merged into
masterfrom
unknown repository
Jul 11, 2019
Merged

5 commits merged into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Jul 5, 2019

Copy link
Copy Markdown

This adds two new configuration options, "System.GC.HeapHardLimit" and
"System.GC.HeapHardLimitPercent" to runtimeconfig.json. These behave the
same as COMPlus_GCHeapHardLimit and COMPlus_GCHeapHardLimitPercent.

I tested this change by manually debugging into EEConfig::sync, GCToEEInterface::GetIntConfigValue, and GCHeap::Initialize.

This adds two new configuration options, "System.GC.HeapHardLimit" and
"System.GC.HeapHardLimitPercent" to runtimeconfig.json. These behave the
same as COMPlus_GCHeapHardLimit and COMPlus_GCHeapHardLimitPercent.
Comment thread src/vm/eeconfig.cpp Outdated
if (!iGCgen0size) iGCgen0size = GetConfigDWORD_DontUse_(CLRConfig::UNSUPPORTED_GCgen0size, iGCgen0size);
#endif //_WIN64

iGCHeapHardLimit = Configuration::GetKnobULONGLONGValue(W("System.GC.HeapHardLimit"));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Configuration::GetKnobULONGLONGValue [](start = 22, length = 37)

this will need to be cast to (size_t)

@Maoni0

Maoni0 commented Jul 6, 2019

Copy link
Copy Markdown
Member

other than the one minor comment I have above this LGTM

@ghost
ghost requested a review from MeiChin-Tsai July 8, 2019 23:26
@ghost
ghost merged commit 9227bd5 into dotnet:master Jul 11, 2019
@ghost
ghost deleted the runtimeconfig_hardlimit branch July 11, 2019 20:14
@ghost ghost mentioned this pull request Jul 12, 2019
@Maoni0 Maoni0 mentioned this pull request Jul 25, 2019
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…on (dotnet/coreclr#25574)

* System.GC.HeapHardLimit and .HeapHardLimitPercent in runtimeconfig.json

This adds two new configuration options, "System.GC.HeapHardLimit" and
"System.GC.HeapHardLimitPercent" to runtimeconfig.json. These behave the
same as COMPlus_GCHeapHardLimit and COMPlus_GCHeapHardLimitPercent.

* Add cast

* Dummy change to trigger tests rerun


Commit migrated from dotnet/coreclr@9227bd5
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants