malloc.c 261 B

123456789101112131415
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. int main(int argc, char ** argv)
  4. {
  5. for (int i = 0 ; i < 100000 ; i++) {
  6. malloc(16);
  7. malloc(32);
  8. malloc(64);
  9. malloc(128);
  10. malloc(256);
  11. malloc(512);
  12. }
  13. return 0;
  14. }