public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Eric Norum <eric.norum@usask.ca>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: libstdc++/4367: Sparc atomicity.h routines can lock up on some OS.
Date: Tue, 02 Apr 2002 07:36:00 -0000	[thread overview]
Message-ID: <20020402153601.11547.qmail@sources.redhat.com> (raw)

The following reply was made to PR libstdc++/4367; it has been noted by GNATS.

From: Eric Norum <eric.norum@usask.ca>
To: bkoz@gcc.gnu.org, eric.norum@usask.ca, gcc-bugs@gcc.gnu.org,
        gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: libstdc++/4367: Sparc atomicity.h routines can lock up on some OS.
Date: Tue, 2 Apr 2002 09:32:17 -0600

 On Monday, April 1, 2002, at 08:56 PM, bkoz@gcc.gnu.org wrote:
 
 > Synopsis: Sparc atomicity.h routines can lock up on some OS.
 >
 > State-Changed-From-To: open->analyzed
 > State-Changed-By: bkoz
 > State-Changed-When: Mon Apr  1 18:56:21 2002
 > State-Changed-Why:
 >     I guess you'll have to use heavier-weight locks for these OS's. Can 
 > you think of another solution? I cannot.
 >
 >     Note this is an issue with all the cpu/atomicity.h files, not just 
 > sparc, right?
 >
 >
 
 No, it's not an issue for architectures which provide hardware support 
 for this operation.  Some 68k family members have a `compare and set' 
 instruction, the 80x86 family has the lock prefix,  etc.   The sparc 
 routine appears to be the only one that uses a spin lock to protect the 
 operation and is thus the only code that is at risk in a 
 strict-preemptive OS environment.   Even the sparc64 code has no spin 
 lock.  I don't know enough about the sparc architecture to be able to 
 say if the any of the techniques used in the other source files could be 
 used to replace the existing sparc code.
 
 
 --
 Eric Norum <eric.norum@usask.ca>
 Department of Electrical Engineering
 University of Saskatchewan
 Saskatoon, Canada.
 Phone: (306) 966-5394   FAX:   (306) 966-5407
 


             reply	other threads:[~2002-04-02 15:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-02  7:36 Eric Norum [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-11-02  1:38 davem
2002-11-01 18:05 bkoz
2002-10-01 22:14 davem
2002-04-02 13:56 Richard Henderson
2002-04-02  0:16 Richard Henderson
2002-04-01 18:56 bkoz
2001-09-20  8:26 Phil Edwards
2001-09-20  7:56 eric.norum

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=20020402153601.11547.qmail@sources.redhat.com \
    --to=eric.norum@usask.ca \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@gcc.gnu.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).