Ignore:
Timestamp:
Mar 22, 2008, 10:39:25 AM (15 years ago)
Author:
Sam Hocevar
Message:
  • Get rid of jmalloc and replace it with standard malloc. Modern operating systems certainly perform a lot better than this custom implementation, and we have superior tools (eg. valgrind) to debug and profile memory usage without interfering with the code itself.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/seq.cpp

    r124 r129  
    4242    total=list_length(pict_list);
    4343
    44   seq=(int *) jmalloc(sizeof(int)*total,"sequence ptr array");
     44  seq=(int *) malloc(sizeof(int)*total);
    4545  if (item_type(pict_list)==L_STRING)
    4646    seq[0]=cache.reg_object(filename,pict_list,SPEC_CHARACTER2,1);
     
    5858sequence::~sequence()
    5959{
    60   jfree(seq);
     60  free(seq);
    6161}
    6262
     
    8787
    8888  s=picts;
    89   seq=(int *) jmalloc(sizeof(int)*total,"sequence ptr array");
     89  seq=(int *) malloc(sizeof(int)*total);
    9090
    9191  for (i=0;i<total;)
Note: See TracChangeset for help on using the changeset viewer.