diff options
author | Sverker Eriksson <[email protected]> | 2016-01-07 18:56:48 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2016-01-07 18:56:48 +0100 |
commit | 8c4e2a32656f98e20a970e5ab45fb7405ae0095c (patch) | |
tree | e2b93ef1a01c047cbac3a415637dc985e82acd20 /erts/emulator/beam/erl_init.c | |
parent | 27cd49c16b442625782d68e6f802a1c76c48d349 (diff) | |
parent | 5db3a62f821413f267427b2bc38045324c57aaf6 (diff) | |
download | otp-8c4e2a32656f98e20a970e5ab45fb7405ae0095c.tar.gz otp-8c4e2a32656f98e20a970e5ab45fb7405ae0095c.tar.bz2 otp-8c4e2a32656f98e20a970e5ab45fb7405ae0095c.zip |
Merge branch 'sverk/proc-dict-opt'
OTP-13167
* sverk/proc-dict-opt:
erts: Add new test case pdict_SUITE:mixed
erts: Add 'fill_heap' to erts_debug:state_internal_state
erts: Rename proc dict size to arraySize
erts: Refactor proc dict with 'usedSlots'
erts: Add sizeMask for faster proc dict indexing
erts: Remove ProcDict.used
erts: Add proc dict macros ERTS_PD_START/SIZE
erts: Optimize away function "array_put" in proc dict
erts: Optimize hashing in process dictionary
Diffstat (limited to 'erts/emulator/beam/erl_init.c')
-rw-r--r-- | erts/emulator/beam/erl_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_init.c b/erts/emulator/beam/erl_init.c index e3390c2769..58ef09662c 100644 --- a/erts/emulator/beam/erl_init.c +++ b/erts/emulator/beam/erl_init.c @@ -192,7 +192,7 @@ Uint32 verbose; /* See erl_debug.h for information about verbose */ int erts_atom_table_size = ATOM_LIMIT; /* Maximum number of atoms */ -int erts_pd_initial_size = 10; +int erts_pd_initial_size = 8; /* must be power of 2 */ int erts_modified_timing_level; @@ -1479,7 +1479,7 @@ erl_start(int argc, char **argv) VERBOSE(DEBUG_SYSTEM, ("using minimum heap size %d\n", H_MIN_SIZE)); } else if (has_prefix("pds", sub_param)) { arg = get_arg(sub_param+3, argv[i+1], &i); - if ((erts_pd_initial_size = atoi(arg)) <= 0) { + if (!erts_pd_set_initial_size(atoi(arg))) { erts_fprintf(stderr, "bad initial process dictionary size %s\n", arg); erts_usage(); } |