This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
src/winsup/cygwin ChangeLog Makefile.in cyghea ...
- From: cgf at cygwin dot com
- To: cygwin-cvs at cygwin dot com
- Date: 11 Jan 2004 18:13:52 -0000
- Subject: src/winsup/cygwin ChangeLog Makefile.in cyghea ...
CVSROOT: /cvs/src
Module name: src
Branch: cgf-deleteme
Changes by: cgf@sourceware.org 2004-01-11 18:13:52
Modified files:
winsup/cygwin : ChangeLog Makefile.in cygheap.cc cygheap.h
cygthread.cc cygthread.h cygtls.cc cygtls.h
dcrt0.cc debug.cc dlfcn.cc dll_init.cc
dtable.cc dtable.h exceptions.cc external.cc
fork.cc heap.cc init.cc malloc_wrapper.cc
sigproc.cc sync.cc sync.h syscalls.cc thread.cc
thread.h tlsoffsets.h winsup.h
Log message:
* Makefile.in: Add still more -fomit-frame-pointer functions.
* dtable.h (dtable::lock): New function.
(dtable::unlock): New function.
(dtable::init_lock): New function.
* cygheap.h (HEAP_TLS): Declare new enum value.
(init_cygheap::threadlist): Declare new array.
(init_cygheap::sthreads): Declare new variable.
(cygheap_fdmanip::~cygheap_fdmanip): Use new dtable lock/unlock functions.
(cygheap_fdnew::cygheap_fdnew): Ditto.
(cygheap_fdget::cygheap_fdget): Ditto.
* dtable.cc (dtable_init): Initialize fdtab critical section.
(dtable::fixup_after_fork): Ditto.
(dtable::fixup_after_exec): Ditto.
(dtable::dup2): Use lock/unlock calls to protect access to fdtab.
(dtable::find_fifo): Ditto.
(dtable::fixup_before_fork): Ditto.
(dtable::fixup_before_exec): Ditto.
(dtable::set_file_pointers_for_exec): Ditto.
(dtable::vfork_child_dup): Ditto.
(dtable::vfork_parent_restore): Ditto.
* syscalls.cc (close_all_files): Ditto.
* sync.h (muto::acquired): Declare new function.
(new_muto1): Declare new macro used to specify name of muto storage.
* sync.cc (muto::acquired): Define new function.
* cygthread.cc (cygthread::stub): Remove signal chain removal call since it is
handled during initialization now.
* cygthread.cc (cygthread::simplestub): Remove signal chain removal call since
it is handled during initialization now.
* cygtls.cc (sentry): New class used for locking. Use throughout.
(_threadinfo::reset_exception): Don't pop stack.
(_threadinfo::find_tls): Move from exceptions.cc.
(_threadinfo::init_thread): Initialize array of threads rather than linked
list. Take second argument indicating thread function for this thread.
(_threadinfo::remove): Search thread array rather than linked list. Use sentry
to lock. Only unlock if we got the lock.
(_threadinfo::find_tls): Ditto for first two.
(handle_threadlist_exception): Handle exceptions when manipulating the thread
list in case of premature thread termination.
(_threadinfo::init_threadlist_exceptions): Ditto.
* cygtls.h (TLS_STACK_SIZE): Decrease size.
(_threadinfo::padding): Add element to avoid overwriting lower part of stack.
(_threadinfo::remove): Add a "wait" argument to control how long we wait for a
lock before removing.
* exceptions.cc (init_exception_handler): Make global. Take argument to
control exception handler being set.
(ctrl_c_handler): Wait forever when removing self from signal chain.
(_threadinfo::find_tls): Move to cygtls.cc.
(sig_handle): Reorganize detection for thread-specific signals.
* heap.cc (heap_init): Rework slightly. Make fatal error more verbose. Remove
malloc initialization since it can't happen during dll attach.
* init.cc (search_for): Move address to search for on stack here.
(threadfunc_ix): Ditto for stack offset. Make shared so that stack walk
potentially only has to be done once when cygwin processes are running.
(threadfunc_fe): Use standard tls to store thread function (may change back
later).
(calibration_thread): New function. Potentially called to find threadfunc_ix.
(munge_threadfunc): Search for "search_for" value on stack. Output warning
when thread func not found on stack. Use standard tls to store thread
function.
(prime_threads): New function. Called to prime thread front end.
(dll_entry): Call dll_crt0_0 here when DLL_PROCESS_ATTACH. Call prime_threads
here. Try to remove thread from signal list here.
* sigproc.cc (wait_sig): Initialize threadlist exception stuff here.
* thread.cc (pthread::exit): Pass argument to signal list remove function.
* thread.h: Remove obsolete *ResourceLock defines.
* tlsoffsets.h: Regenerate.
* winsup.h (spf): Define temporary debug macro to be deleted later.
* dcrt0.cc (dll_crt0_0): New function, called during DLL initialization.
Mainly consists of code pulled from dll_crt0_1.
(dll_crt0_1): See above.
(_dll_crt0): Wait for initial calibration thread to complete, if appropriate.
Move some stuff to dll_crt0_0.
(initialize_main_tls): Accommodate argument change to
_thread_info::init_thread.
* fork.cc (fork_child): Ditto.
(sync_with_child): Fix debug message.
* external.cc (cygwin_internal): Remove special considerations for
uninitialized dll since initialization happens during dll attach now.
* dlfcn.cc (dlopen): Remove obsolete *ResourceLock calls.
(dlclose): Ditto.
* cygheap.h (init_cygheap::close_ctty): Declare new function.
* cygheap.cc (init_cygheap::close_ctty): Define new function.
* syscalls.cc (close_all_files): Use close_ctty.
(setsid): Ditto.
* cygthread.cc (cygthread::stub): Remove exception initialization.
* cygthread.cc (cygthread::stub): Remove exception initialization.
(cygthread::simplestub): Ditto.
* thread.cc (pthread::thread_init_wrapper): Ditto.
* cygtls.cc (_last_thread): Make static.
(_threadinfo::call2): Initialize exception handler here.
(_threadinfo::find_tls): Move here.
* exceptions.cc (_threadinfo::find_tls): Move.
* dcrt0.cc (__api_fatal): Add prefix info to message here rather than including
it in every call to function.
* winsup.h (api_fatal): Accommodate above change.
* debug.cc (add_handle): Don't do anything if cygheap not around.
(mark_closed): Ditto.
* dll_init.cc (dll_list::detach): Fix debug output.
* fork.cc (sync_with_child): Ditto.
(vfork): Improve debug output.
* heap.cc (heap_init): Ditto.
* exceptions.cc (try_to_debug): Clarify message when debugger attaches.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.2260&r2=1.2260.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/Makefile.in.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.150&r2=1.150.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygheap.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.90&r2=1.90.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygheap.h.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.74&r2=1.74.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygthread.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.40&r2=1.40.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygthread.h.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.16&r2=1.16.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygtls.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.1&r2=1.1.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygtls.h.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.9&r2=1.9.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dcrt0.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.202&r2=1.202.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/debug.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.44&r2=1.44.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dlfcn.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.21&r2=1.21.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dll_init.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.39&r2=1.39.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dtable.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.131&r2=1.131.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dtable.h.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.25&r2=1.25.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/exceptions.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.192&r2=1.192.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/external.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.62&r2=1.62.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fork.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.122&r2=1.122.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/heap.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.38&r2=1.38.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/init.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.26&r2=1.26.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/malloc_wrapper.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.26&r2=1.26.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/sigproc.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.174&r2=1.174.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/sync.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.23&r2=1.23.8.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/sync.h.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.22&r2=1.22.8.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/syscalls.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.313&r2=1.313.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/thread.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.156&r2=1.156.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/thread.h.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.84&r2=1.84.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/tlsoffsets.h.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.3&r2=1.3.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/winsup.h.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.131&r2=1.131.2.1