develooper Front page | perl.perl5.porters | Postings from February 2000

Re: [PATCH 5.5.660] ExtUtils::DynaLoader dl_unload_file() patch

From:
Alan Burlison
Date:
February 29, 2000 13:42
Subject:
Re: [PATCH 5.5.660] ExtUtils::DynaLoader dl_unload_file() patch
Message ID:
38BC3CD9.F18A105C@uk.sun.com
Ilya Zakharevich wrote:

> > 3.  Modified dl_generic_private_init() in dlutils.c to install
> > Perl_call_atexit() handler that calls dl_unload_all_files() when the
> > interpreter exits.
> 
> Is it good enough?  What is the semantic of loading/unloading DLL?
> What happens to initialized/uninitialized data?  Is it *guarantied* to
> be reset on the next loading?

On Solaris, if you have defined a .fini it will be called on dlclose(). 
Failing that, it just gets munmap'd, and any associated data will be
zapped.

Alan Burlison



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About