D called from Java
Frank Benoit
keinfarbton at googlemail.com
Sat Aug 18 11:08:32 PDT 2007
I am working on a framework to automate the process of binding Java and
D. See the dsource project TioLink.
The main problem i see currently is, that both available D runtime
libraries - Phobos and Tango - do not have support for registering
Threads that are created "outside".
If a dll (or .so) is called from Java, it is called always with several
threads. Even in a single threaded Java application. Java runs the
finalizer in an own Thread, so it is essential to be able to register
all calling threads on the library entry points. Only with this, the D
GC can savely do its job.
Hopefully both runtime libs will have support for multithreaded
libraries in near future :)
More information about the Digitalmars-d
mailing list