This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
[GCJ-core] dynamically unloading native libraries
- From: Sylvain Marié <sylvainmarie2 at yahoo dot fr>
- To: java at gcc dot gnu dot org
- Date: Tue, 7 Oct 2008 12:28:24 +0000 (GMT)
- Subject: [GCJ-core] dynamically unloading native libraries
Hi all,
I am working on a project involving GCJ on an embedded Linux busybox.
We are particularly fond of the ability of GCJ to use java in "compiled mode".
In order to be able to use both native code (.so), compiled java (.so) and bytecode java
(.jar, .class) together with a module loading system, we are running some tests to validate
that dynamic code loading/unloading works fine.
Strangely enough this does not work on GCJ, whereas it works fine on sun's jvm (a native
library is fully unloaded once its classloader is garbaged out).
see also :
> openJDK, in jdk/src/share/classes/java/lang/ClassLoader.java: finalize method unloads native libraries
Is this feature planned to be inetgrated in next versions of the runtime ?
Thank you in advance for your support
- congratulations for your amazing work so far !
Best regards
Sylvain
Sylvain MARIÉ
Schneider Electric DInnov,
Software Engineering Technologies