PageRenderTime 40ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/jemalloc-3.0.0.fixes_ptmalloc_lock_all_crash.patch

#
Patch | 22 lines | 20 code | 2 blank | 0 comment | 0 complexity | 5766d7104146b683fb84cdbc3db5eff4 MD5 | raw file
Possible License(s): BSD-2-Clause
  1. From upstream git:
  2. http://www.canonware.com/cgi-bin/gitweb.cgi?p=jemalloc.git;a=patch;h=5c710cee783a44061fa2c467ffd8984b8047b90e
  3. diff -Naur ../jemalloc-3.0.0.orig/src/jemalloc.c ./src/jemalloc.c
  4. --- ../jemalloc-3.0.0.orig/src/jemalloc.c 2012-05-12 02:50:38.000000000 +0200
  5. +++ ./src/jemalloc.c 2012-05-24 09:25:07.371417566 +0200
  6. @@ -1262,11 +1262,10 @@
  7. * passed an extra argument for the caller return address, which will be
  8. * ignored.
  9. */
  10. -JEMALLOC_EXPORT void (* const __free_hook)(void *ptr) = je_free;
  11. -JEMALLOC_EXPORT void *(* const __malloc_hook)(size_t size) = je_malloc;
  12. -JEMALLOC_EXPORT void *(* const __realloc_hook)(void *ptr, size_t size) =
  13. - je_realloc;
  14. -JEMALLOC_EXPORT void *(* const __memalign_hook)(size_t alignment, size_t size) =
  15. +JEMALLOC_EXPORT void (* __free_hook)(void *ptr) = je_free;
  16. +JEMALLOC_EXPORT void *(* __malloc_hook)(size_t size) = je_malloc;
  17. +JEMALLOC_EXPORT void *(* __realloc_hook)(void *ptr, size_t size) = je_realloc;
  18. +JEMALLOC_EXPORT void *(* __memalign_hook)(size_t alignment, size_t size) =
  19. je_memalign;
  20. #endif