aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2011-05-13Merge branch 'hb/kernel/specs/OTP-9268' into devHans Bolinder
* hb/kernel/specs/OTP-9268: Types and specifications have been modified and added
2011-05-13Ssl sometimes fails when reusing a sessionIngela Anderton Andin
Invalidation of a session for reusing should first flag that the session may no longer be reused and then later when all possible pending reuses have been handled delete the session from the database. This could otherwise cause the client to terminate due to {badarg,[{erlang,byte_size,[undefined]}, and the server to terminate due to {{badmatch,{resumed,undefined}}.
2011-05-13Bugfix in rb:filter when using 're' (regexp) and 'no'Siri Hansen
There was an inconsistency in the filter function, as filter([{Key,Regexp,re,no}]) did not work in the same way as filter([{Key,Value,no}]) The first filter only returned 'proplist' reports, while the second returned *all* reports that didn't match the Value. This has been corrected so both filters now return all reports that don't match.
2011-05-12Don't attempt to do supervisor:delete_child for temporary childSiri Hansen
After a bug fix supervisor does no longer save childspecs for temporary children. Due to this, all calls to supervisor:delete_child will fail for temporary children. rb:stop is therefore now rewritten to only do supervisor:terminate_child.
2011-05-12Never fail when stopping rb, and fix file descriptor leakSiri Hansen
rb:stop did sometimes return {error,running}. This came from supervisor:delete_child and happened when the rb_server has not yet terminated when this function was called. Instead of having a separate gen_server call to rb_server for stopping the process, supervisor:terminate_child is now called. This is a synchronous function - i.e. it waits for the process to actually terminate before it returns. A file descriptor leak in rb:scan_files is corrected. The index file was never closed after reading.
2011-05-12Types and specifications have been modified and addedHans Bolinder
2011-05-12Merge branch 'sverker/halfword-printf-relative-terms/OTP-9292' into devBjörn-Egil Dahlberg
* sverker/halfword-printf-relative-terms/OTP-9292: ETS usage of erts_printf %R erts_printf %R for relative ets-terms in halfword-vm Another halfword is_same-bug for ETS ordered_set
2011-05-12Merge branch 'sverker/halfword-high-alloc/OTP-9291' into devBjörn-Egil Dahlberg
* sverker/halfword-high-alloc/OTP-9291: Present 'low' memory count for halfword-vm with erlang:memory() Fix faulty values from erlang:memory() on halfword-vm Allow allocator disable for high memory (better valgrind for halfword) Expand the use of high memory allocation in halfword emulator
2011-05-12Merge branch 'bmk/catching_gen_tcp_badargs/OTP-9289' into ↵Micael Karlberg
bmk/inets/inet56_integration
2011-05-12Calling gen_tcp:connect with option {ip, {127,0,0,1}} results in an exit withMicael Karlberg
reason badarg. Neither SSL nor INETS catches this, resulting in crashes with incomprehensible reasons. OTP-9289
2011-05-12Merge branch 'bmk/catching_gen_tcp_badargs/OTP-9289' into ↵Micael Karlberg
bmk/inets/inet56_integration
2011-05-12Calling gen_tcp:connect with option {ip, {127,0,0,1}} results in an exit withMicael Karlberg
reason badarg. Neither SSL nor INETS catches this, resulting in crashes with incomprehensible reasons. OTP-9289
2011-05-12Merge branch 'dgud/mnesia/add_index_crash/OTP-9285' into devDan Gudmundsson
* dgud/mnesia/add_index_crash/OTP-9285: Fix mnesia crash when adding index on non loaded tables.
2011-05-12Merge branch 'dgud/mnesia/startup-timing' into devDan Gudmundsson
* dgud/mnesia/startup-timing: Use recover_nodes when deciding alive nodes
2011-05-12Merge branch 'dgud/mnesia/test-fixes' into devDan Gudmundsson
* dgud/mnesia/test-fixes: Verify that remote data is commited before dirty ops begin Fix mnesia own small test framework so it works with the re-written tests.
2011-05-12Use recover_nodes when deciding alive nodesDan Gudmundsson
Fixes timing issue in test cases
2011-05-12Verify that remote data is commited before dirty ops beginDan Gudmundsson
2011-05-12Fix mnesia own small test framework so it works with the re-written tests.Dan Gudmundsson
2011-05-12rHans Bolinder
Use Erlang specs and types for documentation
2011-05-11Merge branch 'dc/improved_find_redist' into devPatrik Nyblom
* dc/improved_find_redist: support new SDKs in find_redist.sh and fallback to $ERL_TOP as last resort OTP-9287
2011-05-11Merge branch 'pan/release_docs-use-newly-built-escript/OTP-9176' into devPatrik Nyblom
* pan/release_docs-use-newly-built-escript/OTP-9176: Teach toplevel makefile to always use newly built escript. Fix for Makefile.in invoking xref_mod_app.escript
2011-05-11Merge branch 'kenneth/asn1/failingtests/OTP-9286' into devKenneth Lundin
* kenneth/asn1/failingtests/OTP-9286: Corrected test case that failed because of the removal of a catch in timer:tc
2011-05-11Merge branch 'inets/httpc/improvements/OTP-9246' into ↵Micael Karlberg
bmk/inets/inet56_integration
2011-05-11Also updated release notes.Micael Karlberg
2011-05-11Merge branch 'inets/httpc/improvements/OTP-9246' into ↵Micael Karlberg
bmk/inets/inet56_integration OTP-9246
2011-05-11Corrected test case that failed because of the removal of a catch in timer:tcKenneth Lundin
The test case is called test_inline and is using the wrong module name 'Mod1' instead of 'Mod'. This has never been working correcty but was hidden by the catch in timer:tc.
2011-05-11git ignore lib/xmerl/test/xmerl_test.erlTuncer Ayaz
2011-05-11Merge branch 'bmk/snmp/counter32_decode/OTP-9022' into ↵Micael Karlberg
bmk/snmp/snmp420_integration Conflicts: lib/snmp/src/app/snmp.appup.src OTP-9022
2011-05-11hipe_mkliterals print argv[0] in generated filesSverker Eriksson
2011-05-11Fix code:is_module_native segv on deleted moduleSverker Eriksson
2011-05-11lock checking fix in hipe_bif2.cSverker Eriksson
2011-05-11Fixed httpc manager crashIngela Anderton Andin
httpc manager crashes.When a request results in a retry, the request id will be "reused" in the previous implementation a race condition could occur causing the manager to crash. This is now avoided by using proc_lib:init_ack and gen_server:enter_loop to allow more advanced initialization of httpc_handlers without blocking the httpc_manger and eliminating extra processes that can cause race conditions.
2011-05-11Merge branch 'dgud/timer_tc/OTP-9169' into devDan Gudmundsson
* dgud/timer_tc/OTP-9169: Add timer:tc/1 which measures elapsed time for a fun/0
2011-05-11Add timer:tc/1 which measures elapsed time for a fun/0Dan Gudmundsson
Also removes the 'catch' from timer:tc functions which masked errors in measuring code.
2011-05-11Merge branch 'dgud/et/window-fix/OTP-9238' into devDan Gudmundsson
* dgud/et/window-fix/OTP-9238: Windows fixes, content_viewer window size was wrong and removed focus stealing
2011-05-11Windows fixes, content_viewer window size was wrong and removed focus stealingDan Gudmundsson
2011-05-11Fix mnesia crash when adding index on non loaded tables.Dan Gudmundsson
This could happen on ram_copies tables.
2011-05-11Merge branch 'rickard/gc-other/OTP-9211' into devRickard Green
* rickard/gc-other/OTP-9211: Fix bad assertions Avoid scheduling of processes being garbage collected by others
2011-05-11Updated appup file also (to handle snmp_pdus).Micael Karlberg
2011-05-11Fix bad assertionsRickard Green
2011-05-11Use Erlang specs and types for documentationHans Bolinder
2011-05-11erlexec: Make ERL_<version>_FLAGS behave like ERL_AFLAGSBjörn Gustavsson
The contents of the ERL_<version>_FLAGS undocumented environment variable would be added at the end of the command line passed to the BEAM emualator (similar to ERL_ZFLAGS), making it impossible to override (for example) "-smp" with "-smp disable" on the command line. To allow overriding, put the contents of ERL_<version>_FLAGS at the beginning of the command line (similar to ERL_AFLAGS). Since the ERL_<version>_FLAGS variable is undocumented and unsupported, it is OK to change its behaviour in a minor release.
2011-05-11cerl: Fix several incompatibilities with 'erl'Björn Gustavsson
Invoking 'cerl' like 'cerl -smp' would only start the smp emulator if default was to start the non-smp emulator, otherwise 'erlexec' would try to start 'beam.smp.smp'. Furthermore 'cerl -smp disable' would be handled in the same way as 'cerl -smp'.
2011-05-11Teach erlexec the -emu_name_exit optionBjörn Gustavsson
It is difficult/impossible to find out whether an invocation of 'erl' will start the smp emulator or the non-smp emulator (short of actually starting the emulator). Therefore we will need a way to ask 'erlexec'.
2011-05-11cerl: Remove ancient obsolete optionsBjörn Gustavsson
The -frag and -smp_frag options was used to start an (at the time) experimental build of the emulator. The -shared and -hybrid option was used to start experimental versions of the emulator with alternate heap architectures.
2011-05-11Cosmetics.Micael Karlberg
2011-05-11Release notes, test case and some minor decode fixesMicael Karlberg
(allow only 32 bit values when decoding).
2011-05-11Homogenize memory barriers on atomicsRickard Green
Atomic operations with specified barriers have specified barrier semantics. Set and read operations have undefined barrier semantics. All other atomic operations implied full memory barriers, except when using the libatomic_ops library and the tilera atomics api. Some code in the runtime system assumed that all operations used (except for set, read and specified) implied full memory barriers. The use of the libatomic_ops library and the tilera atomics api have therefore been modified to behave as the other implementations. Some atomic operations with specified barrier semantics on sparc32 have also been been relaxed in this commit.
2011-05-11Merge branch 'gl/erl_do_receive_msg/OTP-9241' into devBjörn-Egil Dahlberg
* gl/erl_do_receive_msg/OTP-9241: The function 'erl_xreceive_msg' returned garbage in the 'to' and 'to_name' members of the message. The reason for that was found in the 'erl_do_receive_msg' function. When no 'pid' is provided by the sender, like when doing rpc calls as those uses registered name sends, it doesn't initialize the 'to' member and also the 'to_name' member is copied by the function.
2011-05-11Allow Dets tablenames to be arbitrary termsHans Bolinder