public inbox for src-cvs@sourceware.org
help / color / mirror / Atom feed
* src/rda/unix ChangeLog lwp-pool.c lwp-pool.h t ...
@ 2004-12-03 21:36 jimb
  0 siblings, 0 replies; 3+ messages in thread
From: jimb @ 2004-12-03 21:36 UTC (permalink / raw)
  To: src-cvs

CVSROOT:	/cvs/src
Module name:	src
Branch: 	jimb-rda-nptl-branch
Changes by:	jimb@sourceware.org	2004-12-03 21:36:40

Modified files:
	rda/unix       : ChangeLog lwp-pool.c lwp-pool.h thread-db.c 

Log message:
	Remove code to handle threads exiting without generating a wait
	status; that was a kernel bug, not an intended feature, and
	there's no easy way to support both.
	* lwp-pool.c (lwp_pool_continue_and_drop): Delete function.
	* lwp-pool.h (lwp_pool_continue_and_drop): Delete declaration.
	* thread-db.c (enum death_state): Delete type.
	(struct gdbserv_thread): Remove 'death_state' member.
	(add_thread_to_list): Don't initialize it.
	(death_state_str, debug_report_death_state_change,
	death_state_got_event, death_state_notified): Delete functions.
	(handle_thread_db_event): Don't handle death events specially, and
	don't handle the notifying thread specially.
	(continue_thread): Don't treat threads whose death has been
	foretold and who have completed their notification specially.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rda/unix/ChangeLog.diff?cvsroot=src&only_with_tag=jimb-rda-nptl-branch&r1=1.36.2.28&r2=1.36.2.29
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rda/unix/lwp-pool.c.diff?cvsroot=src&only_with_tag=jimb-rda-nptl-branch&r1=1.1.2.6&r2=1.1.2.7
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rda/unix/lwp-pool.h.diff?cvsroot=src&only_with_tag=jimb-rda-nptl-branch&r1=1.1.2.3&r2=1.1.2.4
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rda/unix/thread-db.c.diff?cvsroot=src&only_with_tag=jimb-rda-nptl-branch&r1=1.9.2.13&r2=1.9.2.14


^ permalink raw reply	[flat|nested] 3+ messages in thread

* src/rda/unix ChangeLog lwp-pool.c lwp-pool.h t ...
@ 2012-06-14 20:21 kevinb
  0 siblings, 0 replies; 3+ messages in thread
From: kevinb @ 2012-06-14 20:21 UTC (permalink / raw)
  To: src-cvs

CVSROOT:	/cvs/src
Module name:	src
Changes by:	kevinb@sourceware.org	2012-06-14 20:21:58

Modified files:
	rda/unix       : ChangeLog lwp-pool.c lwp-pool.h thread-db.c 

