aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2011-05-11Dialyzer cleanup (removed unused function clauses).Micael Karlberg
2011-05-11Eliminate alias warning in gcc 4.5.2Björn Gustavsson
2011-05-11erl_trace: Eliminate alias warningBjörn Gustavsson
Avoid creating two variable names referring to the same memory area, because that can cause aliasing warnings in some versions of gcc.
2011-05-10Present 'low' memory count for halfword-vm with erlang:memory()Sverker Eriksson
2011-05-10Fix overflow in list_to_bitstring/1Björn Gustavsson
Noticed-by: Jon Meredith
2011-05-10Replace io_list_len() with erts_iolist_size()Björn Gustavsson
The io_list_len() function returns an int, where a negative return value indicates a type error. One problem is that an int only consists of 32 bits in a 64-bit emulator. Changing the return type to Sint will solve that problem, but in the 32-bit emulator, a large iolist and a iolist with a type error will both return a negative number. (Noticed by Jon Meredith.) Another problem is that for iolists whose total size exceed the word size, the result would be truncated, leading to a subsequent buffer overflow and emulator crash. Therefore, introduce the new erts_iolist_size() function which returns a status indication and writes the result size through a passed pointer. If the result size does not fit in a word, return an overflow indication.
2011-05-10Merge branch 'siri/stdlib/list-to-set-for-dynamic-temporary-procs/OTP-9242' ↵Siri Hansen
into dev * siri/stdlib/list-to-set-for-dynamic-temporary-procs/OTP-9242: Change list to set in supervisor for saving pids of dynamic temprary children
2011-05-10Merge branch 'siri/sasl/log_mf_h-env-missing/OTP-9185' into devSiri Hansen
* siri/sasl/log_mf_h-env-missing/OTP-9185: Fail sasl startup if some, but not all, environment variables related to log_mf_h are given
2011-05-10Merge branch 'lars/docbuilder/fop-10-crash/OTP-9143' into devLars Thorsen
* lars/docbuilder/fop-10-crash/OTP-9143: Changed copyright year. Removed an overflow warning. Fix fop 1.0 crash when building pdf
2011-05-10Changed copyright year.Lars Thorsen
2011-05-10Removed an overflow warning.Lars Thorsen
2011-05-10Fix fop 1.0 crash when building pdfLars Thorsen
2011-05-10Merge branch 'lars/xmerl/test-suites/OTP-9228' into devLars Thorsen
* lars/xmerl/test-suites/OTP-9228: Fix separator error in tokenlists. Added the xmerl test suites. Using the same testdata for testing xmerl_scan and xmerl_sax_parser. Add test suite for xmerl xmerl: Add doc/examples directory
2011-05-10Fix separator error in tokenlists.Lars Thorsen
2011-05-10Added the xmerl test suites.Lars Thorsen
2011-05-10Using the same testdata for testing xmerl_scan and xmerl_sax_parser.Lars Thorsen
2011-05-10Add test suite for xmerlBjörn Gustavsson
2011-05-10xmerl: Add doc/examples directoryBjörn Gustavsson
Needed by the test suite.
2011-05-09Fix faulty values from erlang:memory() on halfword-vmSverker Eriksson
Use of Uint instead of UWord could cause overflow errors on systems with large memory use.
2011-05-09Allow allocator disable for high memory (better valgrind for halfword)Sverker Eriksson
2011-05-09Expand the use of high memory allocation in halfword emulatorSverker Eriksson
Also add 'low' field in system_info(allocator) SHORT_LIVED is still in low memory
2011-05-09Types and specifications have been modified and addedHans Bolinder
2011-05-09Merge branch 'egil/file-write/OTP-9276' into devBjörn-Egil Dahlberg
* egil/file-write/OTP-9276: Update prim_file.beam Remove unnecessary copy in prim_file:drv_command/3
2011-05-09Merge branch 'sa/dialyzer-tests' into devHenrik Nord
* sa/dialyzer-tests: (22 commits) Update dialyzer.spec Add race/ets_insert_public Add opaque/ewgi,ewgi2 Add opaque/schuett_bug Add small/param_types_crash Add small/file_open_encoding Add small/false_false Add small/ets_update_counter Add small/bin_compr Add small/tuple_set_crash Add small/refine_failing Add small/not_bogus_warning Add small/none_scc_inf_loop Add small/guards Add small/guard_warnings Add small/confusing_record_warning Add small/blame_contract_range Update small/recursive_types2 source Update opaque/zoltan_kis* sources Update options1/compiler results ... OTP-9278
2011-05-09Merge branch 'ks/list_to_bitstring' into devHenrik Nord
* ks/list_to_bitstring: Fix handling of <<_:N,_:_*M>> type expressions Fix the argument of erlang:list_to_bitstring/1 Move function to its proper place Remove unneeded function 'sequence/2' OTP-9277
2011-05-09Add ticet number for tm/xmerl_attr_charref_fixHenrik Nord
OTP-9274
2011-05-09Merge branch 'tm/xmerl_attr_charref_fix' into devHenrik Nord
* tm/xmerl_attr_charref_fix: Prevent xmerl from over-normalizing character references in attributes
2011-05-09Merge branch 'lukas/common_test/timeout_location_fix/OTP-9265' into devLukas Larsson
* lukas/common_test/timeout_location_fix/OTP-9265: Fix ct_framework to not crash when error_notification location is undefined.
2011-05-06ETS usage of erts_printf %RSverker Eriksson
2011-05-06erts_printf %R for relative ets-terms in halfword-vmSverker Eriksson
Conflicts: erts/emulator/beam/erl_printf_term.c
2011-05-06Another halfword is_same-bug for ETS ordered_setSverker Eriksson
This one is less likely to provoke error as one of the terms is always NULL-based.
2011-05-06Update prim_file.beamBjörn-Egil Dahlberg
2011-05-06Remove unnecessary copy in prim_file:drv_command/3Björn-Egil Dahlberg
2011-05-06Make port_command/2 reject non-byte sized bitstringsBjörn Gustavsson
Also rename the fun_to_port/1 test case to outputv_errors/1 and test sending more kinds of bad data to an outputv-enabled driver.
2011-05-06Merge branch 'jf/run_erl-disable-flow-control' into devHenrik Nord
* jf/run_erl-disable-flow-control: Teach run_erl RUN_ERL_DISABLE_FLOWCNTRL for disabling flow control OTP-9270
2011-05-06Merge branch 'kj/eunit-race-cond' into devHenrik Nord
* kj/eunit-race-cond: Don't let eunit_surefire report back to eunit when stopping Wait until all eunit listeners terminate OTP-9269
2011-05-06Merge branch 'lukas/common_test/ct_hook_bugs/OTP-9264' into devLukas Larsson
* lukas/common_test/ct_hook_bugs/OTP-9264: Fix bug which would make cth's to not be removed when out of scope when adding a cth in suite/0 and crashing in pre_init_per_suite.
2011-05-06io.c: Make io_list_vec_len() less generalBjörn Gustavsson
io_list_vec_len() is slightly more general than it needs to be. Specifically: * The only caller always passes ERL_SMALL_IO_BIN_LIMIT as the value for the bin_limit parameter, so the bin_limit parameter can be eliminated. * The only caller never passes any NULL pointers, so there is no need test the pointers before writing through them.
2011-05-06Merge branch 'ta/inet_drv-cleanup' into devHenrik Nord
* ta/inet_drv-cleanup: inet_drv: remove unused tcp request id inet_drv: remove gratuitous assignment OTP-9263
2011-05-06Merge branch 'ms/beam-fix-format-specifiers-in-erl_exit-msg' into devHenrik Nord
* ms/beam-fix-format-specifiers-in-erl_exit-msg: Fix format specifiers in erl_exit messages OTP-9262
2011-05-06Add a check logic to prevent file descriptor leakShunichi Shinohara
cover module handle files as raw in export and import. Assert counts of ports are the same at the beginning and at the end of the test case.
2011-05-05Merge branch 'maint-r14' into devSverker Eriksson
Conflicts: erts/vsn.mk
2011-05-05Merge branch 'ia/ssl/more-socket-options-dialyzer-issues' into devIngela Anderton Andin
* ia/ssl/more-socket-options-dialyzer-issues: Spec corrections
2011-05-05Spec correctionsIngela Anderton Andin
2011-05-04iolist_size/1: Fix truncation of resultBjörn Gustavsson
iolist_size/1 would silently return a truncated result for iolists whose size exceeded the word size. For example: iolist(lists:duplicate(256, <<0:(1 bsl 24)/unit:8>>)). would return 0 (instead of 4294967296 or 1 bsl 32). Rewrite iolist_size/1 to accumulate the size in a bignum if necessary and result the correct result.
2011-05-04Test iolist_size/1 with bad argumentsBjörn Gustavsson
2011-05-04binary_SUITE: Remove workaround for avoiding stack overflowBjörn Gustavsson
In older releases of Erlang/OTP, the '=:=' operator could run out of stack if used to compare very deep lists. Since that problem has been fixed, we can remove the workaround used in the deep/1 test case.
2011-05-04Update dialyzer.specStavros Aronis
2011-05-04Add race/ets_insert_publicStavros Aronis
2011-05-04Add opaque/ewgi,ewgi2Stavros Aronis