Repository navigation
Make GCToEEInterface::Get*ConfigValue check the runtimeconfig.json - #34797
Conversation
|
Tagging @Maoni0 as an area owner |
|
since now you are checking both env var and runtimeconfig in gcenv.ee.cpp, it means we can get rid of code like this: and not get the configs in eeconfig.cpp at all unless they are also used on the VM side (like LOHThresHold). |
|
In an ideal world, all the configuration related logic should go through the table-driven logic I refined in this PR. But as I started to go through the individual public configuration keys to find opportunities to eliminate manually written code. I detected all sort of inconsistencies in the code with respect to these knobs summarized below:
(These items are not in a particular order) The first three are boolean flags, they might be specified through the runtime/src/coreclr/src/vm/ceemain.cpp Lines 417 to 437 in 91f1418 The interesting inconsistency between these flags have to do with where they occurs. If we search for In any case, the table-driven logic wouldn't be able to replace that code, and I will keep the
The fact that The last two are interesting, whoever wrote that code go through the work to create an accessor in eeconfig, but the accessor is never called. I experimented with commenting that out, and CoreCLR build just fine. EDIT: A few easy problems found above are fixed by simply using the table. |
68fcb43 to
418366d
Compare
|
thanks for looking into this! it's definitely better to make this logic have as little special handling as possible so if we could have a simply policy as you suggested, as much as possible, it'd be great. |
418366d to
bde7e4f
Compare
bde7e4f to
abd949c
Compare
Maoni0
left a comment
There was a problem hiding this comment.
LGTM; also chatted with Andrew offline and he will make a separate PR to address my last comment.
Fixes #12948
Fixes #32956