summaryrefslogtreecommitdiff
path: root/erts/emulator/sys/common
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright yearErlang/OTP2023-02-142-2/+2
|
* Merge branch 'maint'Sverker Eriksson2023-01-231-6/+10
|\
| * Merge branch 'sverker/erts/fix-notify_port_task_executed/OTP-18391' into maintSverker Eriksson2023-01-232-9/+15
| |\
| | * erts: Fix bug in erts_io_notify_port_task_executedSverker Eriksson2023-01-121-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Seen symptom: Failed assert DEBUG_PRINT_FD("executed ready_input", state); ASSERT(!(state->active_events & ERTS_POLL_EV_IN)); with state->type == ERTS_EV_TYPE_NIF that is, the fd already closed and then reused by a NIF.
| | * erts: Fix erts_poll_get_selected_events on some platformsJohn Högberg2023-01-121-3/+5
| | | | | | | | | | | | | | | | | | | | | Linux 5.15.0 has an extra line with `ino` before `tfd`, which needs to be skipped before parsing the latter. Cherry picked fc3295b1ebeed1235d12983184ba806f2ce2f525
* | | erts: Fix erts_poll_get_selected_events on some platformsJohn Högberg2022-12-081-3/+5
| | | | | | | | | | | | | | | Linux 5.15.0 has an extra line with `ino` before `tfd`, which needs to be skipped before parsing the latter.
* | | Merge branch 'maint' into masterLukas Larsson2022-10-241-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | * maint: Updated OTP version Prepare release Update copyright year
| * | Update copyright yearErlang/OTP2022-10-241-1/+1
| | |
* | | Merge branch 'maint'Lukas Larsson2022-10-212-0/+83
|\ \ \ | |/ /
| * | Revert "erts: Stop marking memory regions as discardable (`madvise(2)`)"Lukas Larsson2022-10-122-0/+83
| | | | | | | | | | | | This reverts commit df450823fcdb1657743c94023318abe3731366bb.
* | | erts: Clear fallback flag when stopping selectLukas Larsson2022-08-311-0/+1
|/ / | | | | | | | | Not clearing it triggered the assert below when stdin was deselected.
* | Update copyright yearErlang/OTP2022-04-111-1/+1
| |
* | erts: Add option +IOs to disable scheduler pollingSverker Eriksson2022-04-072-40/+77
| | | | | | | | Enabled (true) by default.
* | Filter out diff from cleared oneshot eventsSverker Eriksson2022-04-071-3/+11
| |
* | erts: Fix EventStateFlag printing ERTS_EV_FLAG_WANT_ERRORSverker Eriksson2022-04-071-12/+25
| |
* | Update copyright yearErlang/OTP2022-02-153-3/+3
| |
* | Merge branch 'maint'Sverker Eriksson2022-01-311-1/+1
|\ \
| * | erts: Fix bug in erts_mremap in (probably) dead codeSverker Eriksson2022-01-251-1/+1
| | | | | | | | | | | | new_ptr is NULL and would crash memcpy().
* | | Merge branch 'max-au/remove-emem'Rickard Green2022-01-252-264/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OTP-17892 * max-au/remove-emem: Update configure scripts [beam] remove allocator wrappers [erts, tools] remove "emem" completely
| * | | [erts, tools] remove "emem" completelyMaxim Fedorov2022-01-192-264/+0
| | | | | | | | | | | | | | | | | | | | | | | | Test suites for the tool were lost long ago. Removing "liberts.a" library as well, for it is now empty and AR on MacOS/Windows does not like empty libraries.
* | | | Merge branch 'max-au/cleanup-ct-logs'Lukas Larsson2022-01-201-0/+1
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | * max-au/cleanup-ct-logs: erts: Do not print verbose error log messages in test [erts] reduce console output for Common Test
| * | | erts: Do not print verbose error log messages in testLukas Larsson2022-01-101-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | We add a logger filter that removes the verbose error log messages from the driver_SUITE. The log messages will still be in the html logs, they just wont be printed to stdout.
| * | | [erts] reduce console output for Common TestMaxim Fedorov2022-01-081-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | Some test cases produce 20+ Mb of debug output which does not help to figure out a problem. This change suppresses logs, leaving a chance to remove suppression for local runs.
* | | | erts: Stop marking memory regions as discardable (`madvise(2)`)John Högberg2021-12-312-83/+0
|/ / / | | | | | | | | | | | | | | | | | | | | | This has caused a lot of annoying trouble over the years, and the benefits never materialized: none of the supported OS's would not reclaim any pages until they out of physical memory, and most users already had some kind of overload protection that prevented that from happening in the first place.
* | | Merge branch 'maint'Rickard Green2021-12-137-7/+7
|\ \ \ | |/ / | | | | | | | | | * maint: Update copyright year
| * | Update copyright yearRickard Green2021-12-137-7/+7
| | |
* | | Fix typos in erts/emulator/sysKian-Meng, Ang2021-11-302-4/+4
|/ /
* | Merge branch 'rickard/dirty-alloc-instances/OTP-17363' into maintRickard Green2021-11-162-5/+9
|\ \ | | | | | | | | | | | | * rickard/dirty-alloc-instances/OTP-17363: Allocator instances for dirty schedulers
| * | Allocator instances for dirty schedulersRickard Green2021-11-162-5/+9
| | |
* | | Merge branch 'rickard/select-timeout-fix/GH-5339/OTP-17735' into maintRickard Green2021-11-111-0/+17
|\ \ \ | |/ / |/| | | | | | | | * rickard/select-timeout-fix/GH-5339/OTP-17735: Limit timeout value in calls to select()
| * | Limit timeout value in calls to select()Rickard Green2021-11-031-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We previously did not limit the timeout value when calling select() which could cause select() to fail when passed a huge timeout value causing a runtime system crash. We currently only use select() on Darwin which accepts a timeout value of up to 100 million seconds. However, according to posix, select() implementations are only required to provide 31 days as max timeout value. We therefore limit the timeout value to 31 days.
* | | erts: Decrease super alignment on 64-bitSverker Eriksson2021-04-281-1/+5
| | | | | | | | | | | | From 256kb to 16kb.
* | | erts: Silence CodeChecker on empty loopsSverker Eriksson2021-02-231-1/+2
| | |
* | | Merge branch 'sverker/erts/enif_select_error'Sverker Eriksson2021-02-193-22/+70
|\ \ \
| * | | erts: Add new enif_select_errorSverker Eriksson2021-02-192-14/+60
| | | | | | | | | | | | | | | | | | | | Return ERL_NIF_SELECT_NOTSUP if the underlying poll implementation does not support error events (not Linux).
| * | | erts: Change poll_control failed return to only ERTS_POLL_EV_NVALSverker Eriksson2021-02-192-5/+5
| | | |
| * | | erts: Rename update_pollset as concurrent_update_pollsetSverker Eriksson2021-02-191-3/+5
| | | | | | | | | | | | | | | | | | | | to avoid confusion with the non concurrent update_pollset() which different arguments and return value.
* | | | Merge branch 'lukas/erts/clang-sanatizer'Sverker Eriksson2021-02-183-8/+12
|\ \ \ \
| * | | | erts: Add asserts to suppress false positives found by clang saLukas Larsson2021-02-183-8/+12
| |/ / /
* | | | Merge branch 'maint'John Högberg2021-01-281-9/+5
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| * maint: erts: Stop using MADV_DONTNEED when MADV_FREE is unavailable
| * | erts: Stop using MADV_DONTNEED when MADV_FREE is unavailableJohn Högberg2021-01-251-9/+5
| | |
* | | Merge branch 'maint'Sverker Eriksson2021-01-112-5/+11
|\ \ \ | |/ /
| * | Merge 'sverker/address-sanitizer' into maint OTP-16959Sverker Eriksson2021-01-112-5/+11
| |\ \
| | * | erts: Disable literal mmapper for asanSverker Eriksson2020-12-181-1/+2
| | | |
| | * | erts: Suppress compiler warningSverker Eriksson2020-12-181-4/+9
| | | | | | | | | | | | | | | | about unused variable
* | | | Merge branch 'maint'Rickard Green2020-12-231-1/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | * maint: Fix table sizing in erts_poll
| * | | Merge branch 'rickard/poll-tab-len/ERIERL-580/OTP-17088' into maintRickard Green2020-12-231-1/+2
| |\ \ \ | | |/ / | |/| | | | | | | | | | * rickard/poll-tab-len/ERIERL-580/OTP-17088: Fix table sizing in erts_poll
| | * | Fix table sizing in erts_pollRickard Green2020-12-231-1/+2
| | | |
* | | | Merge pull request #2903 from josevalim/jv-fix-negative-zero-to-stringBjörn Gustavsson2020-12-111-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Fix negative zero to string OTP-17077
| * | | | Fix negative zero to stringJosé Valim2020-12-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both float_to_binary and float_to_list will correctly print negative zeros when using the scientific mode but not when using the decimal representation. This patch makes it consistent to always show negative floats. io:format/2 has also been fixed to consider negative zeros. This is important because some operations, such as math:atan2, will return drastically different results if negative zeros are given compared to positive zeros. Negative zeros also are encoded differently in bitstrings.