aboutsummaryrefslogtreecommitdiffstats
path: root/lib/jinterface
diff options
context:
space:
mode:
authorMaxim Fedorov <[email protected]>2018-08-28 16:11:09 -0700
committerMaxim Fedorov <[email protected]>2018-09-04 14:44:54 -0700
commitd4057c1c1ea711aaa8a39591bf38920f93530f5c (patch)
tree3675fdf93a9359e606e32b69a4013e53e968ab13 /lib/jinterface
parente3e013e4d8287c6dc8ca3992bd4559744e75f8d2 (diff)
downloadotp-d4057c1c1ea711aaa8a39591bf38920f93530f5c.tar.gz
otp-d4057c1c1ea711aaa8a39591bf38920f93530f5c.tar.bz2
otp-d4057c1c1ea711aaa8a39591bf38920f93530f5c.zip
Fix an endless rescheduling loop when a process is executing process_info(self(), ...)
It is possible that a process has to yield before completing process_info BIF when it runs out of reductions. If this BIF is called by the process itself, it does not send a signal but executes in the context of a process. If it has to yield, it turns F_LOCAL_SIGS_ONLY flag on, which means new signals won't be fetched from the outer message queue. When the same process needs to execute dirty system code (e.g. dirty GC) it has to be run on a dirty scheduler. However signals enqueued into outer queue cause it to be rescheduled on a normal scheduler. F_LOCAL_SIGS_ONLY prevent outer queue signals delivery, creating an endless rescheduling loop. This commit disengages F_LOCAL_SIG_ONLY if process needs to execute dirty code in order to complete signal delivery and allow process to be moved to dirty run queue.
Diffstat (limited to 'lib/jinterface')
0 files changed, 0 insertions, 0 deletions