develooper Front page | perl.perl5.porters | Postings from January 2012

perl's memory model on win32 and msvcrt.dll dependency

Thread Next
From:
bulk 88
Date:
January 28, 2012 21:06
Subject:
perl's memory model on win32 and msvcrt.dll dependency
Message ID:
COL115-W7B35990C863E37E295922DF8C0@phx.gbl

I've been looking at Perl's source and wondered, how come in vmem.h there is a dependency on msvcrt.dll  (former VC 6 but now the "private" Windows CRT) http://perl5.git.perl.org/perl.git/blob/HEAD:/win32/vmem.h#l142 and not the actual Visual C CRT that came with the compiler your using? This results in 2 CRTs being loaded by perlXXX.dll always.

Next issue, why does Vmem.h exist and why is it used on Windows? Why not use HeapCreate and friends for the "cleaning up ithreads leaking" system? Why go through C lib's memory allocator? are MS CRTs better than HeapAlloc?
 		 	   		  
Thread Next


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