From: Szabolcs Nagy <szabolcs.nagy@arm.com>
To: Florian Weimer <fweimer@redhat.com>
Cc: libc-alpha@sourceware.org
Subject: Re: [PATCH] elf: Simplify software TM implementation in _dl_find_object
Date: Fri, 7 Jan 2022 15:49:22 +0000 [thread overview]
Message-ID: <20220107154922.GT3294453@arm.com> (raw)
In-Reply-To: <87zgo73boe.fsf@oldenburg.str.redhat.com>
The 01/07/2022 14:41, Florian Weimer wrote:
> With the current set of fences, the version update at the start
> of the TM write operation is redundant. Also use relaxed MO stores
> during the dlclose update, and skip any version changes there.
>
> Suggested-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
>
> ---
> Initial testing looks good, but I'll keep the aarch64 and powerpc64le
> tests running in a loop for a while.
looks good to me except
> @@ -282,15 +279,6 @@ _dlfo_mappings_end_update (void)
> atomic_thread_fence_release ();
> __atomic_wide_counter_fetch_add_relaxed (&_dlfo_loaded_mappings_version, 1);
> }
i think the v += 1 does not have to be atomic so
start_version = load_relaxed (&ver);
store_relaxed (&ver, start_version + 1);
or if we can change the api to pass start_version
that may be clearer.
next prev parent reply other threads:[~2022-01-07 15:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-07 13:41 Florian Weimer
2022-01-07 15:49 ` Szabolcs Nagy [this message]
2022-01-07 15:56 ` Florian Weimer
2022-01-07 16:08 ` Szabolcs Nagy
2022-01-07 16:29 ` Florian Weimer
2022-01-10 10:10 Florian Weimer
2022-01-10 12:29 ` Szabolcs Nagy
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=20220107154922.GT3294453@arm.com \
--to=szabolcs.nagy@arm.com \
--cc=fweimer@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).