Commit Graph

  • 33e1dad680 Safety checks: Add a redzoning feature. David Goldblatt 2019-03-22 12:53:11 -07:00
  • b92c9a1a81 Safety checks: Indirect through a function. David Goldblatt 2019-03-20 13:06:53 -07:00
  • f95a88fcd9 Safety checks: Expose config value via mallctl and stats. David Goldblatt 2019-03-22 17:13:45 -07:00
  • f4d24f05e1 Move extra size checks behind a config flag. David Goldblatt 2019-03-19 16:04:35 -07:00
  • 7f7935cf78 Add an autoconf feature test for format_arg and a jemalloc-specific macro for it. zoulasc 2019-03-15 20:19:16 -04:00
  • 14e4176758 Fix incorrect macro use. Compiling with warnings produces missing prototype warnings. zoulasc 2019-03-15 12:59:56 -04:00
  • 020b5dc7ac Convert the format generator function to an annotated format function, so that the generated formats can be checked by the compiler. zoulasc 2019-03-15 12:56:03 -04:00
  • 7ee3897740 Separate tests for extent utilization API Yinan Zhang 2019-04-09 11:01:26 -07:00
  • d3d7a8ef09 remove compare and branch in fast path for c++ operator delete[] mgrice 2019-03-08 11:50:30 -08:00
  • c2a3a7cd3f Fix test/unit/prof_log Qi Wang 2019-04-03 16:19:00 -07:00
  • 93084cdc89 Ensure page alignment on extent_alloc. Qi Wang 2019-03-28 20:42:40 -07:00
  • 9aab3f2be0 Add memory utilization analytics to mallctl Yinan Zhang 2019-03-15 11:01:45 -07:00
  • b0b3e49a54 Merge branch 'dev' 5.2.0 Qi Wang 2019-04-02 17:50:42 -07:00
  • f7489dc8f1 Update Changelog for 5.2.0. Qi Wang 2019-03-19 16:57:55 -07:00
  • 978a7a21ae Use iallocztm instead of ialloc in prof_log functions. Qi Wang 2019-04-02 13:34:50 -07:00
  • 6fe11633b0 Fix the binshard unit test. Qi Wang 2019-04-02 13:02:56 -07:00
  • 064d6e570e Tweak the wording about oversize_threshold. Qi Wang 2019-03-31 17:45:22 -07:00
  • 0101d5ebef Avoid check_min for opt_lg_extent_max_active_fit. Qi Wang 2019-03-29 13:31:02 -07:00
  • 59d9891948 Add the missing unlock in the error path of extent_register. Qi Wang 2019-03-29 13:27:20 -07:00
  • ce03e4c7b8 Document opt.oversize_threshold. Qi Wang 2019-03-28 20:30:56 -07:00
  • 788a657cee Allow low values of oversize_threshold to disable the feature. Qi Wang 2019-03-27 21:47:20 -07:00
  • a4d017f5e5 Output message before aborting on tcache size-matching check. Qi Wang 2019-03-21 22:21:43 -07:00
  • fb56766ca9 Eagerly purge oversized merged extents. Qi Wang 2019-03-12 15:02:41 -07:00
  • f6c30cbafa Remove some unused comments. Qi Wang 2019-03-11 13:17:20 -07:00
  • b804d0f019 Fallback to 32-bit when 8-bit atomics are missing for TSD. Qi Wang 2019-03-07 16:01:55 -08:00
  • 06f0850427 Detect if 8-bit atomics are available. Qi Wang 2019-03-07 15:58:26 -08:00
  • 14d3686c9f Do not use #pragma GCC diagnostic with gcc < 4.6. Jason Evans 2019-03-09 10:51:03 -08:00
  • ac24ffb21e Fix a syntax error in configure.ac Qi Wang 2019-02-22 13:00:14 -08:00
  • 775fe302a7 Remove JE_FORCE_SYNC_COMPARE_AND_SWAP_[48]. Jason Evans 2019-02-22 11:10:11 -08:00
  • cbdb1807ce Stringify tls_callback linker directive Dave Rigby 2019-02-22 19:00:46 +00:00
  • 18450d0abe Guard libgcc unwind init with opt_prof. Qi Wang 2019-02-19 15:58:13 -08:00
  • dca7060d5e Avoid redefining tsd_t. Jason Evans 2019-02-20 18:45:23 -08:00
  • 9015deb126 Add build_doc by default. Qi Wang 2019-02-07 18:47:49 -08:00
  • 23b15e764b Add --disable-libdl to travis. Qi Wang 2019-02-06 13:36:56 -08:00
  • 2db2d2ef5e Make background_thread not dependent on libdl. Qi Wang 2018-06-07 12:28:40 -07:00
  • 1f55a15467 Add configure option --disable-libdl. Qi Wang 2018-06-07 12:27:19 -07:00
  • 8e9a613122 Disable muzzy decay by default. Qi Wang 2019-01-28 15:25:30 -08:00
  • e13400c919 Sanity check szind on tcache flush. Qi Wang 2019-01-22 13:59:23 -08:00
  • b33eb26dee Tweak the spacing for the total_wait_time per second. Qi Wang 2019-01-28 14:05:20 -08:00
  • 374dc30d3d Update copyright dates. Qi Wang 2019-01-24 16:18:30 -08:00
  • e3db480f6f Rename huge_threshold to oversize_threshold. Qi Wang 2019-01-24 16:15:04 -08:00
  • 350809dc5d Set huge_threshold to 8M by default. Qi Wang 2019-01-16 12:25:24 -08:00
  • d3145014a0 Explicitly use arena 0 in alignment and OOM tests. Qi Wang 2019-01-18 14:20:07 -08:00
  • a7b0a124c3 Mention different mmap(2) behaviour with retain:true. Edward Tomasz Napierala 2018-11-30 13:57:49 +00:00
  • 522d1e7b4b Tweak the spacing for nrequests in stats output. Qi Wang 2019-01-18 15:51:01 -08:00
  • 8c9571376e Fix stats output (rate for total # of requests). Qi Wang 2019-01-18 15:22:44 -08:00
  • 7a815c1b7c Un-experimental the huge_threshold feature. Qi Wang 2019-01-15 16:14:18 -08:00
  • bbe8e6a909 Avoid creating bg thds for huge arena lone. Qi Wang 2019-01-14 14:16:09 -08:00
  • b6f1f2669a Revert "Customize cloning to include tags so that VERSION is valid." Jason Evans 2019-01-14 07:11:04 -08:00
  • 225d89998b Revert "Remove --branch=${CIRRUS_BASE_BRANCH} in git clone command." Jason Evans 2019-01-14 07:10:39 -08:00
  • f459454afe Avoid potential issues on extent zero-out. Qi Wang 2018-08-10 16:08:50 -07:00
  • 0ecd5addb1 Force purge on thread death only when w/o bg thds. Qi Wang 2019-01-11 11:22:11 -08:00
  • fc13a7f1fa Remove --branch=${CIRRUS_BASE_BRANCH} in git clone command. Jason Evans 2019-01-11 12:38:14 -08:00
  • 646af596d8 Customize cloning to include tags so that VERSION is valid. Jason Evans 2019-01-09 17:07:11 -08:00
  • 6910fcb208 Add Cirrus-CI config for FreeBSD builds Li-Wen Hsu 2019-01-04 17:07:09 +08:00
  • 471191075d Replace -lpthread with -pthread Faidon Liambotis 2019-01-08 03:31:53 +02:00
  • daa0e436ba implement malloc_getcpu for windows Leonardo Santagada 2018-10-31 12:03:42 +01:00
  • 4e920d2c9d Add --{enable,disable}-{static,shared} to configure script John Ericson 2018-12-14 15:28:34 -05:00
  • 7241bf5b74 Only read arena index from extent on the tcache flush path. Qi Wang 2018-12-03 18:30:58 -08:00
  • 441335d924 Add unit test for producer-consumer pattern. Qi Wang 2018-12-17 15:29:37 -08:00
  • 36de5189c7 Add rate counters to stats Alexander Zinoviev 2018-12-10 11:29:44 -08:00
  • 99f4eefb61 Fix incorrect stats mreging with sharded bins. Qi Wang 2018-12-07 18:06:04 -08:00
  • 711a61f3b4 Add unit test for sharded bins. Qi Wang 2018-11-28 16:23:18 -08:00
  • 98b56ab23d Store the bin shard selection in TSD. Qi Wang 2018-11-27 12:38:47 -08:00
  • 45bb4483ba Add stats for arenas.bin.i.nshards. Qi Wang 2018-11-21 11:17:31 -08:00
  • 3f9f2833f6 Add opt.bin_shards to specify number of bin shards. Qi Wang 2018-11-20 13:51:32 -08:00
  • 37b8913925 Add support for sharded bins within an arena. Qi Wang 2018-11-12 15:56:04 -08:00
  • b23336af96 mutex: fix trylock spin wait contention Dave Watson 2018-11-26 08:11:00 -08:00
  • c4063ce439 Set the default number of background threads to 4. Qi Wang 2018-11-15 13:01:05 -08:00
  • 43f3b1ad0c Deprecate OSSpinLock. Qi Wang 2018-11-08 15:43:09 -08:00
  • 13c237c7ef Add a fastpath for arena_slab_reg_alloc_batch Dave Watson 2018-10-29 16:01:09 -07:00
  • 17aa470760 add extent_nfree_sub Dave Watson 2018-10-29 15:09:21 -07:00
  • 4b82872ebf arena: Refactor tcache_fill to batch fill from slab Dave Watson 2018-10-18 09:49:45 -07:00
  • 57553c3b1a Avoid touching all pages in extent_recycle for debug build. Qi Wang 2018-11-12 11:15:03 -08:00
  • 1f56115704 Fix tcache_flush (follow up cd2931a). Qi Wang 2018-11-09 14:45:06 -08:00
  • 794e29c0ab Add a free() and sdallocx(where flags=0) fastpath Dave Watson 2018-10-18 13:14:04 -07:00
  • e2ab215324 refactor tcache_dalloc_small Dave Watson 2018-10-18 13:13:57 -07:00
  • 5e795297b3 rtree: add rtree_szind_slab_read_fast Dave Watson 2018-10-18 12:51:54 -07:00
  • a4c6b9ae01 Restore a FreeBSD-specific getpagesize(3) optimization. Edward Tomasz Napierala 2018-10-25 16:06:42 +01:00
  • cd2931ad9b Fix tcaches_flush. Qi Wang 2018-11-08 16:20:48 -08:00
  • 7ee0b6cc37 Properly trigger decay on tcache destory. Qi Wang 2018-11-08 12:24:38 -08:00
  • d66f976628 Optimize large deallocation. Qi Wang 2018-10-23 13:50:42 -07:00
  • 8dabf81df1 Bypass extent_dalloc when retain is enabled. Qi Wang 2018-10-31 14:54:53 -07:00
  • 50b473c883 Set commit properly for FreeBSD w/ overcommit. Qi Wang 2018-11-02 14:01:45 -07:00
  • be0749f591 Restrict lwsync to powerpc64 only Justin Hibbits 2018-10-23 16:41:14 -05:00
  • ceba1dde27 Make use of pthread_set_name_np(3) on FreeBSD. Edward Tomasz Napierala 2018-10-06 16:43:07 +01:00
  • 936bc2aa15 prof: Fix memory regression Dave Watson 2018-10-23 08:12:46 -07:00
  • 0f8313659e malloc: Add a fastpath Dave Watson 2018-10-10 11:54:58 -07:00
  • 0ec656eb71 ticker: add ticker_trytick Dave Watson 2018-10-16 10:23:08 -07:00
  • ac34afb403 drop bump_empty_alloc option. Size class lookup support used instead. Dave Watson 2018-10-08 10:13:02 -07:00
  • 4edbb7c64c sz: Support 0 size in size2index lookup/compute Dave Watson 2018-10-08 10:11:04 -07:00
  • 2b112ea593 add test for zero-sized alloc and aligned alloc Dave Watson 2018-10-09 08:41:36 -07:00
  • 01e2a38e5a Make smallocx symbol name depend on the JEMALLOC_VERSION_GID gnzlbg 2018-10-05 13:11:21 +02:00
  • 837de32496 Test smallocx on Travis-CI gnzlbg 2018-07-11 15:11:53 +02:00
  • 741fca1bb7 Hide smallocx even when enabled from the library API gnzlbg 2018-07-11 21:39:44 +02:00
  • 730e57b08f Adapts mallocx integration tests for smallocx gnzlbg 2018-07-11 15:04:48 +02:00
  • 08260a6b94 Add experimental API: smallocx_return_t smallocx(size, flags) gnzlbg 2017-11-15 18:26:49 +01:00
  • 325e3305fc remove malloc_init() off the fastpath Dave Watson 2018-10-03 14:47:31 -07:00
  • 997d86acc6 restrict bytes_until_sample to int64_t. This allows optimal asm generation of sub bytes_until_sample, usize; je; for x86 arch. Subtraction is unconditional, and only flags are checked for the jump, no extra compare is necessary. This also reduces register pressure. Dave Watson 2018-10-09 11:25:36 -07:00
  • d1a861fa80 add a check for SC_LARGE_MAXCLASS Dave Watson 2018-10-09 11:16:19 -07:00