Open GoogleCodeExporter opened 8 years ago
Please try v 0.4.246
Do you have any problems with not-multithreaded compilation?
Original comment by alex.tka...@gmail.com
on 23 May 2011 at 12:26
With v 0.4.246, the problem is the same.
And with not-multithreaded compilation (basically with nbTasks=nbThreads=1 in
the test), there is no problem : the script compilation/evaluation both went
fine.
Original comment by guillaume.cernier@gmail.com
on 23 May 2011 at 12:53
Could you please also check if problem persist in case when only one
compilation happen at any given time? Something like compilation is surrounded
with synchronized block
Original comment by alex.tka...@gmail.com
on 23 May 2011 at 1:00
Yes, with such a synchronized block around compilation/evaluation, it works :
------------------------------------------------------------------------
private final static Object lock = new Object();
static class MyRunnable implements Runnable {
...
public void run() {
...
try {
synchronized (lock) {
// compile+eval
}
} catch (exceptions) {
...
}
}
...
}
------------------------------------------------------------------------
but the multi-thread compatibility should be the same as for Groovy scripts.
Original comment by guillaume.cernier@gmail.com
on 23 May 2011 at 1:49
Original issue reported on code.google.com by
guillaume.cernier@gmail.com
on 23 May 2011 at 12:07Attachments: