aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-11-09inets: Prepare for releaseIngela Anderton Andin
2017-11-09inets: Add missing guardIngela Anderton Andin
Add test in the correct place which was the reason the guard became missing without being noticed.
2017-11-09Avoid WindowBits=8 as per the manualJohn Högberg
The docs for zlib:deflateInit/6 explicitly mention that 8 is broken and should not be used unless we know for certain that our zlib version supports it.
2017-11-09Fix deflateParams on zlib 1.2.11John Högberg
1.2.11 started bailing when avail_out==0 regardless of whether there's anything to flush or not, and there's no point in adapting the old method since it was vulnerable to bugs in other zlib versions which updated the deflate parameters even on failure. The api_deflateParams test has been expanded accordingly, and two white-box cases in zip_usage has been updated to make fewer assumptions about the output; the validity of the compressed data is what matters, not whether it's exactly the same as the test vector.
2017-11-09Merge pull request #1609 from bjorng/bjorn/compiler/add-internal_docBjörn Gustavsson
Add some internal documentation about cerl_clauses
2017-11-08Merge branch 'maint'Siri Hansen
Conflicts: lib/observer/src/crashdump_viewer.erl
2017-11-08Merge branch 'siri/cdv/misc-improvements/OTP-14755' into maintSiri Hansen
* siri/cdv/misc-improvements/OTP-14755: [cdv] Fix test of size limit reached on crash dump [cdv] Display warning if heap is incomplete [cdv] Check if dump version is newer than cdv can handle [cdv] Add comment about ets tables
2017-11-08[cdv] Fix test of size limit reached on crash dumpSiri Hansen
This test failed every now and then since the selected max size could be greater than the actual size of the dump - so the dump was not truncated. This is now corrected.
2017-11-08[cdv] Display warning if heap is incompleteSiri Hansen
2017-11-08Merge branch 'siri/ct/dont-call-which_applications'Siri Hansen
* siri/ct/dont-call-which_applications: [ct] Remove call to application:which_applications()
2017-11-08ssl: Add private key configuration for crypto engineIngela Anderton Andin
2017-11-07Merge branch 'sverker/systask-reqid-bug/OTP-14752' into maintSverker Eriksson
* sverker/systask-reqid-bug: erts: Fix bug in systask scheduling
2017-11-07Merge branch 'sverker/systask-reqid-bug'Sverker Eriksson
* sverker/systask-reqid-bug: erts: Fix bug in systask scheduling
2017-11-07Merge branch 'sverker/cleanup-hipe_bs_validate_unicode'Sverker Eriksson
* sverker/cleanup-hipe_bs_validate_unicode: erts: Remove obsolete hipe primop bs_validate_unicode
2017-11-07Merge branch 'maint'Sverker Eriksson
2017-11-07Merge PR-1619 from mikpe/erts-hipe-print-heap-fixesSverker Eriksson
fix output formatting in hipe_bifs:show_heap/1
2017-11-07Merge pull request #1551 from peterdmv/peterdmv/stdlib/add_uri_string/OTP-14496Péter Dimitrov
Implement new uri_string module in stdlib
2017-11-07Ignore empty binaries in enif_inspect_iovecJohn Högberg
2017-11-07Emasculate writable binaries on entering an iovecJohn Högberg
The lack of this caused serious data corruption when a binary was altered after entering the queue. This went unnoticed because it was never used without erlang:iolist_to_iovec, which always emasculates binaries.
2017-11-07Merge branch 'hasse/erl_docgen/clause_i_anchors/OTP-14321'Hans Bolinder
* hasse/erl_docgen/clause_i_anchors/OTP-14321: erts: Correct a link in erlang(3) erts: Improve some links in erlang(3) erl_docgen: Insert an anchor for "anchor" attribute
2017-11-07Strengthen tests of definition of specific instructionsBjörn Gustavsson
Don't allow defining an specific operation more than once with the exact same operands. Don't allow a specific operation to be defined with different arities.
2017-11-06Merge PR-1622 from Zorbash/typo-ets-suiteSverker Eriksson
Fix typo in test/ets_SUITE.erl
2017-11-06Clearify call trace limitations.Sverker Eriksson
2017-11-06Fix typo in test/ets_SUITE.erlDimitris Zorbas
2017-11-06erts: Remove obsolete hipe primop bs_validate_unicodeSverker Eriksson
which was replaced by 'is_unicode' in 5369e34a892bfd8ab5aa98df330e3bbf19497b71 but kept for ABI compatibility in OTP-20.*.
2017-11-06Merge branch 'sverker/mend-do_call_trace'Sverker Eriksson
* sverker/mend-do_call_trace: erts: Fix lock checking in do_call_trace
2017-11-06erts: Fix bug in systask schedulingSverker Eriksson
when request id is an immediate. Ex: erlang:garbage_collect(P, [{async,Immediate}]). may crash the VM.
2017-11-06Remove redundant built-in macro $IS_PACKED()Björn Gustavsson
It can easily be implemented as $OPERAND_POSITION($Operand) == 0.
2017-11-06Warn when $REFRESH_GEN_DEST() is not used after a GCBjörn Gustavsson
It is easy to to forget to use $REFRESH_GEN_DEST() in an instruction that has a general destionation ('d'). Add a heuristic that should catch most if not all such problems.
2017-11-06Consistently use the "erts_gc_" prefix for functions that do GCBjörn Gustavsson
In beam_emu, use "erts_gc_" for any function that does garbage collection, as preparation for adding more sanity checks.
2017-11-06Add the built-in macro $IF() to handle conditionalsBjörn Gustavsson
Add an $IF() macro to conditionally expand macros. Use it like this: $IF(Expression, IfTrue, IfFalse) Expression is a Perl expression that can be evaulated at macro expansion time. If the expression evaluates to 0, the result will be IfFalse, otherwise IfTrue.
2017-11-06stdlib: Remove compose_query and dissect_queryPéter Dimitrov
compose_query/{1,2} and dissect_query/1 removed as the implemented specification (HTML 2.0) is old. They will be re-implemented based on HTML5.
2017-11-06Merge branch 'maint'Siri Hansen
2017-11-06Merge branch 'siri/observer/dont-crash-on-expand-empty-binary/OTP-14642' ↵Siri Hansen
into maint * siri/observer/dont-crash-on-expand-empty-binary/OTP-14642: [observer] Don't crash on empty binary
2017-11-06Rename the built-in macro ARG_SIZE() to OPERAND_SIZE()Björn Gustavsson
Although the terminology "arguments" is used in the comments for beam_makeops, the documentation in beam_makeops.md consistenly use the term "operand". Since the name of the macro is user-facing, it should be consistent with the documentation.
2017-11-06Clean up definition of built-in macrosBjörn Gustavsson
Make it easier to define new macros.
2017-11-05fix output formatting in hipe_bifs:show_heap/1Mikael Pettersson
When the code switches from printf() to erts_printf() the output becomes garbled. Fixed by fflush()ing stdout first. Fixed formatting of the "H E A P" banner for 64-bit systems.
2017-11-03erts: Fix lock checking in do_call_traceSverker Eriksson
which was lost in merge 3ec66701f91eba6a7a12a813b2283c2e733f62c1
2017-11-03Removed "unused list comprehensions"Sverker Eriksson
which don't seem to be true.
2017-11-03Merge branch 'maint'Sverker Eriksson
2017-11-03Merge PR-1607 from sverker/hipe_bin_utf32_bug OTP-14740Sverker Eriksson
Fix hipe bug in binary <<X/utf32>> construction
2017-11-03Fix bug in hipe for <<X/utf32>>Sverker Eriksson
by introducing new primop 'is_unicode' with no exception (ab)use and no GC. Replaces bs_validate_unicode which is kept for backward compat for now.
2017-11-03Prevent hipe_bs_validate_unicode from doing GCSverker Eriksson
Fix for x86_64 only. The calling native code can not handle a GC as it has a raw pointer where to write the binary data. If a GC happens the data (utf32) will be written to the old deallocated heap.
2017-11-03stdlib: Refactor functions in uri_stringPéter Dimitrov
2017-11-02hipe: Add doc sections about limitationsSverker Eriksson
2017-11-02[ct] Remove call to application:which_applications()Siri Hansen
The cth_log_redirect hook calls this function to check if the sasl application is started. This is done for each error logger event. In most systems, this is not a big problem, but on native compiled code this call can be very slow if the message queue is long. This is because huge message queue optimization is not implemented for native.
2017-11-02Merge branch 'maint'Ingela Anderton Andin
Conflicts: OTP_VERSION
2017-11-02Merge branch 'maint-20' into maintIngela Anderton Andin
* maint-20: Updated OTP version Update release notes inets: Prepare for release inets: httpd - Fix broken handling of POST requests inets: Make sure httpd:stop_service is synchronous inets: httpd - do not hardcode 302 status for location
2017-11-02Merge branch 'john/erts/msacc-dirty-schedulers/OTP-14707'John Högberg
2017-11-02Only apply EOS behaviors if there's pending dataJohn Högberg