This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [0/7] RFC: read DWARF psymtabs in the background


On Fri, Jun 25, 2010 at 03:03:14PM -0600, Tom Tromey wrote:
> >>>>> "Mark" == Mark Kettenis <mark.kettenis@xs4all.nl> writes:
> 
> Tom> I realize that threads are unpopular in many quarters, so this is an RFC.
> 
> Mark> Sorry, but this is pretty much a no-go for OpenBSD.  We have a
> Mark> userland threads implementation that puts file descriptors in
> Mark> non-blocking mode such that it can switch to another thread if I/O to
> Mark> that filedescriptor would block.  This has side effects if these file
> Mark> descriptors are shared with child processes :(.
> 
> If that is your only objection, it is no trouble to disable this code on
> a per-host basis.  All that is missing for that is some of the
> configury; all the code is designed to allow single-threaded operation.

FWIW, I think this is a reasonable thing to do.  I also think that
loading your future proposed indexes in the background would be a nice
feature.  For one thing, that lets us do them in parallel - great for
a task likely to be I/O dominated.  And on Windows hosts we already
use threads, so it'd win there too.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]