aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2011-03-30Merge branch 'hw/call-chmod-without-f' into devHenrik Nord
* hw/call-chmod-without-f: Call chmod without the "-f" flag Conflicts: erts/emulator/test/Makefile lib/asn1/test/Makefile lib/crypto/test/Makefile lib/debugger/test/Makefile lib/docbuilder/test/Makefile lib/edoc/test/Makefile lib/erl_interface/test/Makefile lib/inviso/test/Makefile lib/parsetools/test/Makefile lib/percept/test/Makefile lib/ssl/test/Makefile lib/syntax_tools/test/Makefile lib/test_server/test/Makefile lib/tools/test/Makefile OTP-9170
2011-03-30Update primary bootstrapBjörn Gustavsson
2011-03-30Merge branch 'bjorn/erts/fix-duplicate-stack-entry/OTP-9163' into devBjörn Gustavsson
* bjorn/erts/fix-duplicate-stack-entry/OTP-9163: Fix duplicate entries in stacktraces after calling certain BIFs BEAM loader: Simplify handling of the func_info/3 instruction
2011-03-30Merge branch 'bjorn/compiler/beam_dict-cleanups' into devBjörn Gustavsson
* bjorn/compiler/beam_dict-cleanups: beam_dict: Eliminate the redundant next_atom record element beam_dict: Fix typo in comment
2011-03-30Merge branch 'rc/rpc_pmap-typo' into devHenrik Nord
* rc/rpc_pmap-typo: Fix typo in doc of rpc:pmap/3 OTP-9168
2011-03-29Merge branch 'tv/edoc-loop-fix' into devHenrik Nord
* tv/edoc-loop-fix: Fix infinite loop for malformed edoc input OTP-9165
2011-03-29beam_dict: Eliminate the redundant next_atom record elementBjörn Gustavsson
It is not needed because it can be trivially calculated using gb_trees:size/1.
2011-03-29beam_dict: Fix typo in commentBjörn Gustavsson
2011-03-29Fix duplicate entries in stacktraces after calling certain BIFsBjörn Gustavsson
Calling a BIF thaf is called as a function (such as process_info/{1,2}) would leave a non-zero value in c_p->cp, which would lead to duplicate entries in the stacktrace.
2011-03-29BEAM loader: Simplify handling of the func_info/3 instructionBjörn Gustavsson
For some historical reason, the transformation of a func_info/3 instruction to the internal i_func_info/4 instruction is more involved than it needs to be. Remove the gen_func_info() function in the loader and use a simple transformation.
2011-03-29Merge branch 'bjorn/compiler/eliminate-warning/OTP-9152' into devBjörn Gustavsson
* bjorn/compiler/eliminate-warning/OTP-9152: sys_core_fold: Eliminate incorrect warning sys_core_fold: Be careful to preserve annotations while optimizing
2011-03-28Merge branch 'siri/stdlib/log_mf_h-write-index-atomically/OTP-9148' into devSiri Hansen
* siri/stdlib/log_mf_h-write-index-atomically/OTP-9148: Update index file atomically
2011-03-25Merge branch 'pan/valgrind_xml_log' into devPatrik Nyblom
* pan/valgrind_xml_log: Make xml valgrind messages end up in xml log OTP-9079
2011-03-25Merge branch 'pan/tcp_send_timeout/OTP-9145' into devPatrik Nyblom
* pan/tcp_send_timeout/OTP-9145: Add testcase Teach tcp_recv not to cancel send timer
2011-03-25Merge branch 'pan/system_info_procs_crash/OTP-9140' into devPatrik Nyblom
* pan/system_info_procs_crash/OTP-9140: Make erts_printf %T not recurse on C stack Corrected fd_driver and cleaned up some really old code in win32/sys.[ch]
2011-03-25Merge branch 'pan/win_init_restart_oldshell/OTP-9139' into devPatrik Nyblom
* pan/win_init_restart_oldshell/OTP-9139: Add testcase Teach win32/sys.c (fd-driver) not to leak readers causing init:restart to fail Make Erlang build with Latest MS SDK, 7.1 (and VStudio 2010)
2011-03-25Merge branch 'pan/tcp_send_timeout/OTP-9145' of super:pan_otp into ↵Patrik Nyblom
pan/valgrind_xml_log
2011-03-25Merge branch 'ta/doc-fixes' into devHenrik Nord
* ta/doc-fixes: Fix two typos in erlsrv log messages Fix typo in epmd help Fix typo in binary:part/2 example Fix typos in efficiency guide erts: Fix doc typos, duplication and readability Fix inet:port/1 doc to match implementation/spec Fix typos in zip manpage
2011-03-25Fix two typos in erlsrv log messagesTuncer Ayaz
2011-03-25Fix typo in epmd helpTuncer Ayaz
2011-03-25Fix typo in binary:part/2 exampleTuncer Ayaz
Reported-By: Pablo Platt
2011-03-25Fix typos in efficiency guideTuncer Ayaz
2011-03-25erts: Fix doc typos, duplication and readabilityTuncer Ayaz
2011-03-25Fix inet:port/1 doc to match implementation/specTuncer Ayaz
2011-03-25Fix typos in zip manpageTuncer Ayaz
2011-03-25Merge branch 'bw/tv-render-fix' into devHenrik Nord
* bw/tv-render-fix: tv: Allow table viewer to display refs, ports and small binaries OTP-9153
2011-03-25sys_core_fold: Eliminate incorrect warningBjörn Gustavsson
The compiler (sys_core_fold) tries to avoid constructing tuples in case expressions. The following code: c(A, B) -> case {A,B} of {ok,X} -> X; {_,_} -> error end. will be rewritten so that no tuple is built. If a clause requires a tuple to be built as in this code: c(A, B) -> case {A,B} of {ok,X} -> X; V -> V %The tuple will be built here end. the tuple will be built in the clause(s) in which it is needed. If the value returned from the case is not used as in this code: c(A, B) -> case {A,B} of V -> V %Warning: a term is constructed, but never used end, ok. there will be an incorrect warning. Basically, what happens is that the code is reduced to: c(A, B) -> {A,B}, %Warning: a term is constructed, but never used ok. and the optimizer sees that the {A,B} tuple can't possibly be used. Eliminate the warning by adding a 'compiler_generated' annotation to the tuple. Reported-by: Kostis Sagonas
2011-03-25sys_core_fold: Be careful to preserve annotations while optimizingBjörn Gustavsson
2011-03-25Merge branch 'bjorn/compiler/bin-size-bug/OTP-9134' into devBjörn Gustavsson
* bjorn/compiler/bin-size-bug/OTP-9134: v3_core: Fix variable incorrectly unbound after binary match v3_core: Fix style and indentation
2011-03-25Merge branch 'sg/fix-diskless-booted-relup' into devSiri Hansen
* sg/fix-diskless-booted-relup: Remove traces of release_handler reading from filesystem when it has Masters list OTP-9142
2011-03-24Merge branch 'cg/fix-sizeof-array-arg' into devHenrik Nord
* cg/fix-sizeof-array-arg: Fix using sizeof() for array given as function argument OTP-9151
2011-03-24Merge branch 'siri/reltool/skip-xref-test-when-debug/OTP-9133' into devSiri Hansen
* siri/reltool/skip-xref-test-when-debug/OTP-9133: Skip reltool_app_SUITE:undef_funcs on debug compiled emulator
2011-03-24Merge branch 'siri/reltool/app_file-option/OTP-9135' into devSiri Hansen
* siri/reltool/app_file-option/OTP-9135: Allow app_file option to be keep | strip | all, as documented
2011-03-24Merge branch 'ia/public_key/encode-decode-ssh/OTP-9144' into devIngela Anderton Andin
* ia/public_key/encode-decode-ssh/OTP-9144: Implemented encode/decode support for ssh public key files
2011-03-24Implemented encode/decode support for ssh public key filesIngela Anderton Andin
2011-03-23Update index file atomicallySiri Hansen
Since the log_mf_h index file might be read by other processes than the error handler (e.g. by the rb tool), this file should be updated atomically. This will avoid hitting the time gap between opening the file in write mode (and thus emptying the file) and the actual update with the new contents. To do this, a temporary file is written, and the file:rename/1 used to replace the real index file.
2011-03-23v3_core: Fix variable incorrectly unbound after binary matchBjörn Gustavsson
In the following code: m(<<Sz:8,_:Sz/binary>>) -> Sz = wrong. the Sz variable is supposed to be bound in the function header and the matching "Sz = wrong" should cause a badarg exception. But what happens is that the Sz variables seems to be unbound and the matching succeds and the m/1 function returns 'wrong'. If the Sz variable is used directly (not matched), it will have the expected value. Thus the following code: m(<<Sz:8,_:Sz/binary>>) -> Sz. will correctly return the value of Sz that was matched out from the binary. Reported-by: Bernard Duggan
2011-03-23v3_core: Fix style and indentationBjörn Gustavsson
2011-03-23Merge branch 'hb/record_field_undefined_type/OTP-9147' into devHans Bolinder
* hb/record_field_undefined_type/OTP-9147: Fix a bug concerning record field types
2011-03-22Fix a bug concerning record field typesHans Bolinder
The default value 'undefined' was added to records field types in such a way that the result was not always a well-formed type. This bug has been fixed. --- erl_pp has since OTP-8150 formatted types so that 'undefined' was removed from union types assigned to record fields. Since one cannot distinguish between 'undefined' added by the parser or supplied by the user, a side effect was that user supplied 'undefined's were also removed. Now the pretty printer shows 'undefined' even if added by the parser. This is a minor issue.
2011-03-21Make xml valgrind messages end up in xml logPatrik Nyblom
2011-03-21Allow app_file option to be keep | strip | all, as documentedSiri Hansen
This is the correction of the bug not allowing the values 'strip' or 'all' for the app_file option in reltool.
2011-03-21Add testcasePatrik Nyblom
2011-03-21Remove traces of release_handler reading from filesystem when it has Masters ↵Steven Gravell
list There are a couple of places in release_handler and release_handler_1 that assumed it has a disk to read from, which in the case of an erl_prim_loader Loader other than efile is not necessarily true Add check_paths/2 to do the equivalent of check_path/1 for when there is a Masters list Change get_vsn to no longer get sent File paths but instead use the Bin since beam_lib:version being sent a file path causes it to read the local file system Add get_current_vsn/1 as an equivalent to beam_lib:version(code:which(Mod)), but using erl_prim_loader:get_file instead of reading from local file system
2011-03-21Teach tcp_recv not to cancel send timerPatrik Nyblom
2011-03-21Add testcasePatrik Nyblom
2011-03-21Teach win32/sys.c (fd-driver) not to leak readers causing init:restart to failPatrik Nyblom
2011-03-21Make Erlang build with Latest MS SDK, 7.1 (and VStudio 2010)Patrik Nyblom
2011-03-17Make erts_printf %T not recurse on C stackPatrik Nyblom
2011-03-16Update version numbersBjörn-Egil Dahlberg