This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: External thread suspension (again)


Keith Seitz wrote:
Hans Boehm wrote:

Some comments/questions:

1) I don't see where the SUSPENDED flag gets set in response to
GC_suspend_thread.  It gets set in GC_suspend_self(), but I don't
think you get there unless it has already been set?

That gets set in GC_suspend_self. When GC_stop_world is called, GC_suspend_all will not signal the externally suspended thread (because GC_start_blocking will set thread_blocked).

This works in the GC_suspend_self() case, but how does GC_start_blocking get called in the GC_suspend_thread() case? Doesn't GC_suspend_thread() need to set SUSPENDED before it sends the suspend signal?


Bryce


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]