Tolerate experimental features for abort_conf.

Not aborting with unrecognized experimental options.  This helps us testing
experimental features with abort_conf enabled.
This commit is contained in:
Qi Wang 2018-07-17 14:09:31 -07:00 committed by Qi Wang
parent 6deed86deb
commit 4bc48718b2

View File

@ -896,6 +896,11 @@ malloc_conf_error(const char *msg, const char *k, size_t klen, const char *v,
malloc_printf("<jemalloc>: %s: %.*s:%.*s\n", msg, (int)klen, k,
(int)vlen, v);
/* If abort_conf is set, error out after processing all options. */
const char *experimental = "experimental_";
if (strncmp(k, experimental, strlen(experimental)) == 0) {
/* However, tolerate experimental features. */
return;
}
had_conf_error = true;
}