aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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-12Prepare releaseErlang/OTP
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-12Merge branch 'peppe/webtool/update_vsn'Peter Andersson
* peppe/webtool/update_vsn: Update webtool version
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-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-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 '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-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-09Fix problem with OTP benchmark tests failing to runPeter Andersson
2015-05-09Fix remaining issues in source code parserPeter Andersson
2015-05-08Update version numbers and app dependenciesPeter Andersson
2015-05-08Merge branch 'rickard/time-improvement/OTP-11997'Rickard Green
* rickard/time-improvement/OTP-11997: Allow execution of estone suite on pre OTP-18 systems Add parallel time monotonicity test-case Replace usage of erlang:now() in line-tracing Replace erlang:now() usage in emulator suite Replace erlang:now() usage in system suite Misc time improvements
2015-05-08Merge branch 'ia/public_key/improve_docs'Ingela Anderton Andin
* ia/public_key/improve_docs: public_key: Add clarifications public_key: Align types with removal of legacy ASN.1 flags public_key: Align to alphabetical order public_key: Correct application names and typos public_key: Change structure to what editor intended Editorial changes
2015-05-08ssh: Check e and f parameters in kexdhHans Nilsson
rfc 4253 says in section 8 that: "Values of 'e' or 'f' that are not in the range [1, p-1] MUST NOT be sent or accepted by either side. If this condition is violated, the key exchange fails." This commit implements the reception check.
2015-05-08Merge branch 'bjorn/asn1/doc'Björn Gustavsson
* bjorn/asn1/doc: asn1_spec: Correct obsolete details about compiler options Update asn1 documentation
2015-05-08Merge branch 'richcarl/md5-fixes'Björn Gustavsson
* richcarl/md5-fixes: Set module_info md5 for native modules properly Add module_info entry for native code Gracefully handle empty md5 field in module_info Remove 'imports' key from spec of get_module_info()
2015-05-08digraph: export label typeDavid Kubecka
Together with vertex and edge, label is a core type of digraph module according to documentation and therefore should be exported as well.
2015-05-08Fixed a typo in Maps docBruce Yinhe
2015-05-08Merge branch 'horvand/filtermap-doc-comma-fix'Zandra Hird
* horvand/filtermap-doc-comma-fix: Delete superfluous comma from `filtermap' example
2015-05-08Delete superfluous comma from `filtermap' exampleAndras Horvath
The code explaining the behaviour of `filtermap/2` had a syntax error and wouldn't compile
2015-05-08typer: Properly extract annotationsHans Bolinder
The addition of the erl_anno module, OTP-12195, also modified v3_core so that functions with line number zero are regarded as compiler generated.
2015-05-08Add mention of ?assertNotMatch and ?assertNotEqualDerek Brown
These two macros are defined in eunit.hrl, but are missing in this documentation.
2015-05-08Fix a typoMichael Klishin