Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 May 2016 10:20:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-threads@FreeBSD.org
Subject:   [Bug 209233] [patch] pthread_suspend_all_np races with check_suspend
Message-ID:  <bug-209233-16-l8WfAeGXWV@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-209233-16@https.bugs.freebsd.org/bugzilla/>
References:  <bug-209233-16@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209233

--- Comment #10 from commit-hook@freebsd.org ---
A commit references this bug:

Author: kib
Date: Thu May  5 10:20:23 UTC 2016
New revision: 299114
URL: https://svnweb.freebsd.org/changeset/base/299114

Log:
  Do not leak THR_FLAGS_SUSPENDED from the previous suspend/resume
  cycle.  The flag currently is cleared by the resumed thread.  If next
  suspend request comes before the thread was able to clean the flag, in
  which case suspender skip the thread.

  Instead, clear the THR_FLAGS_SUSPEND flag in resume_common(), we do
  not care how much code was executed in the resumed thread when the
  pthread_resume_*np(s) functions returned.

  PR:   209233
  Reported by:  Lawrence Esswood <le277@cam.ac.uk>
  MFC after:    1 week

Changes:
  head/lib/libthr/thread/thr_resume_np.c
  head/lib/libthr/thread/thr_sig.c

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-209233-16-l8WfAeGXWV>