[Isolate-interest] isolates and native libraries / shared memory
Bernhard Fastenrath
bfastenrath@mac.com
Thu, 08 Apr 2004 20:52:44 +0200
Pete Soper wrote:
>Hi Bernard,
>
>The specification is silent about non-Java interface contracts. Native
>libraries, and especially their name space semantics, are platform dependent.
>For example with Solaris it's possible to arrange separate namespaces for
>multiple instances of the same .so file while on other platforms this is
>impossible (but with the above Solaris circumstance Java doesn't support
>the disambiguation needed to, for example, have the same native library
>within the scope of two classloaders.
>
>Tell us more to understand what you mean by "shared memory identifier between
>isolates."
>
>
>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
int identifier = shmget (key_t key, int size, int shmflg);
If I pass the identifier from one isolate to another and try to use the
identifier in the context
of the other isolate's native library I might find the shared memory
completly unavailable
or I might find it already mapped into the address space of the process,
because it's the same
process.