The R Project SVN R

Rev

Rev 29208 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 29208 Rev 38427
Line 2892... Line 2892...
2892
 
2892
 
2893
  /* DBT - Check that we are not about to exceed the R memory limit */
2893
  /* DBT - Check that we are not about to exceed the R memory limit */
2894
  if (size + av->mmapped_mem + av->sbrked_mem > R_max_memory) {
2894
  if (size + av->mmapped_mem + av->sbrked_mem > R_max_memory) {
2895
	if(R_Is_Running) 
2895
	if(R_Is_Running) 
2896
	    Rf_warning("Reached total allocation of %dMb: see help(memory.size)", R_max_memory/1048576);
2896
	    Rf_warning("Reached total allocation of %dMb: see help(memory.size)", R_max_memory/1048576);
2897
	return (void*)-1;
2897
	return (void*) 0;
2898
  }
2898
  }
2899
 
2899
 
2900
  /*
2900
  /*
2901
    Don't try to call MORECORE if argument is so big as to appear
2901
    Don't try to call MORECORE if argument is so big as to appear
2902
    negative. Note that since mmap takes size_t arg, it may succeed
2902
    negative. Note that since mmap takes size_t arg, it may succeed