<feed xmlns='http://www.w3.org/2005/Atom'>
<title>otp.git/lib/kernel, branch HansN-patch-1</title>
<subtitle>Mirror of Erlang/OTP repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/'/>
<entry>
<title>Merge pull request #1751 from fhunleth/heart-timeout</title>
<updated>2018-04-10T08:28:48+00:00</updated>
<author>
<name>Lukas Larsson</name>
<email>garazdawi@gmail.com</email>
</author>
<published>2018-04-10T08:28:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=6a38655668542cebb60d5e13078b599abb3f0ec6'/>
<id>6a38655668542cebb60d5e13078b599abb3f0ec6</id>
<content type='text'>
Remove note about heart rebooting on NTP updates</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove note about heart rebooting on NTP updates</pre>
</div>
</content>
</entry>
<entry>
<title>kernel: Update note about heart rebooting on NTP updates</title>
<updated>2018-04-10T08:25:59+00:00</updated>
<author>
<name>Frank Hunleth</name>
<email>fhunleth@troodon-software.com</email>
</author>
<published>2018-03-16T14:11:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=e5e2fd334b9fec2bedab9ee6987b96ca2aec1f87'/>
<id>e5e2fd334b9fec2bedab9ee6987b96ca2aec1f87</id>
<content type='text'>
The timestamp code in heart uses monotonic time so it is immune to NTP
changes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The timestamp code in heart uses monotonic time so it is immune to NTP
changes.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #1760 from jhogberg/john/erts/any-term-as-seq_trace-label/OTP-14899</title>
<updated>2018-03-27T04:58:10+00:00</updated>
<author>
<name>John Högberg</name>
<email>john@erlang.org</email>
</author>
<published>2018-03-27T04:58:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=e176b62e96e4452443b5be347fb7b97a561c5b3b'/>
<id>e176b62e96e4452443b5be347fb7b97a561c5b3b</id>
<content type='text'>
Lift the type restrictions on seq_trace token labels</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Lift the type restrictions on seq_trace token labels</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'raimo/type-posix-0-overhaul/ERL_550/OTP-14019'</title>
<updated>2018-03-26T08:14:38+00:00</updated>
<author>
<name>Raimo Niskanen</name>
<email>raimo@erlang.org</email>
</author>
<published>2018-03-26T08:14:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=da5915d50f8b5719e2443b5a708a757a909a52a6'/>
<id>da5915d50f8b5719e2443b5a708a757a909a52a6</id>
<content type='text'>
* raimo/type-posix-0-overhaul/ERL_550/OTP-14019:
  Update types for posix error codes
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* raimo/type-posix-0-overhaul/ERL_550/OTP-14019:
  Update types for posix error codes
</pre>
</div>
</content>
</entry>
<entry>
<title>Update types for posix error codes</title>
<updated>2018-03-26T07:42:40+00:00</updated>
<author>
<name>Raimo Niskanen</name>
<email>raimo@erlang.org</email>
</author>
<published>2018-03-23T13:43:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=e1aa6fab326bdb443f14a08727a33fa52cbb573a'/>
<id>e1aa6fab326bdb443f14a08727a33fa52cbb573a</id>
<content type='text'>
I have read the man pages for most socket and file operations
on recent Linux, FreeBSD, OpenBSD and Solaris 10 and noted
the possible error codes.

Which error codes that are possible for file operations have
been updated in file:posix/0.  Error codes for socket operations
in inet:posix/0.  The latter refers to the former so it is
a superset, assuming that e.g sendfile and AF_UNIX socket
operations could cause socket operations to return any file
error code.  That is not entirely true, but could be,
especially in the future.

Added to file:posix/0 are:
  ebadmsg edeadlk edeadlock eftype emultihop enobufs enolck enolink
  enosr enostr enosys eopnotsupp eoverflow erange etxtbsy

Added to inet:posix/0 are all but:
  exbadport exbadseq file:posix()

