[OSM-dev] OSM server installation - problems with create
Tom Hughes
tom at compton.nu
Thu Sep 4 08:46:52 BST 2008
Frederik Ramm wrote:
> Stefan de Konink wrote:
>> if (mmap2(...) == -1)
>> exit(-1);
>
> The problem is that between our program code (which is of course fast
> and efficient) and the kernel (which offers the mmap2 system call) sits
> a fat beast (a.k.a "dynamic programming language") named "ruby" that
> magically frees the programmer of all responsibilities regarding memory
> allocation and deallocation. This is good because it becomes hard for
> even the stupidest programmer to create memory leaks, but on the other
> hand the programmer is not usually told when ruby decides to make an
> mmap call and what the return value of it was.
Even ruby probably isn't doing the mmap - that is probably glibc...
Tom
--
Tom Hughes (tom at compton.nu)
http://www.compton.nu/
More information about the dev
mailing list