We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0560fc2 commit 5d92b5fCopy full SHA for 5d92b5f
src/options.c
@@ -532,8 +532,11 @@ static void mi_option_init(mi_option_desc_t* desc) {
532
desc->init = INITIALIZED;
533
}
534
else {
535
- _mi_warning_message("environment option mimalloc_%s has an invalid value: %s\n", desc->name, buf);
+ /* _mi_warning_message() will itself call mi_option_get() for some options,
536
+ * so to avoid a possible infinite recursion it's important to mark the option as
537
+ * "initialized" first */
538
desc->init = DEFAULTED;
539
+ _mi_warning_message("environment option mimalloc_%s has an invalid value: %s\n", desc->name, buf);
540
541
542
mi_assert_internal(desc->init != UNINIT);
0 commit comments