[Roma.pm] GC

Mattia Dongili dongili at supereva.it
Thu Apr 3 09:39:23 CST 2003


> [1] provate a far gigare su una macchina unix quanto segue:
> 
> int main(int argc, char* argv[])
> {
> 	int size = 1024;
> 	while(1)
> 	{
> 		if(malloc(size)) size*=2;
> 		else size= (size+1)/2;
> 	}
> }

che sso' scemo? un buon test per OOM killer :)



More information about the Roma mailing list