delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/03/24/07:57:27

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: Heap split - cannot fork:-)
24 Mar 1998 07:57:27 -0800 :
Message-ID: <01BD5723.EB8CB160.cygnus.cygwin32.developers@gater.krystalbank.msk.ru>
To: "'cygwin32-developers AT cygnus DOT com'" <cygwin32-developers AT cygnus DOT com>

Sergey Okhapkin wrote:
>Here is the temporary fix - reserve a large amount of memory for heap to avoid fork problem. >The fix doesn't affect performance.

A small test suite - look at values returned by malloc with and without the fix:

#include <stdio.h>
#include <stdlib.h>

int main ()
{
        int i;
        for (i=0; i<20; i++)
	       	printf ("%p\n", malloc(1024*1024*1));
}

-- 
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
Looking for a job

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019