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/crc.cpp

    r124 r129  
    3232
    3333  int size=0x1000;
    34   uint8_t *buffer=(uint8_t *)jmalloc(size,"crc_buffer"),*c;
     34  uint8_t *buffer=(uint8_t *)malloc(size),*c;
    3535  long l=fp->file_size();
    3636  long cur_pos=fp->tell();
     
    5353  }
    5454  fp->seek(cur_pos,0);
    55   jfree(buffer);
     55  free(buffer);
    5656  return (crc1|(crc2<<8)|(crc3<<16)|(crc4<<24));
    5757}
Note: See TracChangeset for help on using the changeset viewer.