Native extension libraries placement #16358
Labels
area-library
library-io
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
This issue was originally filed by incr...@gmail.com
Suppose I have Dart project with plugin architecture, where plugins are placed in separate directories and each is compiled (dart2dart) into single file so they does not need any external dart libraries. They are loaded using Isolate.spawnUri().
These plugins use some c++ native extension library. As I understood, native library must be placed in the same directory as corresponding Dart library, i.e. in the each compiled plugin directory.
Does it means, that VM loads this native library multiple times, each from different plugin directory? If so, there should be some possibility to specify the single place where this library is (parameter of VM to specify native extension libraries placement?) and some mechanism to unload native library from VM when no Isolate uses it.
The text was updated successfully, but these errors were encountered: