From: Torvald Riegel <triegel@redhat.com>
To: Richard Henderson <rth@redhat.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>, Jason Merrill <jason@redhat.com>
Subject: Re: [PATCH] libitm: Support sized delete.
Date: Tue, 03 Nov 2015 10:46:00 -0000 [thread overview]
Message-ID: <1446547601.7192.44.camel@localhost.localdomain> (raw)
In-Reply-To: <5633A6B9.5060704@redhat.com>
On Fri, 2015-10-30 at 10:19 -0700, Richard Henderson wrote:
> > #define _ZnwX S(_Znw,MANGLE_SIZE_T)
> > #define _ZnaX S(_Zna,MANGLE_SIZE_T)
> > +#define _ZdlPvX S(_ZdlPv,MANGLE_SIZE_T)
> > #define _ZnwXRKSt9nothrow_t S(S(_Znw,MANGLE_SIZE_T),RKSt9nothrow_t)
> > #define _ZnaXRKSt9nothrow_t S(S(_Zna,MANGLE_SIZE_T),RKSt9nothrow_t)
> > +#define _ZdlPvXRKSt9nothrow_t S(S(_ZdlPv,MANGLE_SIZE_T),RKSt9nothrow_t)
These are symbols that are provided by libstdc++ if it is available
(otherwise, we use dummy implementations, see the other parts of the
patch)...
> > #define _ZGTtnwX S(_ZGTtnw,MANGLE_SIZE_T)
> > #define _ZGTtnaX S(_ZGTtna,MANGLE_SIZE_T)
> > +#define _ZGTtdlPvX S(_ZGTtdlPv,MANGLE_SIZE_T)
> > #define _ZGTtnwXRKSt9nothrow_t S(S(_ZGTtnw,MANGLE_SIZE_T),RKSt9nothrow_t)
> > #define _ZGTtnaXRKSt9nothrow_t S(S(_ZGTtna,MANGLE_SIZE_T),RKSt9nothrow_t)
> > +#define _ZGTtdlPvXRKSt9nothrow_t S(S(_ZGTtdlPv,MANGLE_SIZE_T),RKSt9nothrow_t)
>
> One more thing... Why are there 4 new symbols here...
>
> > +/* Wrap: operator delete(void* ptr, std::size_t sz) */
> > +void
> > +_ZGTtdlPvX (void *ptr, size_t sz)
> > +{
> > + if (ptr)
> > + gtm_thr()->forget_allocation (ptr, sz, _ZdlPvX);
> > +}
> > +
> > +/* Wrap: operator delete (void *ptr, std::size_t sz, const std::nothrow_t&) */
> > +void
> > +_ZGTtdlPvXRKSt9nothrow_t (void *ptr, size_t sz, c_nothrow_p nt UNUSED)
> > +{
> > + if (ptr)
> > + gtm_thr()->forget_allocation (ptr, sz, delsz_opnt);
> > +}
> > +
... while those are the transactional wrappers that we actually want to
provide and export from libitm.
I'll probably revise the patch in a v2 though depending on how we decide
to handle allocations of exception objects.
prev parent reply other threads:[~2015-11-03 10:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-29 18:35 Torvald Riegel
2015-10-29 19:40 ` Richard Henderson
2015-10-30 10:06 ` Torvald Riegel
2015-10-30 17:27 ` Richard Henderson
2015-11-03 10:46 ` Torvald Riegel [this message]
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=1446547601.7192.44.camel@localhost.localdomain \
--to=triegel@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=jason@redhat.com \
--cc=rth@redhat.com \
/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).