These are still possible according to erl_posix_str.c,
but are not in file:posix/0 nor in inet:posix/0,
and many of them are not file nor inet related, but some might be:
  e2big eadv ealign ebade ebadfd ebadr ebadrpc ebadrqc
  ebadslt ebfont echild echrng ecomm edirty
  edom edotdot eduppkg eidrm einit eisnam
  elbin el2hlt el2nsync el3hlt el3rst
  elibacc elibbad elibexec elibmax elibscn elnrng
  enavail enet enoano enocsi enodata enoexec
  enonet enosym enotempty enotnam enotuniq
  eproclim eprocunavail eprogmismatch eprogunavail
  erefused eremchg eremdev eremote eremoteio
  eremoterelease erpcmismatch erremote eshutdown
  esrmnt esuccesss etime etoomanyrefs
  euclean eunatch eusers eversion exfull
  sysnotready vernotsupported ediscon enomore
  ecancelled einvalidproctable einvalidprovider eproviderfailedinit
  syscallfailure service_not_found type_not_found e_no_more
  e_cancelled unknown
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I have read the man pages for most socket and file operations
on recent Linux, FreeBSD, OpenBSD and Solaris 10 and noted
the possible error codes.

Which error codes that are possible for file operations have
been updated in file:posix/0.  Error codes for socket operations
in inet:posix/0.  The latter refers to the former so it is
a superset, assuming that e.g sendfile and AF_UNIX socket
operations could cause socket operations to return any file
error code.  That is not entirely true, but could be,
especially in the future.

Added to file:posix/0 are:
  ebadmsg edeadlk edeadlock eftype emultihop enobufs enolck enolink
  enosr enostr enosys eopnotsupp eoverflow erange etxtbsy

Added to inet:posix/0 are all but:
  exbadport exbadseq file:posix()

These are still possible according to erl_posix_str.c,
but are not in file:posix/0 nor in inet:posix/0,
and many of them are not file nor inet related, but some might be:
  e2big eadv ealign ebade ebadfd ebadr ebadrpc ebadrqc
  ebadslt ebfont echild echrng ecomm edirty
  edom edotdot eduppkg eidrm einit eisnam
  elbin el2hlt el2nsync el3hlt el3rst
  elibacc elibbad elibexec elibmax elibscn elnrng
  enavail enet enoano enocsi enodata enoexec
  enonet enosym enotempty enotnam enotuniq
  eproclim eprocunavail eprogmismatch eprogunavail
  erefused eremchg eremdev eremote eremoteio
  eremoterelease erpcmismatch erremote eshutdown
  esrmnt esuccesss etime etoomanyrefs
  euclean eunatch eusers eversion exfull
  sysnotready vernotsupported ediscon enomore
  ecancelled einvalidproctable einvalidprovider eproviderfailedinit
  syscallfailure service_not_found type_not_found e_no_more
  e_cancelled unknown
</pre>
</div>
</content>
</entry>
<entry>
<title>Lift the type restrictions on seq_trace token labels</title>
<updated>2018-03-23T08:50:59+00:00</updated>
<author>
<name>John Högberg</name>
<email>john@erlang.org</email>
</author>
<published>2018-02-26T11:49:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=06ed628dfd013010dd6e182508c1137b9f4ba09b'/>
<id>06ed628dfd013010dd6e182508c1137b9f4ba09b</id>
<content type='text'>
OTP-14899
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
OTP-14899
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'sverker/test-chmod-restore'</title>
<updated>2018-03-22T15:13:03+00:00</updated>
<author>
<name>Sverker Eriksson</name>
<email>sverker@erlang.org</email>
</author>
<published>2018-03-22T15:13:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=7e011bfc8a26a967d9475862634b2a2c54f0e5de'/>
<id>7e011bfc8a26a967d9475862634b2a2c54f0e5de</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>kernel: Restore x-permission of test directories</title>
<updated>2018-03-21T18:45:43+00:00</updated>
<author>
<name>Sverker Eriksson</name>
<email>sverker@erlang.org</email>
</author>
<published>2018-03-21T18:45:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=cc62cd1d6840c0f4c02d70c4fba06827b8ef765b'/>
<id>cc62cd1d6840c0f4c02d70c4fba06827b8ef765b</id>
<content type='text'>
just to make it easier to do "rm -rf"
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
just to make it easier to do "rm -rf"
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #1740 from rickard-green/rickard/signals/OTP-14589</title>
<updated>2018-03-21T10:54:28+00:00</updated>
<author>
<name>Rickard Green</name>
<email>rickard@erlang.org</email>
</author>
<published>2018-03-21T10:54:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=cf3cbf0871832cb0808293842e5ae726edfc12e1'/>
<id>cf3cbf0871832cb0808293842e5ae726edfc12e1</id>
<content type='text'>
Implementation of true asynchronous signaling between processes</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implementation of true asynchronous signaling between processes</pre>
</div>
</content>
</entry>
<entry>
<title>Implementation of true asynchronous signaling between processes</title>
<updated>2018-03-21T09:27:03+00:00</updated>
<author>
<name>Rickard Green</name>
<email>rickard@erlang.org</email>
</author>
<published>2018-03-07T00:17:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=4bc282d812cc2c49aa3e2d073e96c720f16aa270'/>
<id>4bc282d812cc2c49aa3e2d073e96c720f16aa270</id>
<content type='text'>
Communication between Erlang processes has conceptually always been
performed through asynchronous signaling. The runtime system
implementation has however previously preformed most operation
synchronously. In a system with only one true thread of execution, this
is not problematic (often the opposite). In a system with multiple threads
of execution (as current runtime system implementation with SMP support)
it becomes problematic. This since it often involves locking of structures
when updating them which in turn cause resource contention. Utilizing
true asynchronous communication often avoids these resource contention
issues.

