public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
From: "Stephane dot Epardaud at sophia dot inria dot fr" <gcc-bugzilla@gcc.gnu.org> To: java-prs@gcc.gnu.org Subject: [Bug java/19003] New: Potential problems in libjava system calls with gc-boehm Date: Wed, 15 Dec 2004 08:04:00 -0000 [thread overview] Message-ID: <20041215080350.19003.Stephane.Epardaud@sophia.inria.fr> (raw) Hello, I am using the Boehm GC myself, and noticed that some system calls (in particular select) can be blocked by the GC (which is using signals and signal handlers to block threads) and return with an error of -1 and errno set to EINTR. I looked at gcj's libjava implementation to see if you handled it better than I did, and I noticed that you do handle EINTR in the select system call by using _Jv_select, and you also handle it when reading/writing to local files, but I think you omitted the reading/writing of network sockets and accept system calls. There might be other places too: basically what I understand of the Boehm GC is that it can block any thread at any place in order to do a GC, and when that happens in a thread within a system call that can return an error of EINTR, you have to treat that error specially and redo that system call. -- Summary: Potential problems in libjava system calls with gc-boehm Product: gcc Version: 3.4.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: Stephane dot Epardaud at sophia dot inria dot fr CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19003
next reply other threads:[~2004-12-15 8:04 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-12-15 8:04 Stephane dot Epardaud at sophia dot inria dot fr [this message] 2004-12-15 9:58 ` [Bug libgcj/19003] " pinskia at gcc dot gnu dot org 2005-01-15 6:05 ` pinskia at gcc dot gnu dot org
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=20041215080350.19003.Stephane.Epardaud@sophia.inria.fr \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=java-prs@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: linkBe 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).