diff options
author | John Högberg <[email protected]> | 2017-07-21 14:20:16 +0200 |
---|---|---|
committer | John Högberg <[email protected]> | 2017-09-05 15:56:07 +0200 |
commit | 948ee9b34f34a55cb4b70b7077a849c7dc7a5f18 (patch) | |
tree | f309c27f0c254158e648d2aaf503aeb59fbd2815 /erts/preloaded/src/init.erl | |
parent | eed25a02ba2416c48587699542aaecdd09609718 (diff) | |
download | otp-948ee9b34f34a55cb4b70b7077a849c7dc7a5f18.tar.gz otp-948ee9b34f34a55cb4b70b7077a849c7dc7a5f18.tar.bz2 otp-948ee9b34f34a55cb4b70b7077a849c7dc7a5f18.zip |
Replace the zlib driver with a NIF
All operations will now yield appropriately, allowing them to be used
freely in concurrent applications. This commit also deprecates the
functions listed below, although they won't raise deprecation
warnings until OTP 21:
zlib:adler32
zlib:crc32
zlib:inflateChunk
zlib:getBufSize
zlib:setBufSize
The behavior of throwing an error when a dictionary is required for
decompression has also been deprecated.
Diffstat (limited to 'erts/preloaded/src/init.erl')
-rw-r--r-- | erts/preloaded/src/init.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/preloaded/src/init.erl b/erts/preloaded/src/init.erl index 1ccf8d599f..34a9f6b8b9 100644 --- a/erts/preloaded/src/init.erl +++ b/erts/preloaded/src/init.erl @@ -200,6 +200,8 @@ boot(BootArgs) -> register(init, self()), process_flag(trap_exit, true), + %% Load the zlib nif + zlib:on_load(), %% Load the tracer nif erl_tracer:on_load(), |