The case that triggered this change was contention on the link lock due
to frequent updates of the monitor trees during communication with a
frequently used server. The signal order delivery guarantees of the
language makes it hard to change the implementation of only some signals
to use true asynchronous signaling. Therefore the implementations
of (almost) all signals have been changed.

Currently the following signals have been implemented as true
asynchronous signals:
- Message signals
- Exit signals
- Monitor signals
- Demonitor signals
- Monitor triggered signals (DOWN, CHANGE, etc)
- Link signals
- Unlink signals
- Group leader signals

All of the above already defined as asynchronous signals in the
language. The implementation of messages signals was quite
asynchronous to begin with, but had quite strict delivery constraints
due to the ordering guarantees of signals between a pair of processes.

The previously used message queue partitioned into two halves has been
replaced by a more general signal queue partitioned into three parts
that service all kinds of signals. More details regarding the signal
queue can be found in comments in the erl_proc_sig_queue.h file.

The monitor and link implementations have also been completely replaced
in order to fit the new asynchronous signaling implementation as good
as possible. More details regarding the new monitor and link
implementations can be found in the erl_monitor_link.h file.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Communication between Erlang processes has conceptually always been
performed through asynchronous signaling. The runtime system
implementation has however previously preformed most operation
synchronously. In a system with only one true thread of execution, this
is not problematic (often the opposite). In a system with multiple threads
of execution (as current runtime system implementation with SMP support)
it becomes problematic. This since it often involves locking of structures
when updating them which in turn cause resource contention. Utilizing
true asynchronous communication often avoids these resource contention
issues.

The case that triggered this change was contention on the link lock due
to frequent updates of the monitor trees during communication with a
frequently used server. The signal order delivery guarantees of the
language makes it hard to change the implementation of only some signals
to use true asynchronous signaling. Therefore the implementations
of (almost) all signals have been changed.

Currently the following signals have been implemented as true
asynchronous signals:
- Message signals
- Exit signals
- Monitor signals
- Demonitor signals
- Monitor triggered signals (DOWN, CHANGE, etc)
- Link signals
- Unlink signals
- Group leader signals

All of the above already defined as asynchronous signals in the
language. The implementation of messages signals was quite
asynchronous to begin with, but had quite strict delivery constraints
due to the ordering guarantees of signals between a pair of processes.

The previously used message queue partitioned into two halves has been
replaced by a more general signal queue partitioned into three parts
that service all kinds of signals. More details regarding the signal
queue can be found in comments in the erl_proc_sig_queue.h file.

The monitor and link implementations have also been completely replaced
in order to fit the new asynchronous signaling implementation as good
as possible. More details regarding the new monitor and link
implementations can be found in the erl_monitor_link.h file.
</pre>
</div>
</content>
</entry>
</feed>
