NetLogo/NetLogo — Issue #6: parallel BehaviorSpace doesn't work with extensions that use JNI
Author: SethTisue
Created: 2011-10-29 19:02:49+00:00
State: open

amackenzieus writes:

> I'm in the midst of some changes to my linear programming
> solver extension, and it was brought to my attention that
> there were some issues when using the extension in a model
> with behaviorspace, specifically when spread across
> multiple processors.
>
> Since the extension makes a call to a native library (.dll), the
> initial thread's classloader already has the .dll loaded.
> As I understand it, only a single classloader can have a
> native library open and be calling to it.
>
> Is there a potential to identify the specific classloader
> that's calling the native library and then utilize that
> classloader to make multiple calls to the library, or
> does the architecture behind behaviorspace make
> that impossible?

I'm not sure yet if it will be fixable by changing the code in the extension, or if we'll need to make some change to NetLogo in a 5.0.x release