---------------------------------------------------------------------
--- HIGHLIGHTS ------------------------------------------------------
---------------------------------------------------------------------
OTP-10289 Application(s): stdlib
Related Id(s): OTP-10309
*** POTENTIAL INCOMPATIBILITY ***
Improved unicode support for strings. Added
normalization functions in the unicode module. Extended
the string module API with new functions with improved
unicode handling and that works on grapheme clusters.
The new functions operates on the unicode:chardata()
type, thus they also accept UTF-8 binaries as input.
The old string API have been marked as obsolete. The
return values have been changed for some error cases.
OTP-13820 Application(s): ssl
*** POTENTIAL INCOMPATIBILITY ***
TLS-1.2 clients will now always send hello messages on
its own format, as opposed to earlier versions that
will send the hello on the lowest supported version,
this is a change supported by the latest RFC.
This will make interoperability with some newer servers
smoother. Potentially, but unlikely, this could cause a
problem with older servers if they do not adhere to the
RFC and ignore unknown extensions.
OTP-13900 Application(s): crypto
The crypto application now supports OpenSSL 1.1.
OTP-13921 Application(s): crypto, ssl
Related Id(s): PR-1180
Allow Erlang/OTP to use OpenSSL in FIPS-140 mode, in
order to satisfy specific security requirements (mostly
by different parts of the US federal government).
See the new crypto users guide "FIPS mode" chapter
about building and using the FIPS support which is
disabled by default.
(Thanks to dszoboszlay and legoscia)
OTP-14059 Application(s): kernel, stdlib
Functions for detecting changed code has been added.
code:modified_modules/0 returns all currently loaded
modules that have changed on disk. code:module_status/1
returns the status for a module. In the shell and in c
module, mm/0 is short for code:modified_modules/0, and
lm/0 reloads all currently loaded modules that have
changed on disk.
OTP-14094 Application(s): stdlib
*** POTENTIAL INCOMPATIBILITY ***
Optimized ETS operations by changing table identifier
type from integer to reference. The reference enables a
more direct mapping to the table with less potential
lock contention and makes especially creation and
deletion of tables scale much better.
The change of the opaque type for the ETS table
identifiers may cause failure in code that make faulty
assumptions about this opaque type.
OTP-14152 Application(s): erts
*** POTENTIAL INCOMPATIBILITY ***
Dirty schedulers are now enabled and supported on
Erlang runtime systems with SMP support.
Besides support for dirty NIFs also support for dirty
BIFs and dirty garbage collection have been introduced.
All garbage collections that potentially will take a
long time to complete are now performed on dirty
schedulers if enabled.
erlang:statistics(scheduler_wall_time) now also
includes information about dirty CPU schedulers. Code
using erlang:statistics(scheduler_wall_time) may have
to be rewritten to take this incompatibility into
consideration.
OTP-14178 Application(s): compiler, erts
Atoms may now contain arbitrary Unicode characters.
OTP-14183 Application(s): stdlib
Replace gen_fsm with gen_statem
OTP-14205 Application(s): erts
All uses of the magic binary kludge has been replaced
by uses of erlang references.
A magic binary was presented as an empty binary, but
actually referred other data internally in the Erlang
VM. Since they were presented as empty binaries,
different magic binaries compared as equal, and also
lost their internal data when passed out of an erlang
node.
The new usage of references has not got any of these
strange semantic issues, and the usage of these
references has been optimized to give the same
performance benefits as well as memory usage benefits
as magic binaries had.
A couple of examples of previous uses of magic binaries
are match specifications and NIF resources.
OTP-14219 Application(s): asn1
The new 'maps' option changes the representation of the
types SEQUENCE and SET to be maps (instead of records).
OTP-14226 Application(s): stdlib
erl_tar in previous versions of OTP only supports the
USTAR format. That limited path names to at most 255
bytes, and did not support Unicode characters in names
in a portable way.
erl_tar now has support for reading tar archives in the
formats currently in common use, such as v7, STAR,
USTAR, PAX, and GNU tar's extensions to the STAR/USTAR
format. When writing tar archives, erl_tar can now
write them in the PAX format if necessary (for example,
to support very long filenames or filenames with
Unicode characters). If possible, erl_tar will still
write tar archives in the USTAR for maximum
portability.
OTP-14291 Application(s): ssl
Extend connection_information/[1,2] . The values
session_id, master_secret, client_random and
server_random can no be accessed by
connection_information/2. Note only session_id will be
added to connection_information/1. The rational is that
values concerning the connection security should have
to be explicitly requested.
OTP-14319 Application(s): stdlib
Related Id(s): PR-1076
Add new function ets:select_replace/2 which performs
atomic "compare-and-swap" operations for ETS objects
using match specifications.
OTP-14331 Application(s): erts, stdlib
Related Id(s): ERL-208
*** POTENTIAL INCOMPATIBILITY ***
Upgraded the OTP internal PCRE library from version
8.33 to version 8.40. This library is used for
implementation of the re regular expressions module.
Besides various bug fixes, the new version allows for
better stack protection. In order to utilize this
feature, the stack size of normal scheduler threads is
now by default set to 128 kilo words on all platforms.
The stack size of normal scheduler threads can be set
upon system start by passing the +sss command line
argument to the erl command.
See http://pcre.org/original/changelog.txt for
information about changes made to PCRE between the
versions 8.33 and 8.40.
OTP-14388 Application(s): ssl
Basic support for DTLS that been tested together with
OpenSSL.
Test by providing the option {protocol, dtls} to the
ssl API functions connect and listen.
---------------------------------------------------------------------
--- POTENTIAL INCOMPATIBILITIES -------------------------------------
---------------------------------------------------------------------
OTP-10289 Application(s): stdlib
Related Id(s): OTP-10309
*** HIGHLIGHT ***
Improved unicode support for strings. Added
normalization functions in the unicode module. Extended
the string module API with new functions with improved
unicode handling and that works on grapheme clusters.
The new functions operates on the unicode:chardata()
type, thus they also accept UTF-8 binaries as input.
The old string API have been marked as obsolete. The
return values have been changed for some error cases.
OTP-12872 Application(s): ssh
The internal handling of SSH options is re-written.
Previously there were no checks if a client option was
given to a daemon or vice versa. This is corrected now.
If your code has e.g. a client-only option in a call to
start a daemon, the call will fail.
OTP-13703 Application(s): otp
The 'gs' application has been removed.
OTP-13820 Application(s): ssl
*** HIGHLIGHT ***
TLS-1.2 clients will now always send hello messages on
its own format, as opposed to earlier versions that
will send the hello on the lowest supported version,
this is a change supported by the latest RFC.
This will make interoperability with some newer servers
smoother. Potentially, but unlikely, this could cause a
problem with older servers if they do not adhere to the
RFC and ignore unknown extensions.
OTP-13827 Application(s): erts
Remove deprecated erlang:hash/2.
OTP-13844 Application(s): erts
Related Id(s): OTP-13833
The previously used purge strategy has been removed.
The optional purge strategy introduced in ERTS version
8.1 is now the only strategy available.
The new purge strategy is slightly incompatible with
the old strategy. Previously processes holding funs
that referred to the module being purged either failed
a soft purge, or was killed during a hard purge. The
new strategy completely ignores funs. If funs referring
to the code being purged exist, and are used after a
purge, an exception will be raised upon usage. That is,
the behavior will be exactly the same as the case when
a fun is received by a process after the purge.
For more information see the documentation of
erlang:check_process_code/3.
OTP-13873 Application(s): crypto
Removed functions deprecated in crypto-3.0 first
released in OTP-R16B01
OTP-13908 Application(s): erts
The NIF library reload feature is not supported
anymore. It has been marked as deprecated since OTP
R15B. This means that you are only allowed to do one
successful call to erlang:load_nif/2 for each module
instance. A second call to erlang:load_nif/2 will
return {error, {reload, _}} even if the NIF library
imlements the reload callback.
Runtime upgrade of a NIF library is still supported by
using the Erlang module upgrade mechanics with a
current and an old module instance existing at the same
time with their corresponding NIF libraries.
OTP-14039 Application(s): mnesia
Removed the wrapping of select continuations in
extension plugin handling. This might require the user
to rewrite user backend plugin if used.
OTP-14094 Application(s): stdlib
*** HIGHLIGHT ***
Optimized ETS operations by changing table identifier
type from integer to reference. The reference enables a
more direct mapping to the table with less potential
lock contention and makes especially creation and
deletion of tables scale much better.
The change of the opaque type for the ETS table
identifiers may cause failure in code that make faulty
assumptions about this opaque type.
OTP-14110 Application(s): ssh
Modernization of diffie-hellman algorithms. Removed an
outdated weak algorithm and added stronger replacements
to keep interoperability with other ssh clients and
servers. The default ordering is also adjusted.
Retired: key-exchange diffie-hellman-group1-sha1. It is
not enabled by default, but can be enabled with the
option preferred-algorithms.
Added: key-exchange diffie-hellman-group16-sha512,
diffie-hellman-group18-sha512 and
diffie-hellman-group14-sha256.
OTP-14146 Application(s): asn1
The deprecated module asn1rt has been removed. The
deprecated functions asn1ct:encode/3 and
asn1ct:decode/3 have been removed. The undocumented
function asn1ct:encode/2 has been removed.
OTP-14152 Application(s): erts
*** HIGHLIGHT ***
Dirty schedulers are now enabled and supported on
Erlang runtime systems with SMP support.
Besides support for dirty NIFs also support for dirty
BIFs and dirty garbage collection have been introduced.
All garbage collections that potentially will take a
long time to complete are now performed on dirty
schedulers if enabled.
erlang:statistics(scheduler_wall_time) now also
includes information about dirty CPU schedulers. Code
using erlang:statistics(scheduler_wall_time) may have
to be rewritten to take this incompatibility into
consideration.
OTP-14171 Application(s): crypto
Raised minimum requeriment for OpenSSL version to
OpenSSL-9.0.8.c although we recommend a much higher
version, that is a version that is still maintained
officially by the OpenSSL project. Note that using such
an old version may restrict the crypto algorithms
supported.
OTP-14263 Application(s): ssh
Removed the option public_key_alg which was deprecated
in 18.2. Use pref_public_key_algs instead.
OTP-14264 Application(s): ssh
The ssh application is refactored regarding daemon
starting. The resolution of contradicting Host argument
and ip option were not described. There were also
strange corner cases when the 'any' value was used in
Host argument or ip option. This is (hopefully)
resolved now, but it may cause incompatibilities for
code using both Host and the ip option. The value
'loopback' has been added for a correct way of naming
those addresses.
OTP-14272 Application(s): erts, otp
The non-smp emulators have been deprecated and are
scheduled for removal in OTP-21.
In preperations for this, the threaded non-smp emulator
is no longer built by default and has to be enabled
using the --enable-plain-emulator to configure.
OTP-14331 Application(s): erts, stdlib
Related Id(s): ERL-208
*** HIGHLIGHT ***
Upgraded the OTP internal PCRE library from version
8.33 to version 8.40. This library is used for
implementation of the re regular expressions module.
Besides various bug fixes, the new version allows for
better stack protection. In order to utilize this
feature, the stack size of normal scheduler threads is
now by default set to 128 kilo words on all platforms.
The stack size of normal scheduler threads can be set
upon system start by passing the +sss command line
argument to the erl command.
See http://pcre.org/original/changelog.txt for
information about changes made to PCRE between the
versions 8.33 and 8.40.
OTP-14531 Application(s): stdlib
The state machine engine gen_statem can now handle
generic time-outs (multiple named) as well as absolute
time-out time. See the documentation.
The gen_statem callback Module:init/1 has become
mandatory to harmonize with other gen_* modules. This
may be an incompatibility for gen_statem callback
modules that use gen_statem:enter_loop/4-6.
---------------------------------------------------------------------
--- asn1-5.0 --------------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-14316 Application(s): asn1, crypto, runtime_tools
Related Id(s): PR-1390
Add compile option -compile(no_native) in modules with
on_load directive which is not yet supported by HiPE.
--- Improvements and New Features ---
OTP-13961 Application(s): asn1
The error tuple returned from the encode and decode
functions will now include the stack backtrace to make
it easier to understand what went wrong.
OTP-14146 Application(s): asn1
*** POTENTIAL INCOMPATIBILITY ***
The deprecated module asn1rt has been removed. The
deprecated functions asn1ct:encode/3 and
asn1ct:decode/3 have been removed. The undocumented
function asn1ct:encode/2 has been removed.
OTP-14219 Application(s): asn1
*** HIGHLIGHT ***
The new 'maps' option changes the representation of the
types SEQUENCE and SET to be maps (instead of records).
---------------------------------------------------------------------
--- common_test-1.15 ------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-14332 Application(s): common_test
Related Id(s): seq13299
Errors in the documentation for user HTML stylesheets
have been corrected.
--- Improvements and New Features ---
OTP-13806 Application(s): common_test
The ct_slave modules now handle nodenames in the same
way as nodenames passed to -sname. That means
ct_slave:start('[email protected]'). will now work.
OTP-14179 Application(s): common_test
Added the new option, keep_logs. If setting the value
for this option to an integer, N, common_test will
remove all ct_run.* directories in the current log
directory, except the N newest.
---------------------------------------------------------------------
--- compiler-7.1 ----------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-13690 Application(s): compiler, stdlib
For many releases, it has been legal to override a BIF
with a local function having the same name. However,
calling a local function with the same name as guard
BIF as filter in a list comprehension was not allowed.
--- Improvements and New Features ---
OTP-12148 Application(s): compiler, erts
Optimized test for tuples with an atom as first
element.
OTP-13794 Application(s): compiler
Compilation of modules with huge literal binary strings
is now much faster.
OTP-13831 Application(s): compiler, erts, hipe, kernel, percept,
stdlib
Related Id(s): OTP-13735
Replaced usage of deprecated symbolic time unit
representations.
OTP-13856 Application(s): compiler
The undocumented and unsupported module sys_pre_expand
has been removed. As a partical replacement for the
functionality, there is a new function
erl_internal:add_predefined_functions/1 and
erl_expand_records will now add a module prefix to
calls to BIFs and imported functions.
OTP-13924 Application(s): compiler
The internal compiler passes now start all generated
variables with "@" to avoid any conflicts with
variables in languages such as Elixir or LFE.
OTP-14000 Application(s): compiler, erts, stdlib
The function fmod/2 has been added to the math module.
OTP-14042 Application(s): compiler
Code generation for complicated guards have been
improved.
OTP-14058 Application(s): compiler
The compiler has new warnings for repeated identical
map keys.
A map expression such as,
#{'a' => 1, 'b' => 2, 'a' => 3}.
will produce a warning for the repeated key 'a'.
OTP-14071 Application(s): compiler, stdlib
By default, there will now be a warning when export_all
is used. The warning can be disabled using
nowarn_export_all.
OTP-14072 Application(s): compiler
Optimize maps pattern matching by only examining the
common keys in each clause first instead of all keys.
This will reduce the number of lookups of each key in
maps pattern matching.
OTP-14087 Application(s): compiler
There is a new 'deterministc' option to omit 'source'
and 'options' tuples in the BEAM file.
OTP-14125 Application(s): compiler, dialyzer
Related Id(s): ERL-308
Analyzing modules with binary construction with huge
strings is now much faster. The compiler also compiles
such modules slightly faster.
OTP-14178 Application(s): compiler, erts
*** HIGHLIGHT ***
Atoms may now contain arbitrary Unicode characters.
OTP-14221 Application(s): compiler
compile:file/2 now accepts the option extra_chunks to
include extra chunks in the BEAM file.
OTP-14369 Application(s): compiler, dialyzer, stdlib
Related Id(s): PR-1367
The format of debug information that is stored in BEAM
files (when debug_info is used) has been changed. The
purpose of the change is to better support other
BEAM-based languages such as Elixir or LFE.
All tools included in OTP (dialyzer, debugger, cover,
and so on) will handle both the new format and the
previous format. Tools that retrieve the debug
information using beam_lib:chunk(Beam, [abstract_code])
will continue to work with both the new and old format.
Tools that call beam_lib:chunk(Beam, ["Abst"]) will not
work with the new format.
For more information, see the description of debug_info
in the documentation for beam_lib and the description
of the {debug_info,{Backend,Data}} option in the
documentation for compile.
---------------------------------------------------------------------
--- cosProperty-1.2.2 -----------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-14006 Application(s): cosProperty, orber
Fix dialyzer warnings in Orber and CosProperty.
---------------------------------------------------------------------
--- crypto-4.0 ------------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-14247 Application(s): crypto
LibreSSL can now be used by the modernized crypto app.
OTP-14316 Application(s): asn1, crypto, runtime_tools
Related Id(s): PR-1390
Add compile option -compile(no_native) in modules with
on_load directive which is not yet supported by HiPE.
--- Improvements and New Features ---
OTP-13779 Application(s): crypto
Related Id(s): ERL-82, PR-1138
Add basic support for CMAC
OTP-13873 Application(s): crypto
*** POTENTIAL INCOMPATIBILITY ***
Removed functions deprecated in crypto-3.0 first
released in OTP-R16B01
OTP-13900 Application(s): crypto
*** HIGHLIGHT ***
The crypto application now supports OpenSSL 1.1.
OTP-13921 Application(s): crypto, ssl
Related Id(s): PR-1180
*** HIGHLIGHT ***
Allow Erlang/OTP to use OpenSSL in FIPS-140 mode, in
order to satisfy specific security requirements (mostly
by different parts of the US federal government).
See the new crypto users guide "FIPS mode" chapter
about building and using the FIPS support which is
disabled by default.
(Thanks to dszoboszlay and legoscia)
OTP-14092 Application(s): crypto
Related Id(s): PR-1291
Crypto chacha20-poly1305 as in RFC 7539 enabled for
OpenSSL >= 1.1.
Thanks to mururu.
OTP-14140 Application(s): crypto
Related Id(s): ERL-165, PR-1299
RSA key generation added to crypto:generate_key/2.
Thanks to wiml.
An interface is also added to
public_key:generate_key/1.
OTP-14171 Application(s): crypto
*** POTENTIAL INCOMPATIBILITY ***
Raised minimum requeriment for OpenSSL version to
OpenSSL-9.0.8.c although we recommend a much higher
version, that is a version that is still maintained
officially by the OpenSSL project. Note that using such
an old version may restrict the crypto algorithms
supported.
OTP-14274 Application(s): crypto
Deprecate crypto:rand_uniform/2 as it is not
cryptographically strong
OTP-14317 Application(s): crypto, stdlib
Related Id(s): PR-1372
The Crypto application now supports generation of
cryptographically strong random numbers (floats < 1.0
and integer arbitrary ranges) as a plugin to the 'rand'
module.
---------------------------------------------------------------------
--- debugger-4.2.2 --------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-14296 Application(s): debugger, stdlib
The Erlang shell, qlc:string_to_handle(), and the
Debugger (the Evaluator area and Edit variable window
of the Bindings area) can parse pids, ports,
references, and external funs, as long as they can be
created in the running system.
OTP-14318 Application(s): debugger
Fix editing of simple binary values in the Bindings
area of the Debugger's Attach Process Window.
--- Improvements and New Features ---
OTP-14285 Application(s): debugger, edoc, parsetools, stdlib,
syntax_tools
Miscellaneous updates due to atoms containing arbitrary
Unicode characters.
---------------------------------------------------------------------
--- dialyzer-3.2 ----------------------------------------------------
---------------------------------------------------------------------
--- Improvements and New Features ---
OTP-14125 Application(s): compiler, dialyzer
Related Id(s): ERL-308
Analyzing modules with binary construction with huge
strings is now much faster. The compiler also compiles
such modules slightly faster.
OTP-14127 Application(s): dialyzer
The peak memory consumption is reduced.
OTP-14336 Application(s): dialyzer, otp
TypEr has been removed as separate application and is
now a part of the Dialyzer application. Documentation
for TypEr has been added in the Dialyzer application.
OTP-14369 Application(s): compiler, dialyzer, stdlib
Related Id(s): PR-1367
The format of debug information that is stored in BEAM
files (when debug_info is used) has been changed. The
purpose of the change is to better support other
BEAM-based languages such as Elixir or LFE.
All tools included in OTP (dialyzer, debugger, cover,
and so on) will handle both the new format and the
previous format. Tools that retrieve the debug
information using beam_lib:chunk(Beam, [abstract_code])
will continue to work with both the new and old format.
Tools that call beam_lib:chunk(Beam, ["Abst"]) will not
work with the new format.
For more information, see the description of debug_info
in the documentation for beam_lib and the description
of the {debug_info,{Backend,Data}} option in the
documentation for compile.
---------------------------------------------------------------------
--- diameter-1.12.3 -------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-14387 Application(s): diameter, inets, megaco
Typos have been fixed.
--- Improvements and New Features ---
OTP-14389 Application(s): diameter
The usage of module erl_anno is corrected.
---------------------------------------------------------------------
--- edoc-0.9 --------------------------------------------------------
---------------------------------------------------------------------
--- Improvements and New Features ---
OTP-14277 Application(s): edoc
To support stable builds, edoc no longer includes time
stamps in the footer for generated files.
OTP-14285 Application(s): debugger, edoc, parsetools, stdlib,
syntax_tools
Miscellaneous updates due to atoms containing arbitrary
Unicode characters.
---------------------------------------------------------------------
--- erl_docgen-0.7 --------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-14333 Application(s): erl_docgen
Related Id(s): ERL-393
Sort index of C functions alphabetically in the
sidebar.
--- Improvements and New Features ---
OTP-14371 Application(s): erl_docgen
Related Id(s): PR-1215
Improvements in the OTP documentation style.
(Thanks to Mariano Guerra)
---------------------------------------------------------------------
--- erl_interface-3.10 ----------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-14310 Application(s): erl_interface, kernel
Fix bug where gethostname would incorrectly fail with
enametoolong on Linux.
--- Improvements and New Features ---
OTP-14337 Application(s): erl_interface, erts, jinterface
Remove generation of atoms in old latin1 external
format. The old latin1 format can still be decoded but
is never generated by term_to_binary or sent on a
distribution channel. The new utf8 format for atoms was
introduced in OTP R16. An OTP 20 node can therefore not
connect to nodes older than R16.
---------------------------------------------------------------------
--- erts-9.0 --------------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-13968 Application(s): erts
Fix various bugs regarding loading, upgrade and purge
of HiPE compiled code:
-- The native code memory for a purged module was never
deallocated.
-- Wrong functions could in some cases be called after
a module upgrade.
-- erlang:check_process_code did not check for
recursive calls made from native code.
OTP-14238 Application(s): erts, hipe
Hipe optional LLVM backend does require LLVM version
3.9 or later as older versions forced strong
dependencies on erts internals structures.
OTP-14303 Application(s): erts
Slogans in crash dumps have been extended to print more
complex terms.
OTP-14304 Application(s): erts
Fixed bug when using enif_inspect_binary in combination
with enif_copy. In some circumstances the inspected
binary could be realloced by the enif_copy call when it
shouldn't have been.
OTP-14307 Application(s): erts
Related Id(s): PR-1379
Use -fno-PIE for Gentoo Hardened and others that don't
accept linker flag -no-pie.
OTP-14314 Application(s): erts
Related Id(s): ERL-369, PR-1394
Disable hipe for ppc64le architecture (little endian)
as it is not, and has never been, supported. It was
earlier equated with ppc64 (big endian) which lead to
broken build without --disable-hipe.
OTP-14324 Application(s): erts
Fix 'epmd -kill' to return a failure exit status code
if epmd was not killed because of some error.
OTP-14335 Application(s): erts
Fixed the following dirty scheduler related bugs:
-- the +SDPcpu command line argument could cause the
amount of dirty CPU schedulers to be set to zero
-- erlang:system_flag(multi_scheduling, _) failed when
only one normal scheduler was used together with dirty
scheduler support
OTP-14352 Application(s): erts
Fix erlexec to handle mismatch in sysconf and proc fs
when figuring out the cpu topology. This behaviour has
been seen when using docker together with
--cpuset-cpus.
OTP-14360 Application(s): erts
Related Id(s): ERL-401, PR-1417
Fixed memory segment cache used for multiblock
carriers. Huge (> 2GB) memory segments could cause a VM
crash. Creation of such huge memory segments used for
multiblock carriers is however very uncommon.
--- Improvements and New Features ---
OTP-11695 Application(s): erts
Added erlang:garbage_collect/2 that takes an option
list as the last argument that can be used to control
whether a minor or a major garbage collection is to be
done. Doing a minor collection only collects terms that
have recently died, but is cheaper than a mjor
collection.
OTP-12148 Application(s): compiler, erts
Optimized test for tuples with an atom as first
element.
OTP-13529 Application(s): erts
Erlang literals are no longer copied during process to
process messaging.
OTP-13684 Application(s): erts
Add support in the erl_nif API for asynchronous message
notifications when sockets or other file descriptors
are ready to accept read or write operations. The
following functions have been added:
-- enif_select
-- enif_monitor_process
-- enif_demonitor_process
-- enif_compare_monitors
-- enif_open_resource_type_x
OTP-13692 Application(s): erts, stdlib
There are two new guard BIFs 'floor/1' and 'ceil/1'.
They both return integers. In the 'math' module, there
are two new BIFs with the same names that return
floating point values.
OTP-13827 Application(s): erts
*** POTENTIAL INCOMPATIBILITY ***
Remove deprecated erlang:hash/2.
OTP-13831 Application(s): compiler, erts, hipe, kernel, percept,
stdlib
Related Id(s): OTP-13735
Replaced usage of deprecated symbolic time unit
representations.
OTP-13842 Application(s): erts
Added support in zlib for extraction of the inflation
dictionary.
OTP-13844 Application(s): erts
Related Id(s): OTP-13833
*** POTENTIAL INCOMPATIBILITY ***
The previously used purge strategy has been removed.
The optional purge strategy introduced in ERTS version
8.1 is now the only strategy available.
The new purge strategy is slightly incompatible with
the old strategy. Previously processes holding funs
that referred to the module being purged either failed
a soft purge, or was killed during a hard purge. The
new strategy completely ignores funs. If funs referring
to the code being purged exist, and are used after a
purge, an exception will be raised upon usage. That is,
the behavior will be exactly the same as the case when
a fun is received by a process after the purge.
For more information see the documentation of
erlang:check_process_code/3.
OTP-13860 Application(s): erts
Dirty schedulers are now enabled by default when the
runtime system is built with SMP support.
OTP-13903 Application(s): erts
Improved ETS lookup/insert/delete speed for large set,
bag and duplicate_bag by a significant reduction of the
hash load factor. This speed improvement comes at the
expense of less than one word per table entry. Tables
with less than 256 entries are not affected at all.
OTP-13908 Application(s): erts
*** POTENTIAL INCOMPATIBILITY ***
The NIF library reload feature is not supported
anymore. It has been marked as deprecated since OTP
R15B. This means that you are only allowed to do one
successful call to erlang:load_nif/2 for each module
instance. A second call to erlang:load_nif/2 will
return {error, {reload, _}} even if the NIF library
imlements the reload callback.
Runtime upgrade of a NIF library is still supported by
using the Erlang module upgrade mechanics with a
current and an old module instance existing at the same
time with their corresponding NIF libraries.
OTP-13976 Application(s): erts
Add erlang:system_info(atom_count) and
erlang:system_info(atom_limit) to provide a way to
retrieve the current and maximum number of atoms.
OTP-14000 Application(s): compiler, erts, stdlib
The function fmod/2 has been added to the math module.
OTP-14002 Application(s): erts
erlang:load_nif/2 returns new error type notsup when
called for a HiPE compiled module, which is not
supported.
OTP-14069 Application(s): erts
Add driver and nif lock instrumentation to lcnt
OTP-14149 Application(s): erts
Reduce memory pressure by converting sub-binaries to
heap-binaries when possible. This is done during
garbage collection.
OTP-14152 Application(s): erts
*** HIGHLIGHT ***
*** POTENTIAL INCOMPATIBILITY ***
Dirty schedulers are now enabled and supported on
Erlang runtime systems with SMP support.
Besides support for dirty NIFs also support for dirty
BIFs and dirty garbage collection have been introduced.
All garbage collections that potentially will take a
long time to complete are now performed on dirty
schedulers if enabled.
erlang:statistics(scheduler_wall_time) now also
includes information about dirty CPU schedulers. Code
using erlang:statistics(scheduler_wall_time) may have
to be rewritten to take this incompatibility into
consideration.
OTP-14178 Application(s): compiler, erts
*** HIGHLIGHT ***
Atoms may now contain arbitrary Unicode characters.
OTP-14186 Application(s): erts, kernel
Introduce an event manager in Erlang to handle OS
signals. A subset of OS signals may be subscribed to
and those are described in the Kernel application.
OTP-14201 Application(s): erts
Related Id(s): PR-1293
The escript program now handles symbolic links to
escripts.
This is useful for standalone systems with escripts
residing on a bin directory not included in the
execution path (as it may cause their erl program(s) to
override the desired one). Instead the escripts can be
referred to via symbolic links from a bin directory in
the path.
OTP-14205 Application(s): erts
*** HIGHLIGHT ***
All uses of the magic binary kludge has been replaced
by uses of erlang references.
A magic binary was presented as an empty binary, but
actually referred other data internally in the Erlang
VM. Since they were presented as empty binaries,
different magic binaries compared as equal, and also
lost their internal data when passed out of an erlang
node.
The new usage of references has not got any of these
strange semantic issues, and the usage of these
references has been optimized to give the same
performance benefits as well as memory usage benefits
as magic binaries had.
A couple of examples of previous uses of magic binaries
are match specifications and NIF resources.
OTP-14272 Application(s): erts, otp
*** POTENTIAL INCOMPATIBILITY ***
The non-smp emulators have been deprecated and are
scheduled for removal in OTP-21.
In preperations for this, the threaded non-smp emulator
is no longer built by default and has to be enabled
using the --enable-plain-emulator to configure.
OTP-14330 Application(s): erts, hipe
Related Id(s): PR-1397
Allow HiPE to run on VM built with --enable-m32-build.
OTP-14331 Application(s): erts, stdlib
Related Id(s): ERL-208
*** HIGHLIGHT ***
*** POTENTIAL INCOMPATIBILITY ***
Upgraded the OTP internal PCRE library from version
8.33 to version 8.40. This library is used for
implementation of the re regular expressions module.
Besides various bug fixes, the new version allows for
better stack protection. In order to utilize this
feature, the stack size of normal scheduler threads is
now by default set to 128 kilo words on all platforms.
The stack size of normal scheduler threads can be set
upon system start by passing the +sss command line
argument to the erl command.
See http://pcre.org/original/changelog.txt for
information about changes made to PCRE between the
versions 8.33 and 8.40.
OTP-14337 Application(s): erl_interface, erts, jinterface
Remove generation of atoms in old latin1 external
format. The old latin1 format can still be decoded but
is never generated by term_to_binary or sent on a
distribution channel. The new utf8 format for atoms was
introduced in OTP R16. An OTP 20 node can therefore not
connect to nodes older than R16.
OTP-14347 Application(s): erts, stdlib
Related Id(s): PR-1412
Added function re:version/0 which returns information
about the OTP internal PCRE version used for
implementation of the re module.
OTP-14348 Application(s): erts
Added new debug bif erlang:list_to_port/1.
OTP-14356 Application(s): erts
Various improvements of timer management internally in
the VM. These improvements both reduced memory
consumption of timer wheels as well as reduce the
amount of work that has to be performed in order to
handle timers.
OTP-14357 Application(s): erts, kernel, runtime_tools
Related Id(s): PR-1326
Sockets can now be bound to device (SO_BINDTODEVICE) on
platforms where it is supported.
This has been implemented e.g to support VRF-Lite under
Linux; see
VRF , and GitHub pull request #1326.
OTP-14380 Application(s): erts
Added the following erl command line arguments with
which you can set suggested stack for dirty schedulers:
-- +sssdcpu -- for dirty CPU schedulers
-- +sssdio -- for dirty IO schedulers
The default suggested stack size for dirty schedulers
is 40 kilo words.
OTP-14381 Application(s): erts
Changed erts startup program name, argv 0, to use the
environment variable ESCRIPT_NAME so that erlc,
dialyzer, typer, ct_run, or the escript name can be
seen with external programs, such as ps and htop
(depending on options), on unix.
If environment variable ESCRIPT_NAME is not set, argv 0
of the invoking program will be used, e.g. the name
will be erl, cerl, or the soft link name.
OTP-14384 Application(s): erts
Related Id(s): OTP-14201
Improvements of escript documentation.
OTP-14385 Application(s): erts
Related Id(s): PR-1413
Add function enif_hash for NIFs to calculate hash
values of arbitrary terms.
---------------------------------------------------------------------
--- eunit-2.3.3 -----------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-14287 Application(s): eunit
The surefire reports from eunit will no longer have
names with embedded double quotes.
---------------------------------------------------------------------
--- hipe-3.16 -------------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-13862 Application(s): hipe
Related Id(s): PR-1154
Fix hipe compiler flags o0 and o1 that have previously
been ignored by mistake.
OTP-13983 Application(s): hipe
Fix LLVM backend to not convert all remote calls to own
module, like ?MODULE:foo(), into local calls.
OTP-14238 Application(s): erts, hipe
Hipe optional LLVM backend does require LLVM version
3.9 or later as older versions forced strong
dependencies on erts internals structures.
OTP-14302 Application(s): hipe
Related Id(s): ERL-376, PR-1386
Fix a bug that has been seen causing failed loading of
hipe compiled modules on NetBSD due to unaligned data
pointers.
OTP-14306 Application(s): hipe
Related Id(s): ERL-278, PR-1392
Fix miscompilation bug in hipe that could cause wrong
function clause to be called from non-tail calls, where
the return value is unused, if the right function
clause is only reachable from those non-tail calls.
--- Improvements and New Features ---
OTP-13810 Application(s): hipe
Related Id(s): PR-1124
Improve hipe compilation time for large functions.
OTP-13831 Application(s): compiler, erts, hipe, kernel, percept,
stdlib
Related Id(s): OTP-13735
Replaced usage of deprecated symbolic time unit
representations.
OTP-13879 Application(s): hipe
Speed up hipe compile time register allocation for
larger function.
OTP-14261 Application(s): hipe
Related Id(s): PR-1360
Various code generation improvements.
OTP-14293 Application(s): hipe
Related Id(s): PR-1380
Improve hipe compiler to generate code with better CPU
register utilization at runtime by the use of 'Live
Range Splitting' techniques.
OTP-14330 Application(s): erts, hipe
Related Id(s): PR-1397
Allow HiPE to run on VM built with --enable-m32-build.
---------------------------------------------------------------------
--- inets-6.3.9 -----------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-14387 Application(s): diameter, inets, megaco
Typos have been fixed.
---------------------------------------------------------------------
--- jinterface-1.8 --------------------------------------------------
---------------------------------------------------------------------
--- Improvements and New Features ---
OTP-14337 Application(s): erl_interface, erts, jinterface
Remove generation of atoms in old latin1 external
format. The old latin1 format can still be decoded but
is never generated by term_to_binary or sent on a
distribution channel. The new utf8 format for atoms was
introduced in OTP R16. An OTP 20 node can therefore not
connect to nodes older than R16.
---------------------------------------------------------------------
--- kernel-5.3 ------------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-14310 Application(s): erl_interface, kernel
Fix bug where gethostname would incorrectly fail with
enametoolong on Linux.
--- Improvements and New Features ---
OTP-13805 Application(s): kernel
Since Unicode is now allowed in atoms an extra check is
needed for node names, which are restricted to Latin-1.
OTP-13831 Application(s): compiler, erts, hipe, kernel, percept,
stdlib
Related Id(s): OTP-13735
Replaced usage of deprecated symbolic time unit
representations.
OTP-13909 Application(s): kernel
file:write_file(Name, Data, [raw]) would turn Data into
a single binary before writing. This meant it could not
take advantage of the writev() system call if it was
given a list of binaries and told to write with raw
mode.
OTP-14057 Application(s): kernel
Related Id(s): PR-1245
The performance of the disk_log has been somewhat
improved in some corner cases (big items), and the
documentation has been clarified.
OTP-14059 Application(s): kernel, stdlib
*** HIGHLIGHT ***
Functions for detecting changed code has been added.
code:modified_modules/0 returns all currently loaded
modules that have changed on disk. code:module_status/1
returns the status for a module. In the shell and in c
module, mm/0 is short for code:modified_modules/0, and
lm/0 reloads all currently loaded modules that have
changed on disk.
OTP-14186 Application(s): erts, kernel
Introduce an event manager in Erlang to handle OS
signals. A subset of OS signals may be subscribed to
and those are described in the Kernel application.
OTP-14357 Application(s): erts, kernel, runtime_tools
Related Id(s): PR-1326
Sockets can now be bound to device (SO_BINDTODEVICE) on
platforms where it is supported.
This has been implemented e.g to support VRF-Lite under
Linux; see
VRF , and GitHub pull request #1326.
---------------------------------------------------------------------
--- megaco-3.18.2 ---------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-14387 Application(s): diameter, inets, megaco
Typos have been fixed.
---------------------------------------------------------------------
--- mnesia-4.15 -----------------------------------------------------
---------------------------------------------------------------------
--- Improvements and New Features ---
OTP-14039 Application(s): mnesia
*** POTENTIAL INCOMPATIBILITY ***
Removed the wrapping of select continuations in
extension plugin handling. This might require the user
to rewrite user backend plugin if used.
---------------------------------------------------------------------
--- observer-2.4 ----------------------------------------------------
---------------------------------------------------------------------
--- Improvements and New Features ---
OTP-14137 Application(s): observer
Show dirty-scheduler threads in performance monitor
graph and add a column with maximum allocated memory in
the Memory Allocators table.
OTP-14270 Application(s): observer
Keep table and port selection after refresh of tables.
Store settings before shutdown and restore when
starting application.
OTP-14345 Application(s): observer
Related Id(s): ERL-399
When observing a node older than OTP-19.0, a pop-up
will be displayed when trying to access port
information. Earlier, observer would crash in this
situation.
---------------------------------------------------------------------
--- orber-3.8.3 -----------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-14006 Application(s): cosProperty, orber
Fix dialyzer warnings in Orber and CosProperty.
---------------------------------------------------------------------
--- otp-20.0 --------------------------------------------------------
---------------------------------------------------------------------
--- Improvements and New Features ---
OTP-13652 Application(s): otp
The myths in the Efficiency Guide have been updated.
OTP-13703 Application(s): otp
*** POTENTIAL INCOMPATIBILITY ***
The 'gs' application has been removed.
OTP-14163 Application(s): otp
Application percept is moved to a separate repository,
https://github.com/erlang/percept, and therefore
removed from the OTP repository.
OTP-14272 Application(s): erts, otp
*** POTENTIAL INCOMPATIBILITY ***
The non-smp emulators have been deprecated and are
scheduled for removal in OTP-21.
In preperations for this, the threaded non-smp emulator
is no longer built by default and has to be enabled
using the --enable-plain-emulator to configure.
OTP-14336 Application(s): dialyzer, otp
TypEr has been removed as separate application and is
now a part of the Dialyzer application. Documentation
for TypEr has been added in the Dialyzer application.
---------------------------------------------------------------------
--- parsetools-2.1.5 ------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-14276 Application(s): parsetools
Related Id(s): PR-1357
Minor documentation fixes
--- Improvements and New Features ---
OTP-14285 Application(s): debugger, edoc, parsetools, stdlib,
syntax_tools
Miscellaneous updates due to atoms containing arbitrary
Unicode characters.
---------------------------------------------------------------------
--- public_key-1.4.1 ------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-14258 Application(s): public_key
Bug for public_key:generate_key({namedCurve,OID})
fixed.
--- Improvements and New Features ---
OTP-14111 Application(s): public_key
Modernized internal representation used for crl
validation by use of maps.
OTP-14294 Application(s): public_key
Support EC key in pkix_sign/2
---------------------------------------------------------------------
--- runtime_tools-1.12 ----------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-14316 Application(s): asn1, crypto, runtime_tools
Related Id(s): PR-1390
Add compile option -compile(no_native) in modules with
on_load directive which is not yet supported by HiPE.
--- Improvements and New Features ---
OTP-14357 Application(s): erts, kernel, runtime_tools
Related Id(s): PR-1326
Sockets can now be bound to device (SO_BINDTODEVICE) on
platforms where it is supported.
This has been implemented e.g to support VRF-Lite under
Linux; see
VRF , and GitHub pull request #1326.
---------------------------------------------------------------------
--- sasl-3.0.4 ------------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-14029 Application(s): sasl
Documented default values for the 'mod' and
'start_phases' fields in .app files were not allowed as
actual values in a .app file. This is now corrected.
---------------------------------------------------------------------
--- ssh-4.5 ---------------------------------------------------------
---------------------------------------------------------------------
--- Improvements and New Features ---
OTP-12872 Application(s): ssh
*** POTENTIAL INCOMPATIBILITY ***
The internal handling of SSH options is re-written.
Previously there were no checks if a client option was
given to a daemon or vice versa. This is corrected now.
If your code has e.g. a client-only option in a call to
start a daemon, the call will fail.
OTP-14110 Application(s): ssh
*** POTENTIAL INCOMPATIBILITY ***
Modernization of diffie-hellman algorithms. Removed an
outdated weak algorithm and added stronger replacements
to keep interoperability with other ssh clients and
servers. The default ordering is also adjusted.
Retired: key-exchange diffie-hellman-group1-sha1. It is
not enabled by default, but can be enabled with the
option preferred-algorithms.
Added: key-exchange diffie-hellman-group16-sha512,
diffie-hellman-group18-sha512 and
diffie-hellman-group14-sha256.
OTP-14117 Application(s): ssh
Modernized internal representation of sftp by use of
maps.
OTP-14193 Application(s): ssh
The draft-ietf-curdle-ssh-ext-info-05 and
draft-ietf-curdle-rsa-sha2-05 are (partially)
implemented.
The extension server-sig-algs and the signature
algorithms rsa-sha2-256 and rsa-sha2-512 are
implemented. The rsa-sha2-* are not enabled by default
yet since they has a bug. Use option
preferred_algorithms with key public key to try them.
OTP-14243 Application(s): ssh
Ssh:connect, ssh:shell and ssh:start_channel now accept
an IP-tuple as Host destination argument.
OTP-14259 Application(s): ssh
The function ssh:daemon_info/1 now returns Host and
Profile as well as the Port info.
OTP-14263 Application(s): ssh
*** POTENTIAL INCOMPATIBILITY ***
Removed the option public_key_alg which was deprecated
in 18.2. Use pref_public_key_algs instead.
OTP-14264 Application(s): ssh
*** POTENTIAL INCOMPATIBILITY ***
The ssh application is refactored regarding daemon
starting. The resolution of contradicting Host argument
and ip option were not described. There were also
strange corner cases when the 'any' value was used in
Host argument or ip option. This is (hopefully)
resolved now, but it may cause incompatibilities for
code using both Host and the ip option. The value
'loopback' has been added for a correct way of naming
those addresses.
OTP-14267 Application(s): ssh
Related Id(s): OTP-14266
The supervisor code is refactored. The naming of
listening IP-Port-Profile tripples are slightly changed
to improve consistency in strange corner cases as
resolved by OTP-14264
OTP-14312 Application(s): ssh
The idle_time option can now be used in daemons.
---------------------------------------------------------------------
--- ssl-8.2 ---------------------------------------------------------
---------------------------------------------------------------------
--- Improvements and New Features ---
OTP-13820 Application(s): ssl
*** HIGHLIGHT ***
*** POTENTIAL INCOMPATIBILITY ***
TLS-1.2 clients will now always send hello messages on
its own format, as opposed to earlier versions that
will send the hello on the lowest supported version,
this is a change supported by the latest RFC.
This will make interoperability with some newer servers
smoother. Potentially, but unlikely, this could cause a
problem with older servers if they do not adhere to the
RFC and ignore unknown extensions.
OTP-13921 Application(s): crypto, ssl
Related Id(s): PR-1180
*** HIGHLIGHT ***
Allow Erlang/OTP to use OpenSSL in FIPS-140 mode, in
order to satisfy specific security requirements (mostly
by different parts of the US federal government).
See the new crypto users guide "FIPS mode" chapter
about building and using the FIPS support which is
disabled by default.
(Thanks to dszoboszlay and legoscia)
OTP-14076 Application(s): ssl
Implemented DTLS cookie generation, requiered by spec,
instead of using hardcode value.
OTP-14291 Application(s): ssl
*** HIGHLIGHT ***
Extend connection_information/[1,2] . The values
session_id, master_secret, client_random and
server_random can no be accessed by
connection_information/2. Note only session_id will be
added to connection_information/1. The rational is that
values concerning the connection security should have
to be explicitly requested.
OTP-14382 Application(s): ssl
Chacha cipher suites are currently not tested enough to
be most prefered ones
OTP-14388 Application(s): ssl
*** HIGHLIGHT ***
Basic support for DTLS that been tested together with
OpenSSL.
Test by providing the option {protocol, dtls} to the
ssl API functions connect and listen.
---------------------------------------------------------------------
--- stdlib-3.4 ------------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-13690 Application(s): compiler, stdlib
For many releases, it has been legal to override a BIF
with a local function having the same name. However,
calling a local function with the same name as guard
BIF as filter in a list comprehension was not allowed.
OTP-14295 Application(s): stdlib
Related Id(s): PR-1372
A new (default) pseudo-random number generator
algorithm Xoroshiro116+ has been implemented in the
rand module.
The old algorithm implementations had a number of flaws
so they are all deprecated, but corrected versions of
two of them have been added. See the documentation.
OTP-14296 Application(s): debugger, stdlib
The Erlang shell, qlc:string_to_handle(), and the
Debugger (the Evaluator area and Edit variable window
of the Bindings area) can parse pids, ports,
references, and external funs, as long as they can be
created in the running system.
OTP-14531 Application(s): stdlib
*** POTENTIAL INCOMPATIBILITY ***
The state machine engine gen_statem can now handle
generic time-outs (multiple named) as well as absolute
time-out time. See the documentation.
The gen_statem callback Module:init/1 has become
mandatory to harmonize with other gen_* modules. This
may be an incompatibility for gen_statem callback
modules that use gen_statem:enter_loop/4-6.
--- Improvements and New Features ---
OTP-10289 Application(s): stdlib
Related Id(s): OTP-10309
*** HIGHLIGHT ***
*** POTENTIAL INCOMPATIBILITY ***
Improved unicode support for strings. Added
normalization functions in the unicode module. Extended
the string module API with new functions with improved
unicode handling and that works on grapheme clusters.
The new functions operates on the unicode:chardata()
type, thus they also accept UTF-8 binaries as input.
The old string API have been marked as obsolete. The
return values have been changed for some error cases.
OTP-13692 Application(s): erts, stdlib
There are two new guard BIFs 'floor/1' and 'ceil/1'.
They both return integers. In the 'math' module, there
are two new BIFs with the same names that return
floating point values.
OTP-13801 Application(s): stdlib
Making code_change, terminate and handle_info callbacks
optional in the OTP behaviours.
OTP-13830 Application(s): stdlib
The support for Dets files created with Erlang/OTP R7
and earlier is removed.
OTP-13831 Application(s): compiler, erts, hipe, kernel, percept,
stdlib
Related Id(s): OTP-13735
Replaced usage of deprecated symbolic time unit
representations.
OTP-14000 Application(s): compiler, erts, stdlib
The function fmod/2 has been added to the math module.
OTP-14001 Application(s): stdlib
The EXIT signals received from processes using proc_lib
now looks like EXIT signals from processes that were
spawned using spawn_link. In particular, that means
that the stack trace is now included in the EXIT signal
so that it can see where the process crashed.
OTP-14035 Application(s): stdlib
sets:add_element/2 is faster when adding an element
that is already present, and sets:del_element/2 is
faster when the element to be deleted is not present.
This optimization can make certain operations, such as
sets:union/2 with many overlapping elements, up to two
orders of magnitude faster.
OTP-14037 Application(s): stdlib
Related Id(s): PR-1233
Add information in doc about supervisor shutdown reason
when maximum restart frequency is reached.
OTP-14038 Application(s): stdlib
Related Id(s): PR-1235
Added rand:jump/[0|1] functions.
OTP-14059 Application(s): kernel, stdlib
*** HIGHLIGHT ***
Functions for detecting changed code has been added.
code:modified_modules/0 returns all currently loaded
modules that have changed on disk. code:module_status/1
returns the status for a module. In the shell and in c
module, mm/0 is short for code:modified_modules/0, and
lm/0 reloads all currently loaded modules that have
changed on disk.
OTP-14066 Application(s): stdlib
Each assert macro in assert.hrl now has a corresponding
version with an extra argument, for adding comments to
assertions. These can for example be printed as part of
error reports, to clarify the meaning of the check that
failed.
OTP-14068 Application(s): stdlib
error_logger_tty_h and error_logger_file_h now inserts
the node information for nonlocal messages before the
message itself instead of after, both for readability
and so as not to change the line termination property
at the end of the message.
OTP-14070 Application(s): stdlib
Related Id(s): PR-1214
The Erlang code linter checks for badly formed type
constraints.
OTP-14071 Application(s): compiler, stdlib
By default, there will now be a warning when export_all
is used. The warning can be disabled using
nowarn_export_all.
OTP-14089 Application(s): stdlib
When a gen_server process crashes, the stacktrace for
the client will be printed to facilitate debugging.
OTP-14094 Application(s): stdlib
*** HIGHLIGHT ***
*** POTENTIAL INCOMPATIBILITY ***
Optimized ETS operations by changing table identifier
type from integer to reference. The reference enables a
more direct mapping to the table with less potential
lock contention and makes especially creation and
deletion of tables scale much better.
The change of the opaque type for the ETS table
identifiers may cause failure in code that make faulty
assumptions about this opaque type.
OTP-14102 Application(s): stdlib
take/2 has been added to dict, orddict, and gb_trees.
take_any/2 has been added to gb_trees.
OTP-14123 Application(s): stdlib
Extend gen_event API to handle options as well.
OTP-14168 Application(s): stdlib
Related Id(s): PR-1289
Advice on how to tune the supervisor restart frequency
(intensity and period) is added to System Documentation
- Design Principles - Supervisor Behaviour.
OTP-14183 Application(s): stdlib
*** HIGHLIGHT ***
Replace gen_fsm with gen_statem
OTP-14190 Application(s): stdlib
The shell functions c/1 and c/2 have been extended so
that if the argument is a module name instead of a file
name, it automatically locates the .beam file and the
corresponding source file, and then recompiles the
module using the same compiler options (plus any
options passed to c/2). If compilation fails, the old
beam file is preserved. Also adds c(Mod, Opts, Filter),
where the Filter argument allows you to remove old
compiler options before the new options are added.
New utility functions file_find/2/3 and
find_source/1/2/3 have been added to filelib.
OTP-14226 Application(s): stdlib
*** HIGHLIGHT ***
erl_tar in previous versions of OTP only supports the
USTAR format. That limited path names to at most 255
bytes, and did not support Unicode characters in names
in a portable way.
erl_tar now has support for reading tar archives in the
formats currently in common use, such as v7, STAR,
USTAR, PAX, and GNU tar's extensions to the STAR/USTAR
format. When writing tar archives, erl_tar can now
write them in the PAX format if necessary (for example,
to support very long filenames or filenames with
Unicode characters). If possible, erl_tar will still
write tar archives in the USTAR for maximum
portability.
OTP-14245 Application(s): stdlib
base64:mime_decode/1 has been optimized so that it is
now almost as fast asbase64:decode/1; it used be
noticably slower.
OTP-14278 Application(s): stdlib
erl_tar will now strip any leading '/' from pathnames
when extracting files from a tar archive and write a
message to the error logger. There is also new check
for directory traversal attacks; if a relative path
points above the current working directory the
extraction will be aborted.
OTP-14285 Application(s): debugger, edoc, parsetools, stdlib,
syntax_tools
Miscellaneous updates due to atoms containing arbitrary
Unicode characters.
OTP-14317 Application(s): crypto, stdlib
Related Id(s): PR-1372
The Crypto application now supports generation of
cryptographically strong random numbers (floats < 1.0
and integer arbitrary ranges) as a plugin to the 'rand'
module.
OTP-14319 Application(s): stdlib
Related Id(s): PR-1076
*** HIGHLIGHT ***
Add new function ets:select_replace/2 which performs
atomic "compare-and-swap" operations for ETS objects
using match specifications.
OTP-14323 Application(s): stdlib
The Erlang code linter checks for bad dialyzer
attributes.
OTP-14328 Application(s): stdlib
Related Id(s): PR-1382
Two new functions has been implemented in the rand
module; normal/2 and normal_s/3, that both produce
normal distribution (pseudo) random numbers with mean
value and variance according to arguments.
OTP-14331 Application(s): erts, stdlib
Related Id(s): ERL-208
*** HIGHLIGHT ***
*** POTENTIAL INCOMPATIBILITY ***
Upgraded the OTP internal PCRE library from version
8.33 to version 8.40. This library is used for
implementation of the re regular expressions module.
Besides various bug fixes, the new version allows for
better stack protection. In order to utilize this
feature, the stack size of normal scheduler threads is
now by default set to 128 kilo words on all platforms.
The stack size of normal scheduler threads can be set
upon system start by passing the +sss command line
argument to the erl command.
See http://pcre.org/original/changelog.txt for
information about changes made to PCRE between the
versions 8.33 and 8.40.
OTP-14347 Application(s): erts, stdlib
Related Id(s): PR-1412
Added function re:version/0 which returns information
about the OTP internal PCRE version used for
implementation of the re module.
OTP-14369 Application(s): compiler, dialyzer, stdlib
Related Id(s): PR-1367
The format of debug information that is stored in BEAM
files (when debug_info is used) has been changed. The
purpose of the change is to better support other
BEAM-based languages such as Elixir or LFE.
All tools included in OTP (dialyzer, debugger, cover,
and so on) will handle both the new format and the
previous format. Tools that retrieve the debug
information using beam_lib:chunk(Beam, [abstract_code])
will continue to work with both the new and old format.
Tools that call beam_lib:chunk(Beam, ["Abst"]) will not
work with the new format.
For more information, see the description of debug_info
in the documentation for beam_lib and the description
of the {debug_info,{Backend,Data}} option in the
documentation for compile.
---------------------------------------------------------------------
--- syntax_tools-2.1.2 ----------------------------------------------
---------------------------------------------------------------------
--- Improvements and New Features ---
OTP-14285 Application(s): debugger, edoc, parsetools, stdlib,
syntax_tools
Miscellaneous updates due to atoms containing arbitrary
Unicode characters.
---------------------------------------------------------------------
--- tools-2.10 ------------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-14339 Application(s): tools
Related Id(s): ERL-395
In some situations, make:all() and friends did not
detect changes in include files located in the current
directory. This is now corrected.
--- Improvements and New Features ---
OTP-14253 Application(s): tools
The make module now accepts the {emake,Emake} option.
---------------------------------------------------------------------
--- wx-1.8.1 --------------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-14289 Application(s): wx
Fix a livelock that could be caused by wx:batch/1.
---------------------------------------------------------------------
--- xmerl-1.3.14 ----------------------------------------------------
---------------------------------------------------------------------
--- Fixed Bugs and Malfunctions ---
OTP-14377 Application(s): xmerl
Related Id(s): PR-1369
Improves accumulator fun in xmerl_scan so that only one
#xmlText record is returned for strings which have
character references.
(Thanks to Jimmy Zöger)