aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-12-19Merge branch 'dgud/kernel/refc_sched_wall_time/OTP-11694'Dan Gudmundsson
* dgud/kernel/refc_sched_wall_time/OTP-11694: test: spawn scheduler_wall_time flag holder Turn on scheduler_wall_time in an alive process Redirect system_flag(scheduler_wall_time,_) to kernel_refc kernel: add a resource reference counter
2017-12-19test: spawn scheduler_wall_time flag holderDan Gudmundsson
Can not start via rpc any more without spawning a keep alive process, since it will stop collecting when process dies.
2017-12-19Turn on scheduler_wall_time in an alive processDan Gudmundsson
scheduler_wall_time is ref-counted so it will turn off if process dies, keep the process that turns it on alive.
2017-12-19Redirect system_flag(scheduler_wall_time,_) to kernel_refcRickard Green
2017-12-19Merge branch 'maint'Dan Gudmundsson
* maint: Updated OTP version Prepare release mnesia: Fix checkpoint crash
2017-12-19Merge branch 'maint-20' into maintDan Gudmundsson
* maint-20: Updated OTP version Prepare release mnesia: Fix checkpoint crash
2017-12-19Merge branch 'maint'Ingela Anderton Andin
2017-12-19Merge branch 'ingela/inets/httpc-tests' into maintIngela Anderton Andin
* ingela/inets/httpc-tests: inets: Add missing argument in httpc_SUITE
2017-12-19Merge branch 'maint'Ingela Anderton Andin
2017-12-19Merge branch 'ingela/ssl/engin-ug-doc' into maintIngela Anderton Andin
* ingela/ssl/engin-ug-doc: ssl: Add engine use case to Users Guide
2017-12-19Merge branch 'raimo/stdlib/rand-uniformity'Raimo Niskanen
* raimo/stdlib/rand-uniformity: Tweak statistics limits Improve check on normal distribution tail Test normal distribution
2017-12-18Updated OTP versionOTP-20.2.2Erlang/OTP
2017-12-18Prepare releaseErlang/OTP
2017-12-18Merge branch 'dgud/mnesia/checkpoint-crash/OTP-14841' into maint-20Erlang/OTP
* dgud/mnesia/checkpoint-crash/OTP-14841: mnesia: Fix checkpoint crash
2017-12-18Merge branch 'dgud/mnesia/slow-startup/OTP-14829' into maint-20Erlang/OTP
* dgud/mnesia/slow-startup/OTP-14829: mnesia: Read schema user properties directly
2017-12-18mnesia: Fix checkpoint crashDan Gudmundsson
Bad timing can cause retain messages to go to a new process if checkpoint name is reused directly and the checkpoints contain different tables. Ignore those messages instead of crash.
2017-12-18Merge branch 'maint'Dan Gudmundsson
* maint: Updated OTP version Prepare release mnesia: Read schema user properties directly ssh: testcases for space trailing Hello msg ssh: Don't remove trailing WS in Hello msg
2017-12-18Merge branch 'maint-19' into maintDan Gudmundsson
* maint-19: Updated OTP version Prepare release mnesia: Read schema user properties directly ssh: testcases for space trailing Hello msg ssh: Don't remove trailing WS in Hello msg
2017-12-18Merge pull request #1658 from bjorng/bjorn/compiler/delay-stackframeBjörn Gustavsson
Delay creation of stack frames
2017-12-18inets: Add missing argument in httpc_SUITEIngela Anderton Andin
2017-12-15Updated OTP versionOTP-19.3.6.5Erlang/OTP
2017-12-15Prepare releaseErlang/OTP
2017-12-15Merge branch 'rickard/node-mon-proc-exit-race/OTP-14781' into maint-19Erlang/OTP
* rickard/node-mon-proc-exit-race/OTP-14781: Fix triggering of node monitors
2017-12-15Merge branch 'dgud/mnesia/slow-startup/OTP-14829' into maint-19Erlang/OTP
* dgud/mnesia/slow-startup/OTP-14829: mnesia: Read schema user properties directly
2017-12-15Merge branch 'dgud/mnesia/backup-error-handling/OTP-14776' into maint-19Erlang/OTP
* dgud/mnesia/backup-error-handling/OTP-14776: mnesia: Fix error handling in abort write
2017-12-15Merge branch 'john/erts/fix-close-eintr/OTP-14775' into maint-19Erlang/OTP
* john/erts/fix-close-eintr/OTP-14775: Remove invalid EINTR loop around close(2)
2017-12-15Merge branch 'hans/ssh/dont_remove_trailing_ws_19/OTP-14763' into maint-19Erlang/OTP
* hans/ssh/dont_remove_trailing_ws_19/OTP-14763: ssh: testcases for space trailing Hello msg ssh: Don't remove trailing WS in Hello msg
2017-12-15ssl: Add engine use case to Users GuideIngela Anderton Andin
2017-12-15Merge branch 'bjorn/compiler/coverage'Björn Gustavsson
* bjorn/compiler/coverage: beam_utils: Refactor combine_alloc_lists() to cover more lines map_SUITE: Cover beam_utils:bif_to_test/3 beam_disasm: Remove support for obsolete instructions guard_SUITE: Test is_bitstring/1 and is_map/1 on literals
2017-12-15Merge branch 'maint'Hans Nilsson
* maint: Updated OTP version Prepare release ssh: Special treatment of OpenSSH clients >= 7.2 rsa-sha2-* public keys Conflicts: OTP_VERSION
2017-12-15Merge branch 'maint-20' into maintHans Nilsson
* maint-20: Updated OTP version Prepare release ssh: Special treatment of OpenSSH clients >= 7.2 rsa-sha2-* public keys
2017-12-15v3_codegen: Delay creation of stack framesBjörn Gustavsson
v3_codegen currently wraps a stack frame around each clause in a function (unless the clause is simple without any 'case' or other complex constructions). Consider this function: f({a,X}) -> A = abs(X), case A of 0 -> {result,"0"}; _ -> {result,integer_to_list(A)} end; f(_) -> error. The first clause needs a stack frame because there is a function call to integer_to_list/1 not in the tail position. v3_codegen currently wraps the entire first clause in stack frame. We can delay the creation of the stack frame, and create a stack frame in each arm of the 'case' (if needed): f({a,X}) -> A = abs(X), case A of 0 -> %% Don't create a stack frame here. {result,"0"}; _ -> %% Create a stack frame here. {result,integer_to_list(A)} end; f(_) -> error. There are pros and cons of this approach. The cons are that the code size may increase if there are many 'case' clauses and each needs its own stack frame. The allocation instructions may also interfere with other optimizations, but the new optimizations introduced in previous commits will mitigate most of those issues. The pros are the following: * For some clauses in a 'case', there is no need to create any stack frame at all. * Often when moving an allocation instruction into a 'case' clause, the slightly cheaper 'allocate' instruction can be used instead of 'allocate_zero'. There is also the possibility that the allocate instruction can be be combined with a 'test_heap' instruction. * Each stack frame for each arm of the 'case' will have exactly as many slots as needed.
2017-12-15beam_record: Try harder to avoid fetching the tag elementBjörn Gustavsson
When rewriting tuple matching of the first element of a tuple to an is_tagged_tuple instruction, the get_tuple_element instruction that fetches the tag will be left unless the register that is fetched is subsequently killed. We can do better than that. If the register is referenced in an allocating instruction, but its value is never actually used, we can do one of two things: if the value is known to be defined earlier (using annotations added by beam_utils:anno_defs/1) the instruction can be removed altogether; if not, it can be replaced with a 'move nil TagRegister' instruction.
2017-12-15beam_block: Improve moving of allocationsBjörn Gustavsson
Use annotations added by beam_utils:anno_defs/1 to move more allocations upwards in the instruction stream. That in turn allows us to optimize away more 'move' instructions.
2017-12-15beam_utils: Add usage/3Björn Gustavsson
To avoid having to call both is_killed/3 and is_not_used/3, add usage/3 to answer both questions in one call.
2017-12-15beam_utils: Add anno_defs/1Björn Gustavsson
Add beam_utils:anno_defs/1 which will add an annotation to the beginning of each block indicating which X registers that are defined. Having that information can improve some optimizations.
2017-12-15beam_utils: Improve precision for is_not_used/3Björn Gustavsson
2017-12-15Merge branch 'maint'Ingela Anderton Andin
2017-12-15Merge branch 'ingela/inets/http-benchmarks' into maintIngela Anderton Andin
* ingela/inets/http-benchmarks: inets: Add comparable benchmark tests inets: Create httpd benchmark framwork
2017-12-14inets: Add comparable benchmark testsIngela Anderton Andin
2017-12-14inets: Create httpd benchmark framworkHans Nilsson
2017-12-14Updated OTP versionOTP-20.2.1Erlang/OTP
2017-12-14Prepare releaseErlang/OTP
2017-12-14Merge branch 'hans/ssh/openssh_client_pubkey_sha2/ERL-531/OTP-14827' into ↵Erlang/OTP
maint-20 * hans/ssh/openssh_client_pubkey_sha2/ERL-531/OTP-14827: ssh: Special treatment of OpenSSH clients >= 7.2 rsa-sha2-* public keys
2017-12-14ssh: Special treatment of OpenSSH clients >= 7.2 rsa-sha2-* public keysHans Nilsson
Thoose clients signs with sha instead of sha2-*. Try first to verify with the correct one, and if that fails, retry with sha1.
2017-12-14Merge branch 'maint'Ingela Anderton Andin
2017-12-14Merge branch 'ingela/dtls/fallback-SCSV/OTP-14828' into maintIngela Anderton Andin
* ingela/dtls/fallback-SCSV/OTP-14828: ssl: Align (with DTLS) and correct TLS_FALLBACK_SCSV handling
2017-12-14ssl: Align (with DTLS) and correct TLS_FALLBACK_SCSV handlingIngela Anderton Andin
2017-12-14mnesia: Read schema user properties directlyDan Gudmundsson
Doing a proper transaction handling of user properties (in current implmenentation) caused schema_transactions to be quadratic which caused huge startup times for nodes with many tables since the merge schema is a schema_transaction. Do a direct read instead, cheap but implies that the plugin changes will not be visible until the changes are commited and cannot be used later in same transaction, which was possible before if undocumented functions where used.
2017-12-14Merge pull request #1653 from tonyrog/makedep_side_effectBjörn Gustavsson
Add -MMD option to erlc OTP-14830