Major release : otp_src_17.0-rc1 Build date : 2014-01-30 17.0-rc1 is a major new release of Erlang/OTP. You can download the full source distribution from http://www.erlang.org/download/otp_src_17.0-rc1.tar.gz http://www.erlang.org/download/otp_src_17.0-rc1.readme (this file) Note: To unpack the TAR archive you need a GNU TAR compatible program. For installation instructions please read the README that is part of the distribution. The Windows binary distribution can be downloaded from http://www.erlang.org/download/otp_win32_17.0-rc1.exe http://www.erlang.org/download/otp_win64_17.0-rc1.exe On-line documentation can be found at http://www.erlang.org/doc/. You can also download the complete HTML documentation or the Unix manual files http://www.erlang.org/download/otp_doc_html_17.0-rc1.tar.gz http://www.erlang.org/download/otp_doc_man_17.0-rc1.tar.gz We also want to thank those that sent us patches, suggestions and bug reports, The OTP Team --- HIGHLIGHTS ---------------------------------------------------------- OTP-11368 == erts kernel == Add the {active,N} socket option for TCP, UDP, and SCTP, where N is an integer in the range -32768..32767, to allow a caller to specify the number of data messages to be delivered to the controlling process. Once the socket's delivered message count either reaches 0 or is explicitly set to 0 with inet:setopts/2 or by including {active,0} as an option when the socket is created, the socket transitions to passive ({active, false}) mode and the socket's controlling process receives a message to inform it of the transition. TCP sockets receive {tcp_passive,Socket}, UDP sockets receive {udp_passive,Socket} and SCTP sockets receive {sctp_passive,Socket}. The socket's delivered message counter defaults to 0, but it can be set using {active,N} via any gen_tcp, gen_udp, or gen_sctp function that takes socket options as arguments, or via inet:setopts/2. New N values are added to the socket's current counter value, and negative numbers can be used to reduce the counter value. Specifying a number that would cause the socket's counter value to go above 32767 causes an einval error. If a negative number is specified such that the counter value would become negative, the socket's counter value is set to 0 and the socket transitions to passive mode. If the counter value is already 0 and inet:setopts(Socket, [{active,0}]) is specified, the counter value remains at 0 but the appropriate passive mode transition message is generated for the socket. Thanks to Steve Vinoski OTP-11594 == asn1 == The OCTET STRING and BIT STRING types now have a more natural mapping to Erlang types (binary and bitstring, respectively), which is more efficient and will avoid useless conversions between lists and binaries/bitstrings. This is an incompatible change. To revert to the old mapping to support existing applications, use the legacy_erlang_types option. OTP-11615 == otp == A new version scheme for OTP as well as all applications in OTP has been introduced. Versions will be handled similar to semantic versioning. The version number MAJOR.MINOR.PATCH will be changed as follows: -- MAJOR -- Increased when major changes, including incompatibilities, have been made. -- MINOR -- Increased when new functionality has been added. -- PATCH -- Increased when pure bug fixes have been made. Versions with even more parts may in exceptional cases exist. OTP-11616 == erts stdlib hipe dialyzer compiler typer == New data type - Maps, according to EEP 43, without variable keys. M0 = #{ a => 1, b => 2}, %% to create M1 = M0#{ a := 10 }, %% to update M2 = M1#{ "hi" => "hello"}, %% to add new associations #{ "hi" := V1, a := V2, b := V3} = M2. %% to match keys with values See EEP43 for details. --- appmon -------------------------------------------------------------- OTP-10915 Removed gs based applications and gs based backends. The observer application replaces the removed applications. --- documentation ------------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- otp ----------------------------------------------------------------- OTP-11537 Funs can now be a given a name. Thanks to to Richard O'Keefe for the idea (EEP37) and to Anthony Ramine for the implementation. OTP-11606 Documentation correction in special processes chapter (Thanks to Alexander Zhuravlev) OTP-11615 A new version scheme for OTP as well as all applications in OTP has been introduced. Versions will be handled similar to semantic versioning. The version number MAJOR.MINOR.PATCH will be changed as follows: -- MAJOR -- Increased when major changes, including incompatibilities, have been made. -- MINOR -- Increased when new functionality has been added. -- PATCH -- Increased when pure bug fixes have been made. Versions with even more parts may in exceptional cases exist. OTP-11637 Fixed bug in example code in the Distributed Erlang chapter. (Thanks to Loïc Hoguin.) --- pman ---------------------------------------------------------------- OTP-10915 Removed gs based applications and gs based backends. The observer application replaces the removed applications. --- toolbar ------------------------------------------------------------- OTP-10915 Removed gs based applications and gs based backends. The observer application replaces the removed applications. --- tv ------------------------------------------------------------------ OTP-10915 Removed gs based applications and gs based backends. The observer application replaces the removed applications. --- asn1-3.0 ------------------------------------------------------------ OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-11258 By giving --enable-static-{nifs,drivers} to configure it is now possible to statically linking of nifs and drivers to the main Erlang VM binary. At the moment only the asn1 and crypto nifs of the Erlang/OTP nifs and drivers have been prepared to be statically linked. For more details see the Installation Guide in the System documentation. OTP-11573 Code generation for the per and uper backends has been somewhat improved. OTP-11594 The OCTET STRING and BIT STRING types now have a more natural mapping to Erlang types (binary and bitstring, respectively), which is more efficient and will avoid useless conversions between lists and binaries/bitstrings. This is an incompatible change. To revert to the old mapping to support existing applications, use the legacy_erlang_types option. --- common_test-1.8 ----------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-11440 Telnet traffic can now be logged by means of a logging mechanism based on a generic Common Test hook (cth_conn_log) and an event handler installed in Error Logger (ct_conn_log_h). This mechanism (which has been used by ct_netconfc in previous versions of Common Test) makes it possible to, for example, write data for individual connections in separate log files. ct_telnet still features logging on the form used in previous Common Test versions, and this is also the default logging behaviour if the cth_conn_log hook is not configured. Please see the ct_telnet reference manual for details. --- compiler-5.0 -------------------------------------------------------- OTP-10652 Compilation times for modules with a huge number for record accesses using the dot operator has been improved. OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-11056 The compiler can generate somewhat better code by moving let expressions into sequences. (Thanks to Anthony Ramine.) OTP-11186 Forbid unsized fields in patterns of binary generators and simplified v3_core's translation of bit string generators. (Thanks to Anthony Ramine.) OTP-11537 Funs can now be a given a name. Thanks to to Richard O'Keefe for the idea (EEP37) and to Anthony Ramine for the implementation. OTP-11544 Using the from_asm option to produce a BEAM file starting from BEAM assembly code would often fail because early optimization passes would not understand instructions that later optimization passes would introduce. (Thanks to Anthony Ramine.) OTP-11547 The .core and .S extensions are now documented in the erlc documentation, and the 'from_core' and 'from_asm' options are now documented in the compiler documentation. (Thanks to Tuncer Ayaz.) OTP-11572 Line numbers would not be correct when a binary construction such as '<>' fails. (Thanks to Stanislav Seletskiy for reporting this bug.) OTP-11580 The compiler now properly annotates the code in value in the 'after' clause for a 'try' so that Dialyzer no longer generates a false warning for an unmatched return. OTP-11584 Optimization of case expressions that build tuples or lists have been improved. OTP-11610 Some case statements where no clause would match could cause an internal error in the compiler. (Thanks to Erik Soe Sorensen for reporting this bug.) OTP-11616 New data type - Maps, according to EEP 43, without variable keys. M0 = #{ a => 1, b => 2}, %% to create M1 = M0#{ a := 10 }, %% to update M2 = M1#{ "hi" => "hello"}, %% to add new associations #{ "hi" := V1, a := V2, b := V3} = M2. %% to match keys with values See EEP43 for details. --- cosEvent-2.1.15 ----------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- cosEventDomain-1.1.14 ----------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- cosFileTransfer-1.1.16 ---------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- cosNotification-1.1.21 ---------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- cosProperty-1.1.17 -------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- cosTime-1.1.14 ------------------------------------------------------ OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- cosTransactions-1.2.14 ---------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- crypto-3.3 ---------------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-11258 By giving --enable-static-{nifs,drivers} to configure it is now possible to statically linking of nifs and drivers to the main Erlang VM binary. At the moment only the asn1 and crypto nifs of the Erlang/OTP nifs and drivers have been prepared to be statically linked. For more details see the Installation Guide in the System documentation. OTP-11522 Add IGE mode for AES cipher in crypto (Thanks to Yura Beznos). OTP-11550 Fix memory leaks and invalid deallocations in mod_pow, mod_exp and generate_key(srp,...) when bad arguments are passed. (Thanks to Florian Zumbiehi) OTP-11578 Moved elliptic curve definition from the crypto NIF/OpenSSL into Erlang code, adds the RFC-5639 brainpool curves and makes TLS use them (RFC-7027). (Thanks to Andreas Schultz) OTP-11609 Correction of the word 'ChipherText' throughout the documentation (Thanks to Andrew Tunnell-Jones) OTP-11619 Remove all obsolete application processes from crypto and make it into a pure library application. --- debugger-4.0 -------------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-10915 Removed gs based applications and gs based backends. The observer application replaces the removed applications. OTP-11553 The debugger now correctly evaluates code such as 'X = true andalso X'. (Thanks to Anthony Ramine.) --- dialyzer-2.7 -------------------------------------------------------- OTP-10397 Dialyzer will no longer emit warnings when inspecting or modifying opaque types within the scope of a module. Hitherto the shape of terms (tuple, list, etc.) has been used to determine the opaque terms, but now the contracts are used for decorating types with opaqueness. OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-10915 Removed gs based applications and gs based backends. The observer application replaces the removed applications. OTP-11186 Forbid unsized fields in patterns of binary generators and simplified v3_core's translation of bit string generators. (Thanks to Anthony Ramine.) OTP-11616 New data type - Maps, according to EEP 43, without variable keys. M0 = #{ a => 1, b => 2}, %% to create M1 = M0#{ a := 10 }, %% to update M2 = M1#{ "hi" => "hello"}, %% to add new associations #{ "hi" := V1, a := V2, b := V3} = M2. %% to match keys with values See EEP43 for details. --- diameter-1.6 -------------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-11561 Add missing check at dictionary compilation. In particular, that an AVP defined as having type Grouped in an @avp_types section has a corresponding definition in a @grouped section. OTP-11583 Correct documentation on the setting of Origin-State-Id It was incorrectly stated that the AVP would be set in an outgoing DPR/DPA. OTP-11593 Change interface for communicating outbound stream id to diameter_sctp The module uses the transport_data field of record diameter_packet to communicate the stream on which the an incoming message is received and on which an outgoing message should be sent, the previous interface being that both are communicated as a tuple of the form {stream, Id}. However, since diameter retains the value of an incoming request's transport_data unless the corresponding answer message specifies otherwise, the behaviour in this case is to send an answer on the outbound stream with the same identifier as the that of the inbound stream on which the request was received. If the inbound stream id is greater than or equal to the number of outbound streams then this is guaranteed to fail, causing the transport process in question to terminate. There is no relationship between inbound and outbound stream identifiers so diameter_sctp's imposition of one is simply wrong. Outbound stream ids are now communicated with a different tuple: {outstream, Id}, interpreted modulo the number of outbound streams. Thus, retention of an inbound request's transport_data has no effect on the selection of an outbound stream. The change in interface is not strictly backwards compatible because of the new atom for the outbound stream. However, as there is currently no documented way of obtaining the available number of outbound streams for a peer connection, there is no way for a client to have known the range of ids from which it could reliably have chosen with the previous interface, so any setting of the outbound stream has probably been unintentional. Not explicitly specifying an outbound stream now results in a round-robin selection. --- edoc-0.7.13 --------------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- eldap-1.0.3 --------------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- erl_docgen-0.3.5 ---------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- erl_interface-3.7.16 ------------------------------------------------ OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-11608 Fix memcheck warning in gen_challange (Thanks to Olivier Girondel) --- erts-6.0 ------------------------------------------------------------ OTP-10285 Options to set match_limit and match_limit_recursion are added to re:run. The option report_errors is also added to get more information when re:run fails due to limits or compilation errors. OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-10908 Dialyzer's unmatched_return warnings have been corrected. OTP-11082 A common case is to wrap an argument to list_to_binary/1 in a list to ensure conversion can happen even though the argument may already be a binary. Take special care of this case and do not copy binary. Impact: May cause incompatibility since a single binary is no longer copied. Use binary:copy/1,2 instead. OTP-11105 Make erlang:open_port/2 spawn and spawn_executable handle unicode. OTP-11135 Handle unicode (widestring) in erl, erlc, heart, etc on windows. OTP-11204 The version of the PCRE library Used by Erlang's re module is raised to 8.33 from 7.6. This means, among other things, better Unicode and Unicode Character Properties support. New options connected to PCRE 8.33 are also added to the re module (ucd, notempty_atstart, no_start_optimize). PCRE has extended the regular expression syntax between 7.6 and 8.33, why this imposes a potential incompatibility. Only very complicated regular expressions may be affected, but if you know you are using obscure features, please test run your regular expressions and verify that their behavior has not changed. OTP-11205 The option dupnames did not work as intended in re. When looking for names with {capture, [Name, ...]}, re:run returned a random instance of the match for that name, instead of the leftmost matching instance, which was what the documentation stated. This is now corrected to adhere to the documentation. The option {capture,all_names} along with a re:inspect/2 function is also added to further help in using named subpatterns. OTP-11248 Filenames containing UTF-8 encoded characters can now be handled by erlc. If you have set the ERLC_EMULATOR environment variable, note that erlc in OTP 17 will only work with erl in OTP 17 since the protocol between the erlc program and the erl_compile module has changed. OTP-11258 By giving --enable-static-{nifs,drivers} to configure it is now possible to statically linking of nifs and drivers to the main Erlang VM binary. At the moment only the asn1 and crypto nifs of the Erlang/OTP nifs and drivers have been prepared to be statically linked. For more details see the Installation Guide in the System documentation. OTP-11368 Add the {active,N} socket option for TCP, UDP, and SCTP, where N is an integer in the range -32768..32767, to allow a caller to specify the number of data messages to be delivered to the controlling process. Once the socket's delivered message count either reaches 0 or is explicitly set to 0 with inet:setopts/2 or by including {active,0} as an option when the socket is created, the socket transitions to passive ({active, false}) mode and the socket's controlling process receives a message to inform it of the transition. TCP sockets receive {tcp_passive,Socket}, UDP sockets receive {udp_passive,Socket} and SCTP sockets receive {sctp_passive,Socket}. The socket's delivered message counter defaults to 0, but it can be set using {active,N} via any gen_tcp, gen_udp, or gen_sctp function that takes socket options as arguments, or via inet:setopts/2. New N values are added to the socket's current counter value, and negative numbers can be used to reduce the counter value. Specifying a number that would cause the socket's counter value to go above 32767 causes an einval error. If a negative number is specified such that the counter value would become negative, the socket's counter value is set to 0 and the socket transitions to passive mode. If the counter value is already 0 and inet:setopts(Socket, [{active,0}]) is specified, the counter value remains at 0 but the appropriate passive mode transition message is generated for the socket. Thanks to Steve Vinoski OTP-11385 A new optional scheduler utilization balancing mechanism has been introduced. For more information see the +sub command line argument. Characteristics impact: None, when not enabled. When enabled, changed timing in the system, normally a small overhead due to measuring of utilization and calculating balancing information. On some systems, such as old Windows systems, the overhead can be quite substantial. This time measurement overhead highly depend on the underlying primitives provided by the OS. OTP-11388 A call to either the garbage_collect/1 BIF or the check_process_code/2 BIF may trigger garbage collection of another processes than the process calling the BIF. The previous implementations performed these kinds of garbage collections without considering the internal state of the process being garbage collected. In order to be able to more easily and more efficiently implement yielding native code, these types of garbage collections have been rewritten. A garbage collection like this is now triggered by an asynchronous request signal, the actual garbage collection is performed by the process being garbage collected itself, and finalized by a reply signal to the process issuing the request. Using this approach processes can disable garbage collection and yield without having to set up the heap in a state that can be garbage collected. The garbage_collect/2, and check_process_code/3 BIFs have been introduced. Both taking an option list as last argument. Using these, one can issue asynchronous requests. code:purge/1 and code:soft_purge/1 have been rewritten to utilize asynchronous check_process_code requests in order to parallelize work. Characteristics impact: A call to the garbage_collect/1 BIF or the check_process_code/2 BIF will normally take longer time to complete while the system as a whole wont be as much negatively effected by the operation as before. A call to code:purge/1 and code:soft_purge/1 may complete faster or slower depending on the state of the system while the system as a whole wont be as much negatively effected by the operation as before. OTP-11408 Allow loading of NIF library with unicode path name OTP-11419 Cleanup 'Buckets' and 'Time left' fields in crashdump to ease parsing. OTP-11498 Add sync option to file:open/2. The sync option adds the POSIX O_SYNC flag to the open system call on platforms that support the flag or its equivalent, e.g., FILE_FLAG_WRITE_THROUGH on Windows. For platforms that don't support it, file:open/2 returns {error, enotsup} if the sync option is passed in. Thank to Steve Vinoski and Joseph Blomstedt OTP-11535 erlang:binary_to_term will now cost an appropriate amount of reductions and will interrupt (yield) for reschedule if the term is big. This avoids too long schedules when binary_to_term is used. (Thanks to Svante Karlsson for the original patch) Impact: Programs running binary_to_term on large binaries will run more smoothly, but rescheduling will impact the single process performance of the BIF. Single threaded benchmarks might show degraded performance of the BIF, while general system behaviour will be improved. OTP-11549 Allow loading of driver with unicode path name OTP-11558 Fixed a bug where starting Erlang without having an open stdin on fd 0 would sometimes deadlock the emulator when terminating. OTP-11560 Added high resolution icon for windows. (Thanks to Daniel Goertz for the inspiration.) OTP-11565 The option '-names' in epmd now works on Windows (Thanks to Johannes Weißl) OTP-11577 Correction of the examples in escript documentation. (Thanks to Pierre Fenoll). OTP-11581 Fix bs_get_integer instruction The instruction bs_get_integer could unnecessarily trigger a garbage collection in failure cases which is unwanted or outright dangerous. Ex: <> = <<"some binary">> Previously, if Sz induced X to a bignum it would reserved memory size this on the heap via a garbage collection before checking if the size could actually match. It will now check the binary size before triggering a collection. OTP-11585 Remove heap space overestimation in binary_to_term (and remote message reception) for integers in the intervals [-2147483648,-1] and [256,2147483647] on 64-bit emulators. OTP-11590 Add support for detecting the separate tinfo library from ncurses (Thanks to Dirkjan Ochtman) OTP-11602 Deprecation warning for system_flag(cpu_topology) has been extended for removal in OTP 18 (Thanks to Steve Vinoski for the update) OTP-11604 Migration of memory carriers has been enabled by default on all ERTS internal memory allocators based on the alloc_util framework except for temp_alloc. That is, +Macul de is default for these allocators. Note that this also implies changed allocation strategies for all of these allocators. They will all now use the "address order first fit carrier best fit" strategy. By passing +Muacul 0 on the command line, all configuration changes made by this change will be reverted. Characteristics impact: Improved memory characteristics with a smaller memory footprint at the expense of a quite small performance cost. OTP-11607 Documentation improvement regarding some awkward wording around the +spp flag. (Thanks to Brian L. Troutwine ) OTP-11611 A clarification has been added to the documentation of -on_load() in the Reference Manual that it is only recommended for loading NIF libraries. OTP-11612 +fnaw is now default when starting the emulator; it used to be +fnl. OTP-11614 Fixed bug where sendfile would return the wrong error code for a remotely closed socket if the socket was in passive mode. (Thanks to Vincent Siliakus for reporting the bug.) OTP-11616 New data type - Maps, according to EEP 43, without variable keys. M0 = #{ a => 1, b => 2}, %% to create M1 = M0#{ a := 10 }, %% to update M2 = M1#{ "hi" => "hello"}, %% to add new associations #{ "hi" := V1, a := V2, b := V3} = M2. %% to match keys with values See EEP43 for details. OTP-11617 Increase garbage collection tenure rate The garbage collector tries to maintain the previous heap block size during a minor gc, i.e. 'need' is not utilized in determining the size of the new heap, instead it relies on tenure and garbage to be sufficiently large. In instances during intense growing with exclusively live data on the heap coupled with delayed tenure, fullsweeps would be triggered directly after a minor gc to make room for 'need' since the new heap would be full. To remedy this, the tenure of terms on the minor heap will always happen (if it is below the high watermark) instead of every other minor gc. Characteristics Impact: Reduced CPU-time spent in garbage collection but may infer delays in collecting garbage from the heap. Tweak 'fullsweep_after' options to increase gc pressure if needed. OTP-11618 Fix bug when comparing integers with floats larger than 2^992. The bug could potentially cause memory corruption on 32-bit emulators. OTP-11628 The previously deprecated driver API function driver_async_cancel() has been removed. Due to this, the driver API version has been bumped to 3.0. Thanks to Steve Vinoski. OTP-11629 Experimental "dirty scheduler" functionality has been introduced. In order to try the functionality out, you need to pass the command line argument --enable-dirty-schedulers to configure when building the system. Dirty schedulers can currently only be used by NIFs on a system with SMP support. More information can be found in the erl_nif(3) documentation, the erl(1) documentation, and in the git commit comment of commit 'c1c03ae4ee50e58b7669ea88ec4d29c6b2b67c7b'. Note that the functionality is experimental, and not supported. This functionality will be subject to backward incompatible changes. You should not enable the dirty scheduler functionality on production systems. It is only provided for testing. Thanks to Steve Vinoski. OTP-11635 Cross-compilation fixes for TileraMDE-3.0.1.125620 OTP-11639 sendfile no longer uses async threads by default This has been done because a slow client attack is possible if the async thread pool is used. The scenario is: Client does a request for a file and then slowly receives the file one byte at a time. This will eventually fill the async thread pool with blocking sendfile operations and thus starving the vm of all file operations. If you still want to use the async threads pool for sendfile an option to enable it has been introduced. Thanks to Christopher Faulet for identifying this volnerability. OTP-11648 Improve reduction cost and yielding of term_to_binary. The reduction cost is increased and garbage collection is disabled during yield. Impact: Improves system responsiveness when term_to_binary is called with large terms without significant degradation of single threaded performance. --- et-1.5 -------------------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-10915 Removed gs based applications and gs based backends. The observer application replaces the removed applications. --- eunit-2.2.7 --------------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- gs-1.5.16 ----------------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- hipe-3.10.3 --------------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-11564 Fix compilation with 'no_remove_comments' (Thanks to Johannes Weißl) OTP-11616 New data type - Maps, according to EEP 43, without variable keys. M0 = #{ a => 1, b => 2}, %% to create M1 = M0#{ a := 10 }, %% to update M2 = M1#{ "hi" => "hello"}, %% to add new associations #{ "hi" := V1, a := V2, b := V3} = M2. %% to match keys with values See EEP43 for details. --- ic-4.3.5 ------------------------------------------------------------ OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- inets-5.10 ---------------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-11538 Fixed a spelling mistake in httpc doc (Thanks to Wasif Riaz Malik) --- jinterface-1.5.9 ---------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- kernel-3.0 ---------------------------------------------------------- OTP-10843 heart:set_cmd/1 is updated to allow unicode code points > 255 in the given heart command OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-10908 Dialyzer's unmatched_return warnings have been corrected. OTP-11105 Make erlang:open_port/2 spawn and spawn_executable handle unicode. OTP-11368 Add the {active,N} socket option for TCP, UDP, and SCTP, where N is an integer in the range -32768..32767, to allow a caller to specify the number of data messages to be delivered to the controlling process. Once the socket's delivered message count either reaches 0 or is explicitly set to 0 with inet:setopts/2 or by including {active,0} as an option when the socket is created, the socket transitions to passive ({active, false}) mode and the socket's controlling process receives a message to inform it of the transition. TCP sockets receive {tcp_passive,Socket}, UDP sockets receive {udp_passive,Socket} and SCTP sockets receive {sctp_passive,Socket}. The socket's delivered message counter defaults to 0, but it can be set using {active,N} via any gen_tcp, gen_udp, or gen_sctp function that takes socket options as arguments, or via inet:setopts/2. New N values are added to the socket's current counter value, and negative numbers can be used to reduce the counter value. Specifying a number that would cause the socket's counter value to go above 32767 causes an einval error. If a negative number is specified such that the counter value would become negative, the socket's counter value is set to 0 and the socket transitions to passive mode. If the counter value is already 0 and inet:setopts(Socket, [{active,0}]) is specified, the counter value remains at 0 but the appropriate passive mode transition message is generated for the socket. Thanks to Steve Vinoski OTP-11388 A call to either the garbage_collect/1 BIF or the check_process_code/2 BIF may trigger garbage collection of another processes than the process calling the BIF. The previous implementations performed these kinds of garbage collections without considering the internal state of the process being garbage collected. In order to be able to more easily and more efficiently implement yielding native code, these types of garbage collections have been rewritten. A garbage collection like this is now triggered by an asynchronous request signal, the actual garbage collection is performed by the process being garbage collected itself, and finalized by a reply signal to the process issuing the request. Using this approach processes can disable garbage collection and yield without having to set up the heap in a state that can be garbage collected. The garbage_collect/2, and check_process_code/3 BIFs have been introduced. Both taking an option list as last argument. Using these, one can issue asynchronous requests. code:purge/1 and code:soft_purge/1 have been rewritten to utilize asynchronous check_process_code requests in order to parallelize work. Characteristics impact: A call to the garbage_collect/1 BIF or the check_process_code/2 BIF will normally take longer time to complete while the system as a whole wont be as much negatively effected by the operation as before. A call to code:purge/1 and code:soft_purge/1 may complete faster or slower depending on the state of the system while the system as a whole wont be as much negatively effected by the operation as before. OTP-11498 Add sync option to file:open/2. The sync option adds the POSIX O_SYNC flag to the open system call on platforms that support the flag or its equivalent, e.g., FILE_FLAG_WRITE_THROUGH on Windows. For platforms that don't support it, file:open/2 returns {error, enotsup} if the sync option is passed in. Thank to Steve Vinoski and Joseph Blomstedt OTP-11614 Fixed bug where sendfile would return the wrong error code for a remotely closed socket if the socket was in passive mode. (Thanks to Vincent Siliakus for reporting the bug.) --- megaco-3.17.0.3 ----------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- mnesia-4.12 --------------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-11497 To prevent a race condition if there is a short communication problem when node-down and node-up events are recevied. They are now stored and later checked if the node came up just before mnesia flagged the node as down. (Thanks to Jonas Falkevik ) --- observer-2.0 -------------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-10915 Removed gs based applications and gs based backends. The observer application replaces the removed applications. OTP-11179 crashdump_viewer is re-written using wx. OTP-11633 etop trace handler now works in smp environment (Thanks to Péter Gömöri) --- odbc-2.10.20 -------------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-11569 Removed warnings at compile time by adding missing include file (Thanks to Anthony Ramine) OTP-11630 Apple has removed iODBC in OS X 10.9 Mavericks, but forgot to remove all binaries, adopt configure so that will be possible to build odbc with own installation. --- orber-3.6.27 -------------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- os_mon-2.2.15 ------------------------------------------------------- OTP-10842 Calls to erlang:open_port/2 with 'spawn' are updated to handle space in the command path. OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- otp_mibs-1.0.9 ------------------------------------------------------ OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-11203 Add type based integer value truncation/reset. This fixes errors when querying e.g. the erlNodeReductions, erlNodeInBytes and erlNodeOutBytes objects in long-running Erlang/OTP systems. Update types of applicable MIB objects to 64bit based types. Potential incompatibility: Type change of Counter32 to Counter64 in OTP-MIB.mib --- parsetools-2.0.11 --------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- percept-0.8.8.3 ----------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- public_key-0.22 ----------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-11578 Moved elliptic curve definition from the crypto NIF/OpenSSL into Erlang code, adds the RFC-5639 brainpool curves and makes TLS use them (RFC-7027). (Thanks to Andreas Schultz) OTP-11627 Fix incorrect dialyzer spec and types, also enhance documentation. (Thanks to Ayaz Tuncer.) --- reltool-0.6.4.2 ----------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-11591 When adding a regexp to a filter in reltool using {add,Regexp}, and the existing regexp was undefined, reltool would crash since it got an improper list. This has been corrected. (Thanks to Håkan Mattsson) OTP-11592 Adapted reltool test server to common test usage of tc_status. (Note that this code is not used by OTP daily test runs.) (Thanks to Håkan Mattsson) --- runtime_tools-1.8.14 ------------------------------------------------ OTP-10877 Allow install path to have unicode characters. OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-11603 The documentation for the return value of dbg:{stop,stop_clear} functions are now correct (Thanks to Luca Favatella) OTP-11622 Fix DTrace build on Illumos. (Thanks to Ryan Zezeski.) --- sasl-2.4 ------------------------------------------------------------ OTP-10842 Calls to erlang:open_port/2 with 'spawn' are updated to handle space in the command path. OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- snmp-4.25.0.1 ------------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- ssh-3.0.1 ----------------------------------------------------------- OTP-10732 Fixes the problem that ssh_cli in some cases could delay the prompt if a tty was not requested by the client. OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-10953 Ssh now fully supports unicode filenames, filecontents, shell and cli. Please note that the underlying os and emulator must also give support for unicode. You may want to start the emulator with "erl +fnu" on Linux. OTP-11566 The variable NewCol is now correctly calculated allowing for tab-completion of function calls even when preceded with blank space (Thanks to Alexander Demidenko) OTP-11627 Fix incorrect dialyzer spec and types, also enhance documentation. (Thanks to Ayaz Tuncer.) --- ssl-5.3.4 ----------------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-11578 Moved elliptic curve definition from the crypto NIF/OpenSSL into Erlang code, adds the RFC-5639 brainpool curves and makes TLS use them (RFC-7027). (Thanks to Andreas Schultz) OTP-11621 Added option honor_cipher_order. This instructs the server to prefer its own cipher ordering rather than the client's and can help protect against things like BEAST while maintaining compatability with clients which only support older ciphers. Thanks to Andrew Thompson for the implementation, and Andreas Schultz for the test cases. OTP-11627 Fix incorrect dialyzer spec and types, also enhance documentation. (Thanks to Ayaz Tuncer.) OTP-11634 Replace boolean checking in validate_option with is_boolean guard. (Thanks to Andreas Schultz.) --- stdlib-2.0 ---------------------------------------------------------- OTP-10285 Options to set match_limit and match_limit_recursion are added to re:run. The option report_errors is also added to get more information when re:run fails due to limits or compilation errors. OTP-10842 Calls to erlang:open_port/2 with 'spawn' are updated to handle space in the command path. OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-10908 Dialyzer's unmatched_return warnings have been corrected. OTP-11186 Forbid unsized fields in patterns of binary generators and simplified v3_core's translation of bit string generators. (Thanks to Anthony Ramine.) OTP-11204 The version of the PCRE library Used by Erlang's re module is raised to 8.33 from 7.6. This means, among other things, better Unicode and Unicode Character Properties support. New options connected to PCRE 8.33 are also added to the re module (ucd, notempty_atstart, no_start_optimize). PCRE has extended the regular expression syntax between 7.6 and 8.33, why this imposes a potential incompatibility. Only very complicated regular expressions may be affected, but if you know you are using obscure features, please test run your regular expressions and verify that their behavior has not changed. OTP-11205 The option dupnames did not work as intended in re. When looking for names with {capture, [Name, ...]}, re:run returned a random instance of the match for that name, instead of the leftmost matching instance, which was what the documentation stated. This is now corrected to adhere to the documentation. The option {capture,all_names} along with a re:inspect/2 function is also added to further help in using named subpatterns. OTP-11353 Added dict:is_empty/1 and orddict:is_empty/1. (Thanks to Magnus Henoch.) OTP-11388 A call to either the garbage_collect/1 BIF or the check_process_code/2 BIF may trigger garbage collection of another processes than the process calling the BIF. The previous implementations performed these kinds of garbage collections without considering the internal state of the process being garbage collected. In order to be able to more easily and more efficiently implement yielding native code, these types of garbage collections have been rewritten. A garbage collection like this is now triggered by an asynchronous request signal, the actual garbage collection is performed by the process being garbage collected itself, and finalized by a reply signal to the process issuing the request. Using this approach processes can disable garbage collection and yield without having to set up the heap in a state that can be garbage collected. The garbage_collect/2, and check_process_code/3 BIFs have been introduced. Both taking an option list as last argument. Using these, one can issue asynchronous requests. code:purge/1 and code:soft_purge/1 have been rewritten to utilize asynchronous check_process_code requests in order to parallelize work. Characteristics impact: A call to the garbage_collect/1 BIF or the check_process_code/2 BIF will normally take longer time to complete while the system as a whole wont be as much negatively effected by the operation as before. A call to code:purge/1 and code:soft_purge/1 may complete faster or slower depending on the state of the system while the system as a whole wont be as much negatively effected by the operation as before. OTP-11552 orddict:from_list/1 now uses the optimized sort routines in the lists module instead of (essentially) an insertion sort. Depending on the input data, the speed of the new from_list/1 is anything from slightly faster up to several orders of magnitude faster than the old from_list/1. (Thanks to Steve Vinoski.) OTP-11589 If option 'binary' was set for standard_input, then c:i() would hang if the output was more than one page long - i.e. then input after "(c)ontinue (q)uit -->" could not be read. This has been corrected. (Thanks to José Valim) OTP-11616 New data type - Maps, according to EEP 43, without variable keys. M0 = #{ a => 1, b => 2}, %% to create M1 = M0#{ a := 10 }, %% to update M2 = M1#{ "hi" => "hello"}, %% to add new associations #{ "hi" := V1, a := V2, b := V3} = M2. %% to match keys with values See EEP43 for details. --- syntax_tools-1.6.14 ------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-11632 Add implementation of having erl_tidy print to screen instead of writing to the file provided. (Thanks to Aaron France) --- test_server-3.7 ----------------------------------------------------- OTP-10842 Calls to erlang:open_port/2 with 'spawn' are updated to handle space in the command path. OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- tools-2.6.14 -------------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. OTP-11568 Removed the support for the query keyword from emacs mode (Thanks to Paul Oliver) OTP-11601 Emacs mode improvements (Thanks to Steve Vinoski) --- typer-0.9.6 --------------------------------------------------------- OTP-11616 New data type - Maps, according to EEP 43, without variable keys. M0 = #{ a => 1, b => 2}, %% to create M1 = M0#{ a := 10 }, %% to update M2 = M1#{ "hi" => "hello"}, %% to add new associations #{ "hi" := V1, a := V2, b := V3} = M2. %% to match keys with values See EEP43 for details. --- webtool-0.8.10 ------------------------------------------------------ OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8. --- wx-1.2 -------------------------------------------------------------- OTP-11586 Refactored C++ code, fixed crashes and a deadlock on linux. --- xmerl-1.3.7 --------------------------------------------------------- OTP-10907 The default encoding of Erlang files has been changed from ISO-8859-1 to UTF-8. The encoding of XML files has also been changed to UTF-8.