New native layer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jikes RVM also does m-to-n threading, so it's there's more than 1 VM 
that's whacky in this regard.  The things we need to do are most likely 
different than what Kaffe needs to do, but having a chance to inject a VM 
callback before the thread dives off into a blocking system call is 
something we would like to be able to do.  We have some linux specific 
hacks (evil with dlopen to intercept poll, select, etc), but it's fragile 
and doesn't work on other platforms like AIX and OS X that Jikes RVM runs 
on.

--dave

> A major issue is that for green threads (i.e. jthreads) in Kaffe, we'd
> have to make sure that we can disable interrupts before invoking a
> system method, and enable them before we exit again. If we don't do
> that, than bad things can (and do ;) happen.
> 
> That's a pretty Kaffe-specific need, though, so it may not make sense to
> make room for it in GNU Classpath, unless it is accompanied by some
> other, instant gratification, like looking very much like plain old
> POSIX. In theory, if we're lucky, Kaffe may also be able to get by using
> AspectC++[1] or something equivalently weird to weave in the stuff we
> need for jthreads. In practice, I don't think anyone has done something
> like that yet, though. ;)



[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux