From: Florian Weimer <fweimer@redhat.com>
To: Carlos O'Donell <carlos@redhat.com>,
GNU C Library <libc-alpha@sourceware.org>,
DJ Delorie <dj@redhat.com>
Subject: Re: [PATCH v3] libc: Extend __libc_freeres framework (Bug 23329).
Date: Thu, 28 Jun 2018 13:22:00 -0000 [thread overview]
Message-ID: <2389af1a-a479-0a20-8cb4-034fe0767e5c@redhat.com> (raw)
In-Reply-To: <9666df73-e500-2b2e-e202-a71087bdab91@redhat.com>
> + [BZ #23329]
> + * include/libc-symbols.h: Comment the freeres framework.
> + * include/set-hooks.h: Include libc-symbols.h. Fix comment.
> + * dlfcn/Makefile (libdl-routines): Add dlfreeres.
> + * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
> + * dlfcn/dlerror.c: Include libc-symbols.h
> + (__dlerror_main_freeres): New function.
> + * dlfcn/dlfreeres.c: New file.
> + * dlfcn/sdlfreeres.c: New file.
> + * include/dlfcn.h: Declare __dlerror_main_freeres.
> + * malloc/set-freeres.c: Declare __libdl_freeres, and
> + __libpthread_freeres.
> + (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
> + the releavant libraries are loaded.
> + * malloc/thread-freeres.c: Add comments.
> + * nptl/Makefile (libpthread-routines): Add nptlfreeres.
> + * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
> + * nptl/allocatestack.c (__nptl_free_stacks): New function.
> + (__free_stacks): Rename to...
> + (free_stacks): ...this. Mark static.
> + (queue_stack): Call free_stacks.
> + * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
> + * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
> + * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
> + ptr_freeres element from struct.
> + (pthread_functions): Remove .ptr_freeres from struct initializer.
> + [SHARED] (nptl_freeres): Remove.
> + * nptl/nptlfreeres.c: New file.
> + * nptl/pthreadP.h
> + [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
> + [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
> + attribute_hidden.
> + (__free_stacks): Rename to...
> + (__nptl_stacks_freeres): ...this.
> + (__shm_directory_freeres): Declare.
> + * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
> + (__nptl_unwind_freeres): ...this.
> + * resolv/res-close.c: Add comment.
> + * resolv/resolv_conf.c: Include libc-symbols.h.
> + * string/strerror_l.c: Include libc-symbols.h.
> + * sunrpc/rpc_thread.c: Include libc-symbols.h.
> + * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
> + * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
> + [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
ChangeLog looks okay now (but it still does not apply with git am -3
--reject).
> diff --git a/dlfcn/dlfreeres.c b/dlfcn/dlfreeres.c
> new file mode 100644
> index 0000000000..8c18731b5c
â¦
> +void
> +__libdl_freeres (void)
> +{
> + call_function_static_weak (__dlerror_main_freeres);
> +}
> +libc_hidden_def (__libdl_freeres)
Please remove the last line of the file before committing. It is a
no-op (otherwise it wouldn't compile due to the missing libc_hidden_proto).
Thanks,
Florian
next prev parent reply other threads:[~2018-06-28 13:22 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-27 3:06 [PATCH] " Carlos O'Donell
2018-06-27 9:46 ` Florian Weimer
2018-06-28 4:15 ` [PATCH v2] " Carlos O'Donell
2018-06-28 12:13 ` Florian Weimer
2018-06-28 13:07 ` [PATCH v3] " Carlos O'Donell
2018-06-28 13:22 ` Florian Weimer [this message]
2018-06-28 13:36 ` [PATCH v4] " Carlos O'Donell
2018-06-28 13:44 ` Florian Weimer
2018-06-28 14:13 ` Carlos O'Donell
2018-06-28 14:15 ` Florian Weimer
2018-06-28 14:26 ` Carlos O'Donell
2018-06-28 14:50 ` Florian Weimer
2018-06-28 19:03 ` Andreas Schwab
2018-06-28 19:10 ` Florian Weimer
2018-07-02 8:56 ` Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2389af1a-a479-0a20-8cb4-034fe0767e5c@redhat.com \
--to=fweimer@redhat.com \
--cc=carlos@redhat.com \
--cc=dj@redhat.com \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).