HomeFreeBSD

MFC: Various uthread fixes:
rS163632Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

MFC: Various uthread fixes:

  • Delay setting wakeup time until after poll array has been allocated. Blocking on the malloc spinlock would cause the select timeout to be lost. (uthread_select.c 1.22)
  • Delay unblocking signal and restoring process signal mask until the thread signal mask has been updated to avoid stack overflow during signal bursts.

    Don't block signal forever if no threads can currently handle signal.

    Check for pending signal after direct invocation of signal handler. (uthread_select.c 1.47)
  • Backout unblocking of signal if no threads can currently handle it. The check for pending signal after direct invocation of signal handler is sufficient. (uthread_select.c 1.48)

Approved by: re (mux, bmah)

Details

Provenance
jhbAuthored on
Parents
rS163631: It so happens that everything that is stupid is not unconstitutional.
Branches
Unknown
Tags
Unknown

Event Timeline