Commit Graph

  • 424dd61d57 Issue a warning upon directly accessing an arena's bins Kevin Svetlitski 2023-08-04 11:43:59 -07:00
  • 120abd703a Add support for the deprecated attribute Kevin Svetlitski 2023-08-03 15:05:10 -07:00
  • 162ff8365d Update the Ubuntu version used by Travis CI Kevin Svetlitski 2023-08-04 14:22:35 -07:00
  • 07a2eab3ed Stop over-reporting memory usage from sampled small allocations Kevin Svetlitski 2023-07-19 12:30:12 -07:00
  • ea5b7bea31 Add configuration option controlling DSS support Kevin Svetlitski 2023-07-06 12:49:10 -07:00
  • 6816b23862 Include the unrecognized malloc conf option in the error message. Qi Wang 2023-08-01 14:28:24 -07:00
  • 62648c88e5 Ensured sampled allocations are properly deallocated during arena_reset Kevin Svetlitski 2023-07-26 12:25:59 -07:00
  • b01d496646 Add an override for the compile-time malloc_conf to jemalloc_internal_overrides.h Kevin Svetlitski 2023-07-28 11:54:27 -07:00
  • 9ba1e1cb37 Make ctl_arena_clear slightly more efficient Kevin Svetlitski 2023-07-25 12:14:35 -07:00
  • 8ff7e7d6c3 Remove errant #includes in public jemalloc.h header Kevin Svetlitski 2023-07-25 10:42:10 -07:00
  • 3e82f357bb Fix all optimization-inhibiting integer-to-pointer casts Kevin Svetlitski 2023-07-24 10:33:36 -07:00
  • 4827bb17bd Remove vestigial TCACHE_STATE_* macros Kevin Svetlitski 2023-07-24 10:38:42 -07:00
  • 1431153695 Define SBRK_INVALID instead of using a magic number Kevin Svetlitski 2023-07-24 10:36:32 -07:00
  • 7e54dd1ddb Define PROF_TCTX_SENTINEL instead of using magic numbers Kevin Svetlitski 2023-07-21 18:13:58 -07:00
  • c49c17f128 Suppress verbose frame address warnings Kevin Svetlitski 2023-07-20 11:30:59 -07:00
  • cdb2c0e02f Implement C23's free_sized and free_aligned_sized Kevin Svetlitski 2023-07-14 13:14:06 -07:00
  • 41e0b857be Make headers self-contained by fixing #includes Kevin Svetlitski 2023-06-09 17:37:47 -07:00
  • 856db56f6e Move tsd implementation details into tsd_internals.h Kevin Svetlitski 2023-06-12 16:05:18 -07:00
  • 36ca0c1b7d Stop concealing pointer provenance in phn_link_get Kevin Svetlitski 2023-07-12 09:57:46 -07:00
  • 314c073a38 Print the failed assertion before aborting in test cases Kevin Svetlitski 2023-07-10 14:25:53 -07:00
  • 65d3b5989b Print test error messages in color when stderr is a terminal Kevin Svetlitski 2023-06-08 12:56:16 -07:00
  • 1d9e9c2ed6 Fix inconsistent parameter names between definition/declaration pairs Kevin Svetlitski 2023-07-06 16:27:56 -07:00
  • 5711dc31d8 Only enable -Wstrict-prototypes in CI to unbreak feature detection Kevin Svetlitski 2023-07-06 16:51:51 -07:00
  • 589c63b424 Make eligible global variables static and/or const Kevin Svetlitski 2023-05-18 10:22:58 -07:00
  • e249d1a2a1 Remove unreachable code. Qi Wang 2023-07-05 14:02:14 -07:00
  • 602edd7566 Enabled -Wstrict-prototypes and fixed warnings. Qi Wang 2023-07-05 13:33:34 -07:00
  • ebd7e99f5c Add a test-case for small profiled allocations Kevin Svetlitski 2023-06-12 14:13:17 -07:00
  • 5a858c64d6 Reduce the memory overhead of sampled small allocations Kevin Svetlitski 2023-06-02 15:15:37 -07:00
  • e1338703ef Address compiler warnings in the unit tests Kevin Svetlitski 2023-07-03 14:45:28 -07:00
  • d131331310 Avoid eager purging on the dedicated oversize arena when using bg thds. Qi Wang 2023-06-23 14:13:26 -07:00
  • 46e464a26b Fix downloading LLVM in GitHub Action Kevin Svetlitski 2023-06-23 13:30:16 -07:00
  • f2e00d2fd3 Remove trailing whitespace Kevin Svetlitski 2023-04-28 12:29:49 -07:00
  • 05385191d4 Add GitHub action which runs static analysis Kevin Svetlitski 2023-05-17 17:00:10 -07:00
  • bb0333e745 Fix remaining static analysis warnings Kevin Svetlitski 2023-05-12 13:17:52 -07:00
  • 210f0d0b2b Fix read of uninitialized data in prof_free Kevin Svetlitski 2023-06-15 14:47:20 -07:00
  • 90176f8a87 Fix segfault in rb *_tree_remove Kevin Svetlitski 2023-05-09 12:06:47 -07:00
  • 86eb49b478 Fix the arena selection for oversized allocations. Qi Wang 2023-06-06 13:37:07 -07:00
  • 5832ef6589 Use a local variable to set the alignment for this particular allocation instead of changing mmap_flags which makes the change permanent. This was enforcing large alignments for allocations that did not need it causing fragmentation. Reported by Andreas Gustafsson. Christos Zoulas 2023-05-31 13:00:35 -04:00
  • 6d4aa33753 Extract the calculation of psset heap assignment for an hpdata into a common function Kevin Svetlitski 2023-05-27 14:21:11 -07:00
  • c1d3ad4674 Prune je_malloc_default and do_rallocx in jeprof Arne Welzel 2023-05-24 21:07:49 +02:00
  • d59e30cbc9 Rename fallback_impl to fallbackNewImpl and prune in jeprof Arne Welzel 2023-05-24 14:13:28 +02:00
  • d577e9b588 Explicitly cast to unsigned for MALLOCX_ARENA and _TCACHE defines. Qi Wang 2023-05-17 11:54:56 -07:00
  • a2259f9fa6 Fix the include path of "jemalloc_internal_overrides.h". Qi Wang 2023-05-25 14:22:37 -07:00
  • 9c32689e57 Fix bug where hpa_shard was not being destroyed Kevin Svetlitski 2023-05-18 10:13:59 -07:00
  • 4e6f1e9208 Allow overriding LG_PAGE Kevin Svetlitski 2023-05-15 10:39:15 -07:00
  • 3e2ba7a651 Remove dead stores detected by static analysis Kevin Svetlitski 2023-04-26 14:10:41 -07:00
  • 0288126d9c Fix possible NULL pointer dereference from mallctl("prof.prefix", ...) Kevin Svetlitski 2023-05-11 14:20:30 -07:00
  • d4a2b8bab1 Add the prof_sys_thread_name feature in the prof_recent unit test. Qi Wang 2023-05-10 16:32:51 -07:00
  • 94ace05832 Fix the prof thread_name reference in prof_recent dump. Qi Wang 2023-05-10 13:20:40 -07:00
  • 6ea8a7e928 Add config detection for JEMALLOC_HAVE_PTHREAD_SET_NAME_NP. Qi Wang 2023-05-10 16:20:14 -07:00
  • 5bac384970 If ptr present check if alloc_ctx.edata == NULL auxten 2023-05-03 22:34:30 +08:00
  • 019cccc293 Make arenas_lookup_ctl triable auxten 2023-05-03 13:25:12 +08:00
  • dc0a184f8d Fix possible NULL pointer dereference in VERIFY_READ Kevin Svetlitski 2023-05-08 18:18:39 -07:00
  • 12311fe6c3 Fix segfault in extent_try_coalesce_impl Kevin Svetlitski 2023-05-09 09:37:01 -07:00
  • 70344a2d38 Make eligible functions static Kevin Svetlitski 2023-05-08 12:37:18 -07:00
  • 6841110bd6 Make edata_cmp_summary_comp 30% faster Kevin Svetlitski 2023-05-01 11:49:35 -07:00
  • f2b28906e6 Some nits in cache_bin.h Amaury Séchet 2023-04-20 22:38:28 +00:00
  • fc680128e0 Remove errant assert in arena_extent_alloc_large Kevin Svetlitski 2023-04-21 10:49:18 -07:00
  • 521970fb2e Check for equality instead of assigning in asserts in hpa_from_pai. Eric Mueller 2023-04-17 18:59:25 -07:00
  • 5f64ad60cd Remove locked flag set in malloc_mutex_trylock guangli-dai 2023-01-18 15:43:43 -08:00
  • 434a68e221 Disallow decay during reentrancy. Qi Wang 2023-03-30 19:02:24 -07:00
  • e62aa478c7 Rearrange the bools in prof_tdata_t to save some bytes. Qi Wang 2023-03-28 20:09:41 -07:00
  • ce0b7ab6c8 Inline the storage for thread name in prof_tdata_t. Qi Wang 2023-03-28 18:02:34 -07:00
  • 6cab460a45 Add a multithreaded test for prof_sys_thread_name. Qi Wang 2023-03-28 23:12:55 -07:00
  • 5266152d79 Simplify the logic in ph_remove Amaury Séchet 2023-03-03 12:35:45 +00:00
  • be6da4f663 Do not maintain root->prev in ph_remove. Amaury Séchet 2023-03-03 12:08:51 +00:00
  • 543e2d61e6 Simplify the logic in ph_insert Amaury Séchet 2023-03-02 23:32:42 +00:00
  • 31e01a98f1 Fix the rdtscp detection bug and add prefix for the macro. guangli-dai 2022-12-14 17:23:41 -08:00
  • 8b64be3441 Explicit arena assignment in test_tcache_max. Qi Wang 2023-03-21 14:12:12 -07:00
  • 8e7353a19b Explicit arena assignment in test_thread_idle. Qi Wang 2023-03-21 14:02:30 -07:00
  • 45249cf5a9 Fix exception specification error for hosts using musl libc Marvin Schmidt 2022-09-27 07:00:13 +02:00
  • aba1645f2d configure: Handle *-linux-musl* hosts properly Marvin Schmidt 2022-09-27 07:03:14 +02:00
  • d503d72129 Add the missing descriptions in AC_DEFINE Qi Wang 2023-03-09 11:26:07 -08:00
  • 71bc1a3d91 Avoid assuming the arena id in test when percpu_arena is used. Qi Wang 2023-03-10 13:15:59 -08:00
  • f743690739 Remove unused mutex from hpa_central Amaury Séchet 2023-03-10 09:12:15 +00:00
  • 4edea8eb8e switch to https Chris Seymour 2023-02-25 14:52:22 +00:00
  • 09e4b38fb1 Use asm volatile during benchmarks. guangli-dai 2022-12-15 10:54:33 -08:00
  • e8b28908de [MSVC] support for Visual Studio 2019 and 2022 Fernando Pelliccioni 2022-09-23 11:34:05 -03:00
  • 4422f88d17 Makefile.in: link with g++ when cxx enabled barracuda156 2022-10-15 18:04:24 +08:00
  • c7805f1eb5 Add a header in HPA stats for the nonfull slabs. Qi Wang 2023-02-15 17:28:58 -08:00
  • b6125120ac Add an explicit name to the dedicated oversize arena. Qi Wang 2023-02-13 17:43:12 -08:00
  • 97b313c7d4 More conservative setting for /test/unit/background_thread_enable. Qi Wang 2022-12-15 14:36:04 -08:00
  • 5fd55837bb Fix thread_name updating for heap profiling. Qi Wang 2023-02-10 15:28:22 -08:00
  • 8580c65f81 Implement prof sample hooks "experimental.hooks.prof_sample(_free)". Qi Wang 2022-11-02 15:17:16 -07:00
  • a74acb57e8 Fix dividing 0 error in stress/cpp/microbench guangli-dai 2022-12-01 17:31:08 -08:00
  • e8f9f13811 Inline free and sdallocx into operator delete Guangli Dai 2022-09-19 17:05:55 -07:00
  • 06374d2a6a Benchmark operator delete guangli-dai 2022-11-03 16:55:15 -07:00
  • 14ad8205bf Update the ratio display in benchmark guangli-dai 2022-11-03 18:27:03 -07:00
  • 481bbfc990 Add a configure option --enable-force-getenv. Qi Wang 2022-11-02 16:09:06 -07:00
  • 143e9c4a2f Enable fast thread locals for dealloc-only threads. Qi Wang 2022-10-21 15:10:48 -07:00
  • be65438f20 jemalloc_internal_types.h: Use alloca if __STDC_NO_VLA__ is defined Paul Smith 2022-10-14 14:33:08 -04:00
  • 1897f185d2 Fix safety_check segfault in double free test divanorama 2022-09-26 09:46:34 +02:00
  • b04e7666f2 update PROFILING_INTERNALS.md Jordan Rome 2022-09-29 10:07:47 -04:00
  • 4c95c953e2 fix build for non linux/BSD platforms. David Carlier 2022-10-01 20:35:29 +01:00
  • 3de0c24859 Disable builtin malloc in tests divanorama 2022-09-29 23:35:59 +02:00
  • c0c9783ec9 Add vcpkg installation instructions Lily Wang 2022-09-09 02:04:23 -07:00
  • c9ac1f4701 Fix a bug in C++ integration test. Guangli Dai 2022-09-16 11:39:34 -07:00
  • ba19d2cb78 Add arena-level name. Guangli Dai 2022-09-01 16:42:56 -07:00
  • a0734fd6ee Making jemalloc max stack depth a runtime option Guangli Dai 2022-08-19 12:17:10 -07:00
  • 56ddbea270 error: implicit declaration of function 'pthread_create_fptr_init' is invalid in C99 Abael He 2022-08-25 11:12:08 +08:00