summaryrefslogtreecommitdiff
path: root/erts/preloaded
Commit message (Collapse)AuthorAgeFilesLines
* Update preloadedFredrik Gustafsson2013-09-101-0/+0
|
* Fix incorrect values returned by integer_to_binary/2Juan Jose Comellas2013-09-091-7/+8
| | | | | | | When integer_to_binary/2 receives 0 or a negative number as an argument with a base that is different from 10, it will return incorrect values (<<>> in the case of 0) or it will crash (with negative numbers). This commit fixes these problems and adds tests to cover these cases.
* Merge branch 'raimo/linux-network-namespace-sockopt/OTP-11157' into maintRaimo Niskanen2013-09-042-11/+26
|\ | | | | | | | | | | | | | | | | | | * raimo/linux-network-namespace-sockopt/OTP-11157: Document socket option 'netns' Rudimentary test Make netns option value a string Implement netns for SCTP + bugfixes Implement netns option for TCP and UDP Implement emulator netns support for TCP and UDP
| * Implement emulator netns support for TCP and UDPRaimo Niskanen2013-07-172-11/+26
| |
* | Updated preloadedFredrik Gustafsson2013-08-291-0/+0
| |
* | Export type zlib:zstream/0Loïc Hoguin2013-08-221-0/+2
| | | | | | | | | | Terms of this type are returned and sometimes sit in states. Exporting it allows us to properly track the types there.
* | Add erts app-fileBjörn-Egil Dahlberg2013-07-114-4/+55
|/
* Improve solutionRaimo Niskanen2013-06-152-2/+26
|
* Update copyright yearsBjörn-Egil Dahlberg2013-06-122-2/+2
|
* Update preloaded modulesBjörn-Egil Dahlberg2013-06-1210-0/+0
|
* erts: Update spec in preloaded to reflect success typing (again)Lukas Larsson2013-06-072-2/+2
|
* Merge branch 'lukas/erts/gc_stat_contention/OTP-10271' into maintLukas Larsson2013-06-052-3/+1
|\ | | | | | | | | * lukas/erts/gc_stat_contention/OTP-10271: erts: Update spec in preloaded to reflect sucess typing
| * erts: Update spec in preloaded to reflect sucess typingLukas Larsson2013-06-051-3/+1
| |
* | Merge branch 'pan/r16b01/system_monitor_long_schedule/OTP-11067' into maintPatrik Nyblom2013-06-051-0/+1
|\ \ | | | | | | | | | | | | | | | * pan/r16b01/system_monitor_long_schedule/OTP-11067: Minor spelling correction Add system_monitor of long_schedule
| * | Add system_monitor of long_schedulePatrik Nyblom2013-05-021-0/+1
| | |
* | | Merge branch 'rickard-sverker/carrier-migration/OTP-10279' into maintRickard Green2013-06-042-11/+26
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rickard-sverker/carrier-migration/OTP-10279: erts: Document the +M<S>acul command line argument erts: Carrier pool information in allocator information erts: Use carrier pool for migration of carriers erts: Implement test case for carrier pool erts: Implement carrier pool erts: Fix type errors in info functions erts: Use Uint64 for call counts erts: Fix failing testcase alloc_SUITE:rbtree erts: Rename allocator aoffcbf to aoffcaobf erts: Remove unnecessary flag arguments in allocators erts: Remove SBMBC allocator erts: Add test for add_mbc and remove_mbc callbacks erts: Fix deallocation in removed carrier erts: Change naive list to rb-tree of carriers in AOFF allocator erts: Prepare aoff allocator for carrier migration erts: Make carrier header sizes customizable erts: Add "bestfit within carrier" for aoff allocator (aoffcbf)
| * | | erts: Carrier pool information in allocator informationRickard Green2013-06-042-0/+5
| | | | | | | | | | | | | | | | | | | | That is, include information about carrier pool in result returned from erlang:system_info({allocator,allocator_sizes, _}).
| * | | erts: Use carrier pool for migration of carriersRickard Green2013-06-042-7/+18
| | | |
| * | | erts: Remove SBMBC allocatorSverker Eriksson2013-06-032-4/+3
| | | |
* | | | Merge branch 'nox/erl_eval-receive/OTP-11137' into maintFredrik Gustafsson2013-06-036-3/+156
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | * nox/erl_eval-receive/OTP-11137: Updated primary bootstrap for erl_eval Added preloaded prim_eval Fix receive support in erl_eval with a BEAM module
| * | | Added preloaded prim_evalFredrik Gustafsson2013-05-281-0/+0
| | | |
| * | | Fix receive support in erl_eval with a BEAM moduleAnthony Ramine2013-05-286-3/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using the low-level BEAM instructions, we can loop over each message in the process queue and removes the first message that matches, without receiving them all to later send them back to itself. The function prim_eval:'receive'/2 is equivalent to the following pseudo-code: 'receive'(F, T) -> RESET MESSAGE QUEUE POINTER, LOOP: case PEEK CURRENT MESSAGE WITH TIMEOUT T of {ok,Msg} -> case F(Msg) of nomatch -> DECREMENT TIMEOUT T, ADVANCE MESSAGE QUEUE POINTER, GOTO LOOP; Result -> RESET MESSAGE QUEUE POINTER, Result end; timeout -> RESET MESSAGE QUEUE POINTER, timeout end. To not break Dialyzer and other tools, we use a stub Erlang module which abstract code is forcefully inserted into prim_inet.erl afterwards compilation.
* | | | Merge branch 'lukas/erts/gc_stat_contention/OTP-10271' into maintLukas Larsson2013-05-312-1/+19
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| * lukas/erts/gc_stat_contention/OTP-10271: Replace gc stat lock with sched spec data
| * | Replace gc stat lock with sched spec dataLukas Larsson2013-05-311-1/+19
| | |
* | | Do not unlink before closing portRaimo Niskanen2013-05-242-9/+14
|/ /
* | Merge branch 'rickard/frmptr' into maintRickard Green2013-05-162-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | * rickard/frmptr: Add 'frmptr' emulator type Conflicts: erts/preloaded/ebin/erlang.beam
| * | Add 'frmptr' emulator typeRickard Green2013-04-212-1/+1
| | |
* | | Merge branch 'rickard/inet_opts/OTP-11075' into maintRickard Green2013-05-162-4/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rickard/inet_opts/OTP-11075: Make high_msgq_watermark and low_msgq_watermark generic inet options Conflicts: erts/preloaded/ebin/prim_inet.beam
| * | | Make high_msgq_watermark and low_msgq_watermark generic inet optionsRickard Green2013-05-062-4/+4
| | | |
* | | | Merge branch 'rickard/inet_db/OTP-11074' into maintRickard Green2013-05-164-31/+5
|\ \ \ \ | |/ / / | | | / | |_|/ |/| | | | | | | | | | | | | | * rickard/inet_db/OTP-11074: Do not treat port_set_data/port_get_data as signals Conflicts: erts/preloaded/ebin/erlang.beam erts/preloaded/ebin/erts_internal.beam
| * | Do not treat port_set_data/port_get_data as signalsRickard Green2013-04-294-31/+5
| |/
* | Update preloaded modulesFredrik Gustafsson2013-04-109-0/+0
| |
* | Fix typo in type: erlang:process_info_item()Andrew Tunnell-Jones2013-04-071-2/+2
| | | | | | | | 'message_que_len' should be 'message_queue_len'.
* | Update preloaded modulesFredrik Gustafsson2013-04-049-0/+0
| |
* | Consistent definition of priority levelsKostis Sagonas2013-04-041-15/+15
|/ | | | | | | | | | | | | | | | | | | In the specs and the documentation of the spawn_opt family of functions there is the following definition of priority levels: Level = low | normal | high However, the process_flag/1 function in that module reads: process_flag(Flag :: priority, Level) -> OldLevel Types: Level = OldLevel = priority_level() priority_level() = low | normal | high | max This is clearly inconsistent. Change specs to use the process_level() type declaration instead of re-defining it in various places.
* Update preloaded modulesBjörn-Egil Dahlberg2013-02-229-0/+0
|
* Update copyright yearsBjörn-Egil Dahlberg2013-02-221-1/+1
|
* prim_file: Fix error return from prim_file:list_dir/1Björn Gustavsson2013-02-202-2/+7
| | | | | | When the run-time system was started with +fnue, the error tuple indicating a non-translatable filename was added as a non-proper list tail inside an {ok,Files} term.
* Fix broken prim_file:list_dir_all/1Björn Gustavsson2013-02-182-2/+2
| | | | | | 6d516de001dde82c02fe050db8e3aab47914fa90 added prim_file:list_dir_all/1. Unfortunately, only the first element in the list would be handled as intended.
* Update preloaded erlang.beamLukas Larsson2013-02-141-0/+0
|
* Add float_to_binary and binary_to_floatLukas Larsson2013-02-141-4/+27
|
* Add new binary conversion bifsLukas Larsson2013-02-141-46/+58
| | | | Added: binary_to_integer/1,2, integer_to_binary/1,2
* prim_file: Add list_dir_all() and read_link_all()Björn Gustavsson2013-02-112-2/+55
|
* Teach prim_file:set_cwd() to avoid entering non-translatable directoriesBjörn Gustavsson2013-02-111-5/+18
| | | | | | | | | | | | | | | | | We have decided that we don't want to deal with the compilations of prim_file:get_cwd() returning a binary when the current directory name cannot be translated losslessly to a list (i.e. when the run-time system was started with +fnu and the current directory name contains bytes that are not part of a valid UTF-8 sequence). Therefore, if prim_file:set_cwd() is given a binary as the pathname, we will need to check the binary to make sure it can be translated to a list. We will introduce a new BIF, called prim_file:is_translatable/1, which will check both filename encoding mode, and if it is one of Unicode modes, the binary as well. We don't need to do anything special if prim_file:set_cwd() is passed a list.
* Make prim_file skip invalid filenames in unicode modePatrik Nyblom2013-02-114-4/+40
| | | | | | | | | | | | | | | The fix affects list_dir and read_link. Raw filenames are now never produced, just consumed even if +fnu or +fna is used on Linux etc. This also adds the options to get error return or error handler warning messages with +fn{u|a}{i|w|e} as an option to erl. This is still not documented and there needs to be other versions of read_dir and read_link to facilitate reading of all types of filenames and links. A check that we will not change to an invalid directory is also needed.
* prim_file: Refactor functions that return filenamesBjörn Gustavsson2013-02-111-6/+15
|
* prim_file: Refactor handling of responsesBjörn Gustavsson2013-02-111-26/+29
| | | | | | | | | | | | | Currently, the format of the return value from drv_command/3 is determined solely by the efile driver's response. In a future commit, we will need to produce different return values that also dependend on which function in prim_file that was called; thus, we will need some way to pass down some sort of state to drv_get_response/2. As a preparation for that, allow the third argument of drv_command/3 to be a fun. That also allows us to remove the convoluted special case handling of the list_dir operation.
* prim_file: Always open non-file ports in binary modeBjörn Gustavsson2013-02-112-31/+7
| | | | | | | | | | | Ports for operations that did not directly operate on a file (such as listing the files in a directory) was always opened in a binary mode, but there was still code that supported such port opened in non-binary mode. Since we are about to update the code reading directories, and we don't want to bother we supporting non-binary ports, make sure that we force the use of binary mode.
* Update preloaded modulesSiri Hansen2013-01-259-0/+0
|
* Merge branch 'siri/unicode'Siri Hansen2013-01-252-8/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * siri/unicode: [test_server] Don't escape : and @ in test log links [test_server] Don't create latin1 filenames if filename mode is utf8 [test_server] Ensure correct encoding in header for erl2html2:convert [common_test] Update common test modules to handle unicode [ts] Use unicode:characters_to_list/2 instead of binary_to_list/1 [test_server] Add tests for unicode support [test_server] Write link target with correct encoding in erl2html2 [test_server] Update test_server to handle unicode Update preloaded init.beam Make arguments given with -s option to erl aware of file name encoding OTP-10702 OTP-10783