VMOptionsExplorer icon indicating copy to clipboard operation
VMOptionsExplorer copied to clipboard

Only an option's last occurence is recorded

Open Quaffel opened this issue 2 years ago • 1 comments

It seems like the options explorer only respects the last occurrence of any flag declaration. This approach works well for the most part but poses a problem if multiple declarations - depending on compile-time flags - are present. One popular example is ThreadStackSize for which the explorer reports a value of 320, even though this only holds true for 32-bit VMs. Similarly, the options explorer does not indicate if the default values are any different for debug builds (ASSERT flag is set), as it is the case for CompilerThreadStackSize on 32-bit VMs.

It would thus be of great help to have a list of all flag declarations that set default values. To provide some context, I figured that it might be useful to furthermore list all #ifdef directives that are active at the point of declaration.

Quaffel avatar Sep 14 '22 12:09 Quaffel

Thanks for reporting! I'll take a look at how best to fix this.

chriswhocodes avatar Sep 20 '22 11:09 chriswhocodes