aboutsummaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2019-04-12Merge branch 'sverker/crypto/bcmp-memcmp-fix/OTP-15750' into maint-21Erlang/OTP
* sverker/crypto/bcmp-memcmp-fix/OTP-15750: crypto: Fix link error on windows
2019-04-12Merge branch 'rickard/ts-find-ubuntu-inst/OTP-15716' into maint-21Erlang/OTP
* rickard/ts-find-ubuntu-inst/OTP-15716: Find installed OTP for Ubuntu
2019-04-12Merge branch 'maint'Hans Nilsson
* maint: ssh: Present peername for accept_callback fun also for Sockets ssh: Add ssh_channel:init/1
2019-04-12Merge branch 'maint-21' into maintHans Nilsson
* maint-21: ssh: Present peername for accept_callback fun also for Sockets ssh: Add ssh_channel:init/1
2019-04-12Merge branch 'hans/ssh/accept_callback_socket/OTP-15763' into maint-21Hans Nilsson
* hans/ssh/accept_callback_socket/OTP-15763: ssh: Present peername for accept_callback fun also for Sockets
2019-04-12Merge branch 'ingela/ssl/cipher-suite-conversions'Ingela Anderton Andin
* ingela/ssl/cipher-suite-conversions: ssl: Add functions to convert between diffrent cipher suite formats
2019-04-12Merge branch 'bjorn/erts/measure-process_main/OTP-15620'Björn Gustavsson
* bjorn/erts/measure-process_main/OTP-15620: Add benchmark Add erts_debug:interpreter_size/0
2019-04-12ssl: Add functions to convert between diffrent cipher suite formatsIngela Anderton Andin
2019-04-12stdlib: Let the Pretty Printer output more on one lineHans Bolinder
Atomic elements such as atoms, '{}', '[]', and '<<>>' are output on the same line in types, structs, lists, &c. In particular types can be more compact, and easier to read. A space is output after comma in tuples, to be more consistent.
2019-04-12Merge branch 'hasse/stdlib/erl_pp_quoted_atom_types/OTP-15756'Hans Bolinder
* hasse/stdlib/erl_pp_quoted_atom_types/OTP-15756: stdlib: Add option 'quote_singleton_atom_types' to erl_pp
2019-04-12stdlib: Add option 'quote_singleton_atom_types' to erl_ppHans Bolinder
The new option can be used by Dialyzer, which has traditionally quoted singleton atom types. The OTP team has decided not to use the convention in OTP documentation, at least not for now. That is why the option is needed. EDoc does not use the new option. Syntax Tools does not have a similar option.
2019-04-12Merge branch 'peterdmv/ssl/dtls-fix'Péter Dimitrov
* peterdmv/ssl/dtls-fix: ssl: Fix faulty match of Socket in handle_info/3 Change-Id: Ied8228b8f2eb88e50a47fc101331d7913fdb1de6
2019-04-11[snmp] Post rebase fixupMicael Karlberg
2019-04-11[snmp|agent|test] Test case info and cleanupMicael Karlberg
1) A test case failed due to the times retreived by get(snmpEngineTime) reported to large time diffs (this is basically a sanity check). Added some more info about time(s) to see if there are some "gaps" somewhere. The problem occurred on a slow Virtial Machine. 2) A previous (failing) test case failed to cleanup after itself (see above), which caused later test cases to fail. Specifically, the app top supervisor was not terminated, which caused the start agent function to fail (basically already_started).
2019-04-11[snmp|agent|test] Timestamps and test managerMicael Karlberg
Added common (formated) timestamp function(s). Made use of these in the verbosity module (for debug printouts) and in the test suite(s). I also *think* I found the cause for some if the test case failures (timeouts). For v3 (agent) test cases the test manager makes use of parts of the agent code: snmp_framework_mib and snmp_user_based_sm_mib. And since they store their data in snmpa_local_db, that also needs to be running. And this was the problem (I think). On some (slow) machines, the snmpa_local_db process from the *previous* test case might still be running when the we tried to start it. That meant that no new snmpa_local_db was started. Instead the old one, still running but terminating, was retain. For a while. Until it actually finally stopped. So the next operation towards snmpa_local_db, insert, simply hanged until the process terminated. This in combination with the fact that the packet server process, which was started using proc_lib, previously called init_ack before this init was actually done, could actually start and then at a much later time hang because some operation timed out (the packet server was hanging). Yuckety yuck-yuck.
2019-04-11[snmp|agent|test] More test tweakingMicael Karlberg
Improved test printouts (more with timestamps), also fixed the printouts of the (fake) local-db start result printout. Also updated the copyright end-dates.
2019-04-11[snmp|agent|test] The agent test local-db may already be startedMicael Karlberg
Handle when the agent test manager starts the fake local-db and that process is already running (for some reason).
2019-04-11[snmp|agent|test] Agent test manager start fixMicael Karlberg
The agent test manager had a bug during start that could potentially cause deadlock, but atleast could cause test cases to fail because of timeouts. The test manager (actually the "packet server") used proc_lib to start the process but it called the init_ack function before the init was actually complete. This was only a problem for v3 cases (where it did a bunch of further inits, including starting the local-db process). Also did debug/verbosity tweaking. Added a bunch of debug (verbosity) printouts for the agent test manager "packet server" during v3 init. Also made sure we could distinguish the "normal" local-db from the one used by the test manager (this is done by using a new short-name).
2019-04-11[snmp|agent|test] Improve the EXPECT printoutsMicael Karlberg
The EXPECT printouts has been improved. Partly by including a timestamp.
2019-04-11[snmp|agent] Improved debug printoutsMicael Karlberg
Improve debug (verbose) printouts when a get/get-next/get-bulk/set request fails (first by printing at level log instead of trace and secondly by also printing the original operation result when the operation fails).
2019-04-11[snmp|agent|test] Tweaked the (agent) test managerMicael Karlberg
The test manager used in the agent tests has been tweaked in order to increase the readability (both of the code and the output).
2019-04-11[snmp|agent|test] Some minor tweaking of (agent) test suiteMicael Karlberg
Improved the test manager printouts to make it easier to diagnose problems...
2019-04-11Merge branch 'maint'Micael Karlberg
2019-04-11Merge branch 'bmk/snmp/20190328/get_mechanism/OTP-15691' into maintMicael Karlberg
2019-04-11ssl: Fix faulty match of Socket in handle_info/3Péter Dimitrov
Fix dtls_connection:handle_info/3 to correctly match the Socket in static_env. Change-Id: Iddaad0514c2413abac6d9a06292556e07acc7729
2019-04-11ssh: Present peername for accept_callback fun also for SocketsHans Nilsson
2019-04-11ssh: Add ssh_channel:init/1Hans Nilsson
that was misstakeingly lost when introducing ssh_client_channel.erl
2019-04-11Merge branch 'sverker/test-cuddle'Sverker Eriksson
* sverker/test-cuddle: stdlib: Remove ets_SUITE:time_lookup
2019-04-11Merge branch 'sverker/revert-big-creation'Sverker Eriksson
* sverker/revert-big-creation: Revert "erts: Make DFLAG_BIG_CREATION mandatory" Revert "erts: Remove old encoding of pids, ports and refs" Revert "erl_interface: Remove old encoding of pid,port,refs" Revert "epmd: Support 32-bit creation values in local node" Revert "jinterface: Remove old encoding of pid,port,refs" Revert "erl_interface: Support 32-bit creation local cnode" Revert "erts: Document new EPMD response ALIVE2_X_RESP"
2019-04-11test_server_node: Bump compiler compatibility version to OTP 20Björn Gustavsson
2019-04-11Merge branch 'bjorn/ct/clear_erl_aflags'Björn Gustavsson
* bjorn/ct/clear_erl_aflags: Clear ERL_AFLAGS when starting a previous release
2019-04-11crypto: Rename 'crypto_(init|update)_dyn_iv' to 'crypto_dyn_iv_(init|update)'Hans Nilsson
2019-04-11crypto: Rename crypto_aead to crypto_one_time_aeadHans Nilsson
2019-04-11crypto: Doc review commentsHans Nilsson
This reverts commit c207d2438017d15e32f47f5ff7168759b3d123fc.
2019-04-11public_key: Let options down to crypto from public_encrypt etcHans Nilsson
2019-04-11Merge branch 'siri/cuddle-master'Siri Hansen
* siri/cuddle-master: [logger] Skip test logger_std_h:reopen_changed_log on Windows
2019-04-11Merge pull request #2195 from mhssler/ct-fix-log-opts-exampleSiri Hansen
common_test: Fix typo in log options example
2019-04-11Merge branch 'peterdmv/ssl/fix-tls13-handshake/ERL-908/OTP-15759'Péter Dimitrov
* peterdmv/ssl/fix-tls13-handshake/ERL-908/OTP-15759: ssl: Add chacha ciphers to openssl_suite_name/1 ssl: Filter signature_schemes before usage ssl: Handle legacy algorithms in signature_scheme/1 Change-Id: I4caa0fb21324aceb1d3502d33e61e99bd915d9c4
2019-04-11Merge branch 'peterdmv/ssl/dtls-improvements'Péter Dimitrov
* peterdmv/ssl/dtls-improvements: ssl: Fix ssl:getstat/2 ssl: Implement {active,N} for DTLS ssl: Fix function merge_fragments/2 ssl: Remove excessive calls to next_record/1 Change-Id: I5c5fb3227a96636f0e93a1818223678d3efdbaff
2019-04-11Merge remote-tracking branch 'origin/john/hipe/binary-match-docfix'John Högberg
* origin/john/hipe/binary-match-docfix: hipe: Remove mention of `no_bsm3` flag
2019-04-11Merge remote-tracking branch 'origin/john/compiler/fix-header-deps'John Högberg
* origin/john/compiler/fix-header-deps: compiler: Add missing header dependencies
2019-04-11edoc: Fix doc linksHans Bolinder
Links that used to work for 'make edocs' only, now work for 'make release_docs' and on erlang.org as well.
2019-04-11syntax_tools: Fix doc linkHans Bolinder
A link that used to work for 'make edocs' only, now works for 'make release_docs' and on erlang.org as well.
2019-04-10[snmp|manager|test] Finding address of localhostMicael Karlberg
Some simple tweaking to find the "proper" address to localhost (to make test suite work in the office environment).
2019-04-10Decentralized counters for ETS ordered_set with write_concurrencyKjell Winblad
Previously, all ETS tables used centralized counter variables to keep track of the number of items stored and the amount of memory consumed. These counters can cause scalability problems (especially on big NUMA systems). This commit adds an implementation of a decentralized counter and modifies the implementation of ETS so that ETS tables of type ordered_set with write_concurrency enabled use the decentralized counter. [Experiments][1] indicate that this change substantially improves the scalability of ETS ordered_set tables with write_concurrency enabled in scenarios with frequent `ets:insert/2` and `ets:delete/2` calls. The new counter is implemented in the module erts_flxctr (`erts_flxctr.h` and `erts_flxctr.c`). The module has the suffix flxctr as it contains the implementation of a flexible counter (i.e., counter instances can be configured to be either centralized or decentralized). Counters that are configured to be centralized are implemented with a single counter variable which is modified with atomic operations. Decentralized counters are spread over several cache lines (how many can be configured with the parameter `+dcg`). The scheduler threads are mapped to cache lines so that there is no single point of contention when decentralized counters are updated. The thread progress functionality of the Erlang VM is utilized to implement support for linearizable snapshots of decentralized counters. The snapshot functionality is used by the `ets:info/1` and `ets:info/2` functions. [1]: http://winsh.me/ets_catree_benchmark/flxctr_res.html
2019-04-10Merge pull request #2205 from bjorng/bjorn/record_info/ERL-907Björn Gustavsson
Issue an error for improper use of record_info/2 in a fun OTP-15760
2019-04-10compiler: Add missing header dependenciesJohn Högberg
2019-04-10Merge branch 'hasse/parsetools/fix_leex_test'Hans Bolinder
* hasse/parsetools/fix_leex_test: parsetools: Remove no longer working tests
2019-04-10ssl: Add chacha ciphers to openssl_suite_name/1Péter Dimitrov
Change-Id: I2f2cc8c64f02b50773eb455770336b159da7b9f9
2019-04-10ssl: Filter signature_schemes before usagePéter Dimitrov
Filter unassigned and legacy elements from signature_scheme_list before further processing. Change-Id: I0a2623e53c21cebe6e736e7eee6bb6354fc698b7