profile questions

Mathieu Lacage Mathieu.Lacage@sophia.inria.fr
Tue Aug 29 16:53:00 GMT 2006


On Tue, 2006-08-29 at 17:31 +0100, Andrew Haley wrote:
> Tom Tromey writes:
>  > >>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:
>  > 
>  > >> I'd prefer to use dlmopen to solve this instead, but I'm not sure it
>  > >> is actually suitable for our needs :-(
>  > 
>  > Andrew> I've heard you say so before, but you never said *why* you think it may
>  > Andrew> not actually be suitable.  Can you tell us?
>  > 
>  > Yeah, sorry.  When loading a library into a new dlmopen namespace, I
>  > wonder how other libraries needed by that library are handled.  E.g.,
>  > a BC-compiled .so will depend on libgcj_bc.so.  I suppose it would try
>  > to load a new copy of libgcj_bc.so into the new namespace... but this
>  > is incorrect for our situation.

It will load a new copy of the library into the new namespace.

Another thing to keep in mind is that dlmopen has a static maximum
number of namespaces per process. On my FC5 system, that max number is
15. (1 is used for the main namespace which leaves you 16 - 1 = 15 for
your own namespaces).


Mathieu
-- 



More information about the Java mailing list