From: Kevin Hendricks <khendricks@ivey.uwo.ca>
To: Greg Noel <GregNoel@san.rr.com>, linuxppc-dev@lists.linuxppc.org
Subject: Patch to fix glibc 2.1.2 so that new semaphore functions work in high signal env.
Date: Thu, 7 Oct 1999 23:56:19 -0400 [thread overview]
Message-ID: <99100800025201.16264@localhost.localdomain> (raw)
In-Reply-To: <v04011701b422cbe2027e@[204.210.50.90]>
[-- Attachment #1: Type: text/plain, Size: 572 bytes --]
Hi,
I had to make the following patch to get glibc 2.1.2 new semaphores to work in
high signal environments. For some reason calls to sem_post made by the
pthread manager thread were *NOT* resolving to the __new_sem_post but instead
to somewhere else (__old_sem_post or to kernel sem_post ????).
I don't know why (the correct fix might be somewhere else) but this does the
trick.
The pthread manager only does the sem_post calls when the original thread was
in a signal handler.
I am not sure this will help others, but it does wonders for the JDK!!!
Thanks,
Kevin
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch to pthreads manager.c --]
[-- Type: text/x-c; name="glibc.patch", Size: 340 bytes --]
--- manager.c.prev Thu Oct 7 23:40:04 1999
+++ manager.c Thu Oct 7 23:40:47 1999
@@ -156,7 +156,7 @@
}
break;
case REQ_POST:
- sem_post(request.req_args.post);
+ __new_sem_post(request.req_args.post);
break;
case REQ_DEBUG:
/* Make gdb aware of new thread and gdb will restart the
parent reply other threads:[~1999-10-08 3:56 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <v04011701b422cbe2027e@[204.210.50.90]>]
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=99100800025201.16264@localhost.localdomain \
--to=khendricks@ivey.uwo.ca \
--cc=GregNoel@san.rr.com \
--cc=linuxppc-dev@lists.linuxppc.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 NNTP newsgroup(s).