diff options
author | Kjell Winblad <[email protected]> | 2019-04-08 17:11:25 +0200 |
---|---|---|
committer | Kjell Winblad <[email protected]> | 2019-04-18 17:39:11 +0200 |
commit | 62da0f2dff72fc5d58e549593fe9c73610713d9c (patch) | |
tree | b89a466b4093b1f3f7dc7b27ecb4190f5d8ffcf6 /erts/emulator/beam/erl_alloc.types | |
parent | 1edbf63cf20b44d2bdc9370427ee2575f07f642d (diff) | |
download | otp-62da0f2dff72fc5d58e549593fe9c73610713d9c.tar.gz otp-62da0f2dff72fc5d58e549593fe9c73610713d9c.tar.bz2 otp-62da0f2dff72fc5d58e549593fe9c73610713d9c.zip |
Make persistent_term:put/2 and persistent_term:erase/1 yield
Prior to this commit, the functions put/2 and erase/1 in the
persistent_term module did not yield even if the persistent term table
was large (the persistent term table is copied every time put/2 or
erase/1 is called). Furthermore, a call to put/2 or erase/1 did only
consume a single reduction. This commit fixes these problems.
Diffstat (limited to 'erts/emulator/beam/erl_alloc.types')
-rw-r--r-- | erts/emulator/beam/erl_alloc.types | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_alloc.types b/erts/emulator/beam/erl_alloc.types index e7329daa2d..92e5069c71 100644 --- a/erts/emulator/beam/erl_alloc.types +++ b/erts/emulator/beam/erl_alloc.types @@ -282,6 +282,7 @@ type ENVIRONMENT SYSTEM SYSTEM environment type PERSISTENT_TERM LONG_LIVED CODE persisten_term type PERSISTENT_LOCK_Q SHORT_LIVED SYSTEM persistent_lock_q +type PERSISTENT_TERM_TMP SHORT_LIVED SYSTEM persistent_term_tmp_table # # Types used for special emulators |