Log message:
	* lwp-pool.c (struct lwp): Add new field `disabled'.
	(empty_lwp_slot): New static global.
	(hash_empty_slot, resize_hash, lwp_pool_stop_all)
	(lwp_pool_continue_all, clear_all_do_step_flags)
	(hash_find): Rename to hash_find_1.  Add parameter `create_p'.
	Initialize `disabled' field.
	(hash_find, hash_find_no_create, lwp_pool_disable_lwp)
	(lwp_pool_enable_lwp): New functions.
	(hash_delete): Revise method used for deleting a slot from
	the hash table.
	(lwp_pool_continue_all): Don't continue disabled LWPs.
	(lwp_pool_continue_lwp): Print a warning instead of an error, and
	then only when LWP Pool diagnostics are enabled when attempting
	to continue a LWP with the state of
	lwp_state_stopped_stop_pending_interesting.
	* lwp-pool.h (lwp_pool_disable_lwp, lwp_pool_enable_lwp): Declare.
	* thread-db.c (find_new_threads_callback): Adjust thread
	deletion / reuse message.
	(update_thread_list): Disable continuation of zombie threads.
	(thread_db_break_program): Enable diagnostic message for "monitor
	thread-db-noisy".  Use kill_lwp() instead of kill().
	(thread_db_check_child_state): Don't stop on signals from zombie
	threads.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/rda/unix/ChangeLog.diff?cvsroot=src&r1=1.67&r2=1.68
http://sourceware.org/cgi-bin/cvsweb.cgi/src/rda/unix/lwp-pool.c.diff?cvsroot=src&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/src/rda/unix/lwp-pool.h.diff?cvsroot=src&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/src/rda/unix/thread-db.c.diff?cvsroot=src&r1=1.21&r2=1.22


^ permalink raw reply	[flat|nested] 3+ messages in thread

* src/rda/unix ChangeLog lwp-pool.c lwp-pool.h t ...
@ 2004-11-29 19:36 jimb
  0 siblings, 0 replies; 3+ messages in thread
From: jimb @ 2004-11-29 19:36 UTC (permalink / raw)
  To: src-cvs

CVSROOT:	/cvs/src
Module name:	src
Branch: 	jimb-rda-nptl-branch
Changes by:	jimb@sourceware.org	2004-11-29 19:36:23

Modified files:
	rda/unix       : ChangeLog lwp-pool.c lwp-pool.h thread-db.c 

Log message:
	Move libthread_db event-based thread death logic from lwp-pool.c
	to thread-db.c, so the former can stay innocent of libthread_db's
	details, and limit itself to kernel behavior.
	* lwp-pool.h (lwp_pool_continue_and_drop): New declaration.
	(lwp_pool_thread_db_death_event,
	lwp_pool_thread_db_death_notified): Declarations deleted.
	* lwp-pool.c (enum death_state): Move to thread-db.c.
	(struct lwp): Delete 'death_state' member.
	(hash_find): Don't initialize it.
	(interesting_queue): Don't provide an initializer for it.
	(check_stop_pending): Don't abort if wait_and_handle didn't put
	the thread in a stopped state; that could be caused by kernel
	behavior (say, threads exiting silently), not necessarily a logic
	flaw in lwp-pool.c.
	(death_state_str, debug_report_death_state_change): Move to
	thread-db.c.
	(lwp_pool_thread_db_death_event,
	lwp_pool_thread_db_death_notified): Move to thread-db.c, and
	rename (see below).
	(check_for_exiting_nptl_lwp): Delete.
	(lwp_pool_continue_all, lwp_pool_continue_lwp): Don't call
	check_for_exiting_nptl_lwp.
	(lwp_pool_continue_and_drop_lwp): New function.
	* thread-db.c (enum death_state): Moved here from lwp-pool.c.
	(struct gdbserv_thread): New member death_state.
	(add_thread_to_list): Initialize it.
	(death_state_str, debug_report_death_state_change): Moved here
	from lwp-pool.c.
	(death_state_got_event, death_state_notified): Renamed from
	lwp_pool_thread_db_death_event and lwp_pool_thread_db_death_notified,
	and changed to update the death state of a 'struct gdbserv_thread'
	instead of a 'struct lwp'.
	(handle_thread_db_event): Call death_state_got_event instead of
	lwp_pool_thread_db_death_event, and death_state_notified instead
	of lwp_pool_thread_db_death_notified.
	(continue_thread): If the thread's death state indicates that it's
	going to disappear without further ado when continued, continue it
	with lwp_pool_continue_and_drop_lwp, not lwp_pool_continue_lwp.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rda/unix/ChangeLog.diff?cvsroot=src&only_with_tag=jimb-rda-nptl-branch&r1=1.36.2.17&r2=1.36.2.18
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rda/unix/lwp-pool.c.diff?cvsroot=src&only_with_tag=jimb-rda-nptl-branch&r1=1.1.2.2&r2=1.1.2.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rda/unix/lwp-pool.h.diff?cvsroot=src&only_with_tag=jimb-rda-nptl-branch&r1=1.1.2.2&r2=1.1.2.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rda/unix/thread-db.c.diff?cvsroot=src&only_with_tag=jimb-rda-nptl-branch&r1=1.9.2.7&r2=1.9.2.8


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-14 20:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-03 21:36 src/rda/unix ChangeLog lwp-pool.c lwp-pool.h t jimb
  -- strict thread matches above, loose matches on Subject: below --
2012-06-14 20:21 kevinb
2004-11-29 19:36 jimb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).