server-skynet-source-3rd-je.../src
Azat Khuzhin cb578bbe01 Fix possible "nmalloc >= ndalloc" assertion
In arena_stats_merge() first nmalloc was read, and after ndalloc.

However with this order, it is possible for some thread to incement
ndalloc in between, and then nmalloc < ndalloc, and assertion will fail,
like again found by ClickHouse CI [1] (even after #2234).

  [1]: https://github.com/ClickHouse/ClickHouse/issues/31531

Swap the order to avoid possible assertion.

Cc: @interwq
Follow-up for: #2234
2022-07-11 15:27:51 -07:00
..
arena.c Fix possible "nmalloc >= ndalloc" assertion 2022-07-11 15:27:51 -07:00
background_thread.c CPU affinity on BSD platforms support. 2021-09-28 11:40:21 -07:00
base.c Fix base_ehooks_get_for_metadata 2021-12-20 15:37:53 -08:00
bin_info.c Fix shadowed variable usage. 2021-12-23 10:55:08 -08:00
bin.c Edata: split up different list linkage uses. 2020-07-08 13:20:59 -07:00
bitmap.c Remove beginning define in source files 2020-06-19 12:15:44 -07:00
buf_writer.c Remove beginning define in source files 2020-06-19 12:15:44 -07:00
cache_bin.c Fix failed assertion due to racy memory access 2022-02-17 09:35:52 -08:00
ckh.c Fix shadowed variable usage. 2021-12-23 10:55:08 -08:00
counter.c Remove beginning define in source files 2020-06-19 12:15:44 -07:00
ctl.c Avoid abort() in test/integration/cpp/infallible_new_true. 2022-04-25 11:29:32 -07:00
decay.c Wake up background threads on demand 2021-09-17 16:56:41 -07:00
div.c Add the div module, which allows fast division by dynamic values. 2017-12-21 14:25:43 -08:00
ecache.c San: Rename 'guard' to 'san' 2021-12-15 10:39:17 -08:00
edata_cache.c edata_cache: Allow unbounded fast caching. 2021-07-26 15:14:37 -07:00
edata.c Pairing heap: inline functions instead of macros. 2021-08-02 15:02:49 -07:00
ehooks.c Implement guard pages. 2021-09-26 16:30:15 -07:00
emap.c San: Bump alloc frequently reused guarded allocations 2021-12-15 10:39:17 -08:00
eset.c Eset: Cache summary information for heap edatas. 2021-08-02 15:02:49 -07:00
exp_grow.c Rename geom_grow -> exp_grow. 2020-11-13 13:42:33 -08:00
extent_dss.c Mark head state during dss alloc. 2021-03-12 19:17:25 -08:00
extent_mmap.c Remove beginning define in source files 2020-06-19 12:15:44 -07:00
extent.c Fix the extent state checking on the merge error path. 2022-01-11 16:58:47 -08:00
fxp.c Add fxp: A fixed-point math library. 2020-12-04 23:48:19 -08:00
hook.c TSD: Move in some of the tcache fields. 2020-04-14 15:20:19 -07:00
hpa_hooks.c Fix the time-since computation in HPA. 2021-12-21 23:37:22 -08:00
hpa.c Fix the time-since computation in HPA. 2021-12-21 23:37:22 -08:00
hpdata.c Pairing heap: inline functions instead of macros. 2021-08-02 15:02:49 -07:00
inspect.c Arena: share bin offsets in a global. 2021-02-04 14:10:43 -08:00
jemalloc_cpp.cpp Improve the failure message upon opt_experimental_infallible_new. 2022-05-17 16:07:40 -07:00
jemalloc.c Implement pvalloc replacement 2022-05-18 17:01:09 -07:00
large.c Initialize deferred_work_generated 2021-10-07 11:50:38 -07:00
log.c Logging: allow logging with empty varargs. 2017-07-22 09:38:19 -07:00
malloc_io.c Add JEMALLOC_COLD, and mark some functions cold. 2021-01-04 14:55:49 -08:00
mutex.c Mutex: Tweak internal spin count. 2021-08-05 14:33:16 -07:00
nstime.c Add nstime_ns_since which obtains the duration since the input time. 2021-12-21 23:37:22 -08:00
pa_extra.c HPA: Manage whole hugepages at a time. 2020-12-07 06:21:08 -08:00
pa.c Fix shadowed variable usage. 2021-12-23 10:55:08 -08:00
pac.c Fix shadowed variable usage. 2021-12-23 10:55:08 -08:00
pages.c New configure option '--enable-pageid' for Linux 2022-06-09 18:54:08 -07:00
pai.c Pass 'frequent_reuse' hint to PAI 2021-12-15 10:39:17 -08:00
peak_event.c Add experimental.thread.activity_callback. 2020-11-05 12:33:25 -08:00
prof_data.c Add prof_leak_error option 2022-01-21 16:24:20 -08:00
prof_log.c Delay the atexit call to prof_log_start(). 2021-09-29 13:35:50 -07:00
prof_recent.c Add JEMALLOC_COLD, and mark some functions cold. 2021-01-04 14:55:49 -08:00
prof_stats.c Track per size class internal fragmentation 2021-01-07 20:39:49 -08:00
prof_sys.c Fix shadowed variable usage. 2021-12-23 10:55:08 -08:00
prof.c Initialize prof_leak during prof init. 2022-01-26 17:17:48 -08:00
psset.c psset: Purge empty slabs first. 2021-07-12 17:59:18 -07:00
rtree.c Remove beginning define in source files 2020-06-19 12:15:44 -07:00
safety_check.c Avoid abort() in test/integration/cpp/infallible_new_true. 2022-04-25 11:29:32 -07:00
san_bump.c San: Create a function for committing and zeroing 2021-12-15 10:39:17 -08:00
san.c Implement use-after-free detection using junk and stash. 2021-12-29 14:44:43 -08:00
sc.c Add comments and use meaningful vars in sz_psz2ind. 2022-03-24 16:56:59 -07:00
sec.c Do not disable SEC by default for 64k pages platforms 2022-03-24 22:05:35 -07:00
stats.c Add prof_leak_error option 2022-01-21 16:24:20 -08:00
sz.c Implement opt.cache_oblivious. 2021-02-11 11:32:01 -08:00
tcache.c Fix two conversion warnings in tcache. 2022-01-04 13:55:06 -08:00
test_hooks.c Rename hooks module to test_hooks. 2018-05-18 11:43:03 -07:00
thread_event.c Fix the initialization of last_event in thread event init. 2021-11-16 10:28:00 -08:00
ticker.c Add ticker_geom_t. 2021-02-04 14:10:43 -08:00
ticker.py Add ticker_geom_t. 2021-02-04 14:10:43 -08:00
tsd.c fix some typos 2022-04-25 11:29:00 -07:00
witness.c Remove beginning define in source files 2020-06-19 12:15:44 -07:00
zone.c Fix deadlock in multithreaded fork in OS X. 2017-07-10 18:17:12 -07:00