summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* erl_lint: Stop returning unsafe variables from comprehensionsJohn Högberg2019-09-172-4/+26
| | | | | This prevents unsafe variables from being indirectly marked as used and bound.
* Merge branch 'zadean/syntax_tools/add_missing_unwrap/OTP-16012/PR-2348' into ↵Hans Bolinder2019-08-263-25/+64
|\ | | | | | | | | | | | | | | | | maint * zadean/syntax_tools/add_missing_unwrap/OTP-16012/PR-2348: Update test suite Also unwrap map_type_* name and value Add unwrap calls to map_field_* in erl_syntax
| * Update test suitezadean2019-08-222-0/+39
| | | | | | | | | | | | | | | | | | Add record with exact and associated map types to type_specs.erl. The record forces the erl_parse format for map types to be retained. Add test wrapped_subtrees to the test suite. It ensures that each erl_parse node it encounters can be wrapped and accessed with erl_syntax:subtrees/1 without error.
| * Also unwrap map_type_* name and valuezadean2019-08-221-12/+12
| |
| * Add unwrap calls to map_field_* in erl_syntaxZachary Dean2019-08-221-12/+12
| | | | | | | | This adds missing calls to unwrap/1 for the map_field_* name and value functions and puts them inline with map_expr_fields/1. Using these functions with "wrapped" nodes fails with badarg.
* | Merge pull request #2353 from ↵Björn Gustavsson2019-08-232-5/+61
|\ \ | | | | | | | | | | | | bjorng/bjorn/stdlib/fix-file_lib-wildcard/ERL-1029/OTP-15987 Fix filelib:wildcard/1,2 for patterns containing ".." and/or "@"
| * | Fix filelib:wildcard/1,2 for patterns containing ".." and/or "@"Björn Gustavsson2019-08-222-5/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `..` was broken and only worked when it was used in the beginning of the pattern before any wildcard characters. For example: 1> filelib:wildcard("erts/.."). ["erts/.."] Using `..` preceded by wildcard characters would not work: 1> filelib:wildcard("*/.."). [] `@` is not a wildcard character but is used internally in `filelib` as an escape character and was not handled as other literal characters. That could lead to performance degradation as it disabled an optimization of the matching of the literal prefix of a pattern. It would also cause the following example to fail: 1> filelib:wildcard("@/.."). [] This commit corrects the handling `..` and also makes sure that the use of `@` in a pattern does not degrade performance. https://bugs.erlang.org/browse/ERL-1029
* | | Merge pull request #2301 from stuart-thackray/saslLoggerStartup/OTP-15942Lukas Larsson2019-08-233-7/+12
|\ \ \ | | | | | | | | Start up of SASl when compared log level is all
| * | | Change logger:compare_levels/2 to allow SASL startupStuart Thackray2019-07-083-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | Allowed SASL startup when compared levels include all/none as per PR 2301. This was achieved by adding another macro for this (?IS_LEVEL_ALL); documentation updated to show the change
* | | | Merge branch 'sverker/ets-delete-tree-trapping' into maintSverker Eriksson2019-08-222-148/+136
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * sverker/ets-delete-tree-trapping: erts: Refactor ets catree deletion
| * | | | erts: Refactor ets catree deletionSverker Eriksson2019-08-152-148/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to maintain consistency of the trees during yielding and by that avoid problems with test inspection like erts_debug:get_internal_state(node_and_dist_references).
* | | | | Merge branch 'ingela/ssl/test-cuddle' into maintIngela Anderton Andin2019-08-223-7/+9
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ingela/ssl/test-cuddle: ssl: Make sure test starts in a "good" state ssl: Cuddle timeout
| * | | | | ssl: Make sure test starts in a "good" stateIngela Anderton Andin2019-08-221-1/+3
| | | | | |
| * | | | | ssl: Cuddle timeoutIngela Anderton Andin2019-08-223-6/+6
|/ / / / /
* | | | | Merge pull request #2352 from distortedsignal/patch-2Lukas Larsson2019-08-211-1/+1
|\ \ \ \ \ | | | | | | | | | | | | Add helping verb
| * | | | | Add helping verbTom Kelley2019-08-191-1/+1
| | | | | | | | | | | | | | | | | | Needed a helping verb, added a helping verb.
* | | | | | Merge branch 'ingela/ssl/test-cuddle' into maintIngela Anderton Andin2019-08-213-2/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ingela/ssl/test-cuddle: public_key: Use another time in test certificates ssl: Robustify test case
| * | | | | | public_key: Use another time in test certificatesIngela Anderton Andin2019-08-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some OpenSSL versions has problems handling the current selected time causing interop tests to fail.
| * | | | | | ssl: Robustify test caseIngela Anderton Andin2019-08-212-1/+5
|/ / / / / /
* | | | | | Merge branch 'hasse/eunit/io_protocol_fix/OTP-16000' into maintHans Bolinder2019-08-211-0/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * hasse/eunit/io_protocol_fix/OTP-16000: eunit: Handle get_until requests with explicit encoding
| * | | | | | eunit: Handle get_until requests with explicit encodingHans Bolinder2019-08-201-0/+2
|/ / / / / /
* | | | | | Merge branch 'kpy3/fix-fd-leak-in-logger/OTP-15997' into maintLukas Larsson2019-08-201-2/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * kpy3/fix-fd-leak-in-logger/OTP-15997: Close log files in case of inode change properly
| * | | | | | Close log files in case of inode change properlySergey Yelin2019-07-231-2/+2
| | | | | | |
* | | | | | | Merge branch 'legoscia/stdlib/fun2ms-plusplus/OTP-15992/PR-2322' into maintHans Bolinder2019-08-202-0/+6
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | * legoscia/stdlib/fun2ms-plusplus/OTP-15992/PR-2322: fun2ms: accept ++ in function head when called from shell
| * | | | | | fun2ms: accept ++ in function head when called from shellMagnus Henoch2019-07-122-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Code such as ets:fun2ms(fun({"foo" ++ X}) -> X end) works fine in compiled code. Let's make it work when fun2ms is invoked from the shell as well.
* | | | | | | Merge branch 'sverker/erl_interface/ei_decode_fun-fix/OTP-15996' into maintSverker Eriksson2019-08-191-1/+4
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sverker/erl_interface/ei_decode_fun-fix/OTP-15996: erl_interface: Fix bug in ei_decode_fun for very old encoding
| * | | | | | | erl_interface: Fix bug in ei_decode_fun for very old encodingSverker Eriksson2019-08-131-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Found by valgrind test runs.
* | | | | | | | Merge branch 'ingela/ssl/test-cuddle' into maintIngela Anderton Andin2019-08-193-12/+16
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ingela/ssl/test-cuddle: ssl: Add OpenSSL renegotiate sanity check ssl: Fix missing OpenSSL conf
| * | | | | | | | ssl: Add OpenSSL renegotiate sanity checkIngela Anderton Andin2019-08-192-2/+10
| | | | | | | | |
| * | | | | | | | ssl: Fix missing OpenSSL confIngela Anderton Andin2019-08-191-10/+6
| | | | | | | | |
* | | | | | | | | Merge branch 'hans/ssh/gendoc/OTP-15395' into maintHans Nilsson2019-08-1912-591/+982
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * hans/ssh/gendoc/OTP-15395: ssh: Use new ssh_connection:event() type in channel defs ssh: change type names ssh: The ssh_connection documentation is now generated ssh: Update ssh_sftp:start_channel documentation and code ssh: The ssh_sftp documentation is now generated ssh: The ssh_sftpd documentation is now generated
| * | | | | | | | | ssh: Use new ssh_connection:event() type in channel defsHans Nilsson2019-08-124-13/+13
| | | | | | | | | |
| * | | | | | | | | ssh: change type namesHans Nilsson2019-08-122-138/+171
| | | | | | | | | |
| * | | | | | | | | ssh: The ssh_connection documentation is now generatedHans Nilsson2019-08-122-226/+345
| | | | | | | | | |
| * | | | | | | | | ssh: Update ssh_sftp:start_channel documentation and codeHans Nilsson2019-08-123-24/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Typing in the old documentation was not up-to-date. The option handling and definition is slightly re-worked in the code also. Some comments added and a function moved inside the module.
| * | | | | | | | | ssh: The ssh_sftp documentation is now generatedHans Nilsson2019-08-123-291/+485
| | | | | | | | | |
| * | | | | | | | | ssh: The ssh_sftpd documentation is now generatedHans Nilsson2019-08-122-24/+21
| | | | | | | | | |
* | | | | | | | | | Merge branch 'hans/ssh/remove_unused_rec_fields/OTP-15984' into maintHans Nilsson2019-08-193-29/+1
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * hans/ssh/remove_unused_rec_fields/OTP-15984: ssh: Remove unused address,port from #connection{} ssh: Remove unused port_bindings from #connection{}
| * | | | | | | | | | ssh: Remove unused address,port from #connection{}Hans Nilsson2019-08-141-2/+0
| | | | | | | | | | |
| * | | | | | | | | | ssh: Remove unused port_bindings from #connection{}Hans Nilsson2019-08-143-27/+1
| | | | | | | | | | |
* | | | | | | | | | | Merge branch 'hans/ssh/early_crash_fail_logging/ERL-990/OTP-15962' into maintHans Nilsson2019-08-191-1/+7
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * hans/ssh/early_crash_fail_logging/ERL-990/OTP-15962: ssh: Don't assume Reason to be a string()
| * | | | | | | | | | ssh: Don't assume Reason to be a string()Hans Nilsson2019-08-161-1/+7
| | | | | | | | | | |
* | | | | | | | | | | Merge branch 'hasse/kernel/global_tests' into maintHans Bolinder2019-08-191-1/+12
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * hasse/kernel/global_tests: kernel: Correct a test case in global_SUITE
| * | | | | | | | | | kernel: Correct a test case in global_SUITEHans Bolinder2019-07-021-1/+12
| | | | | | | | | | |
* | | | | | | | | | | Merge pull request #2349 from ↵Björn Gustavsson2019-08-162-12/+34
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bjorng/bjorn/compiler/fix-beam_except/ERL-1026/OTP-15985 Fix an internal consistency check failure caused by beam_except
| * | | | | | | | | | | Fix an internal consistency check failure caused by beam_exceptBjörn Gustavsson2019-08-152-12/+34
| | |_|_|_|_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://bugs.erlang.org/browse/ERL-1026
* | | | | | | | | | | Merge branch 'john/erts/process_info-binary-heap-fragments/OTP-15978' into maintJohn Högberg2019-08-161-6/+20
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * john/erts/process_info-binary-heap-fragments/OTP-15978: erts: Scan heap fragments for off-heap binaries
| * | | | | | | | | | erts: Scan heap fragments for off-heap binariesJohn Högberg2019-08-121-6/+20
| | | | | | | | | | |
* | | | | | | | | | | Merge pull request #2347 from ↵Björn Gustavsson2019-08-142-18/+79
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bjorng/bjorn/compiler/fix-receive-bug/ERL-1022/OTP-15982 Fix compiler crash when compiling some receive statements
| * | | | | | | | | | Fix compiler crash when compiling some receive statementsBjörn Gustavsson2019-08-142-18/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The compiler would crash when compiling the following code: do(Acc) -> receive {Pid, abc} -> ok; {Pid, []} -> ok; {Pid, _Res} -> exit(_Res) end, do([Pid | Acc]). The last clause that always raises an exception would confuse the compiler so that it would think that the `receive` statement was at the end of the function and it would generate incorrect code for the `do/1` call following the `receive`. https://bugs.erlang.org/browse/ERL-1022