aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2015-05-22Only annotate forms when linting in the compilerJosé Valim
A lot of time spent on linting is due to eval_file_attribute/2 function that recursively traverses all the AST, annotating the file name on the AST nodes. This traversal happens so it is easier to add errors and warnings later on by simply introspecting the node. This patch changes eval_file_attribute/2 to only annotate forms (i.e. attributes and functions) and rely on the #lint record to keep the proper file information (which it already did before this patch). To summarize, both pre scan and pos scan will use the annotated file attribute in forms, however form/2 already maintains the proper file in #lint, which we pass around when retrieving the location information. After this patch, linting of a regular erlang module with 500LOC became twice faster when measured with eprof.
2015-05-13Revert "Prepare release"Henrik Nord
This reverts commit e09dd66dc4d89c62ddfd8c19791f9678d5d787c6.
2015-05-13Update OTP versionOTP-18.0-rc2Henrik Nord
2015-05-12Prepare releaseErlang/OTP
2015-05-12Update primary bootstrapRickard Green
2015-05-12Update preloaded modulesRickard Green
2015-05-12Merge branch 'rickard/timer-optimization/OTP-12650'Rickard Green
* rickard/timer-optimization/OTP-12650: Timer fixes, documentation, and test cases Conflicts: erts/emulator/beam/erl_hl_timer.c
2015-05-12Timer fixes, documentation, and test casesRickard Green
2015-05-12ssl: Refactored and corrected sni_fun handlingIngela Anderton Andin
Dialyzer warned about the incorrect match of Packets. Code was refactored and the problem avoided in the process. Dialyzer warned that the empty tuple is not a function as the contract said it should be. Changed the handling of the sni_fun default value to be undefined and added it to the contract.
2015-05-12ssl: add option sni_funQijiang Fan
The newly added function sni_fun allows dynamic update of SSL options like keys and certificates depending on different SNI hostname, rather than a predefined rules of SSL options.
2015-05-12ssl: add tests for SNI server supportQijiang Fan
This commit adds tests for SNI server support in: * ssl_sni_SUITE.erl * ssl_to_openssl_SUITE.erl And some more modifications: * make_certs also makes two certs for SNI, and adds extra options for SNI.
2015-05-12ssl: docs: SNI server, connection_information/1,2Qijiang Fan
2015-05-12ssl: add ssl:connection_information/[1,2]Qijiang Fan
This commit adds a new function, ssl:connection_information/[1,2] to retrive the connection information from a SSLSocket. And also, this deprecates a function ssl:connection_info/1, and reimplements connection_info/1 with the new function.
2015-05-12ssl: deny recursively defined sni_hostsQijiang Fan
2015-05-12ssl: add SNI server supportQijiang Fan
2015-05-12Merge branch 'jv/18/emulator-send-to-error_logger/OTP-12735'Björn-Egil Dahlberg
* jv/18/emulator-send-to-error_logger/OTP-12735: erts: Fix erts_send_error_term_to_logger memory leak Send format and args on process exit to error_logger Add erts_send_error_term_to_logger
2015-05-12erts: Fix erts_send_error_term_to_logger memory leakBjörn-Egil Dahlberg
2015-05-12Merge branch 'peppe/webtool/update_vsn'Peter Andersson
* peppe/webtool/update_vsn: Update webtool version
2015-05-12Merge branch 'hans/ssh/cuddle_tests'Hans Nilsson
* hans/ssh/cuddle_tests: ssh: Fix ssh_basic_SUITE.erl to work on Windows hosts
2015-05-12ssh: Fix ssh_basic_SUITE.erl to work on Windows hostsHans Nilsson
The test cases id_string_no_opt_client id_string_own_string_client id_string_random_client didn't work on MS Windows. This commit adds {packet,line} to get the whole version exchange line in one packet on all architectures. It also adds timeouts to speed up failures in those test cases.
2015-05-12Merge branch 'dgud/mnesia/dirty_error_reason/OTP-12714'Dan Gudmundsson
* dgud/mnesia/dirty_error_reason/OTP-12714: mnesia: dirty error messages did not behave as documented
2015-05-12Merge branch 'ia/ssl/adapt-to-new-public_key-doc'Ingela Anderton Andin
* ia/ssl/adapt-to-new-public_key-doc: ssl: Align "=" sign in type declarations to decided policy public_key: Align "=" sign in type declarations to decided policy public_key, ssl: Align public_key and ssl doc
2015-05-12Merge branch 'ia/ssh/height'Ingela Anderton Andin
* ia/ssh/height: ssh: Fix typo
2015-05-12ssh: Fix typoIngela Anderton Andin
Option height was misspelled in the code. Fix code but recognize the mispellt option for backwards compatible reasons.
2015-05-11Update webtool versionPeter Andersson
2015-05-11Merge branch 'peppe/test_tools_vsn_and_deps'Peter Andersson
* peppe/test_tools_vsn_and_deps: Update version numbers and app dependencies
2015-05-11Merge branch 'peppe/ts/fix_benchmarks'Peter Andersson
* peppe/ts/fix_benchmarks: Fix problem with OTP benchmark tests failing to run
2015-05-11Merge branch 'peppe/test_server/fix_merge_problems'Peter Andersson
* peppe/test_server/fix_merge_problems: Fix remaining issues in source code parser
2015-05-11Merge branch 'sverk/crypto/ec_key_generate/OTP-12733'Sverker Eriksson
* sverk/crypto/ec_key_generate/OTP-12733: crypto: Fix bug in generate_key(ecdh,...)
2015-05-11crypto: Fix bug in generate_key(ecdh,...)Sverker Eriksson
that could cause VM crash on faulty input.
2015-05-11Merge branch 'kejv/export-digraph-label'Zandra Hird
* kejv/export-digraph-label: digraph: export label type
2015-05-11ssl: Align "=" sign in type declarations to decided policyIngela Anderton Andin
2015-05-11public_key: Align "=" sign in type declarations to decided policyIngela Anderton Andin
2015-05-11Merge branch 'egil/erts/high_accuracy_sleep/OTP-12236'Björn-Egil Dahlberg
* egil/erts/high_accuracy_sleep/OTP-12236: erts: Add high accuracy poll timeouts
2015-05-11Merge branch 'hans/eldap/cuddle_doc'Hans Nilsson
* hans/eldap/cuddle_doc: eldap: Remove doc man.3 warning
2015-05-11Merge branch 'derek121/eunit-doc-additions'Zandra Hird
* derek121/eunit-doc-additions: Add mention of ?assertNotMatch and ?assertNotEqual
2015-05-11Merge branch 'vladdu/eunit_unicode_OTP11660'Zandra Hird
* vladdu/eunit_unicode_OTP11660: OTP-11660: make eunit unicode safe
2015-05-11Merge branch 'zandra/mime-types-config/OTP-12731'Zandra Hird
* zandra/mime-types-config/OTP-12731: make it possible to use a file to configure mime types
2015-05-11eldap: Remove doc man.3 warningHans Nilsson
2015-05-11Merge branch 'hans/eldap/cuddle_test_cases'Hans Nilsson
* hans/eldap/cuddle_test_cases: eldap: Test suite uppdated to new time handling
2015-05-11public_key, ssl: Align public_key and ssl docIngela Anderton Andin
Make sure that links from ssl to public_key work. OTP-12670 - Ignoring 1.2 extension in 1.0 or TLS-1.1 solved by 5edda23ee854038c9d4bcddd0d676ee0ffd20da5 is mentioned here to make the release scripts happy, as the branch solving this accidently had a name ending 1267 instead of 12670
2015-05-11Send format and args on process exit to error_loggerJosé Valim
Previously, the emulator would generate a whole string with values and call the error_logger passing "~s~n". This commit changes it to a format string containing ~p with the respective values as arguments.
2015-05-11Add erts_send_error_term_to_loggerJosé Valim
This function allows us to send format and args to the logger which can then be formatted and customized from Erlang land.
2015-05-11Merge branch 'egil/fix-maps-copy-shallow'Björn-Egil Dahlberg
* egil/fix-maps-copy-shallow: erts: Make hashmap_get halfword safe erts: Fix ETS db_has_variable check for large Maps stdlib: Strengthen ETS Maps tests erts: Fix copy shallow for large Maps stdlib: Strengthen ETS Maps tests erts: ETS ordered_set cannot use it's optimization with Maps stdlib: Strengthen ETS Maps tests stdlib: Refactor away ?line macro
2015-05-11Merge branch 'hans/ssh/check_kex_e_f_in_range/OTP-12649'Hans Nilsson
* hans/ssh/check_kex_e_f_in_range/OTP-12649: ssh: Check e and f parameters in kexdh
2015-05-11Merge branch 'aw/native-cpu_sup/OTP-12730'Björn-Egil Dahlberg
* aw/native-cpu_sup/OTP-12730: erts: Fix configure.in os_mon: rename send() to sendi() in cpu_sup.c os_mon: cpu_sup should use native sysctl/libkvm calls on BSD
2015-05-11Merge branch 'egil/fix-maps-erts_debug-size'Björn-Egil Dahlberg
* egil/fix-maps-erts_debug-size: erts: Fix erts_debug:size/1 for large Maps erts: Simple test of erts_debug:size/1 of Maps
2015-05-09Fix problem with OTP benchmark tests failing to runPeter Andersson
2015-05-09Fix remaining issues in source code parserPeter Andersson
2015-05-08Merge branch 'sg2342/fix_freebsd_sendfile/OTP-12720'Sverker Eriksson
* sg2342/fix_freebsd_sendfile/OTP-12720: Fix FreeBSD sendfile