<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/jemalloc.git/src, branch master</title>
<subtitle>github.com: jemalloc/jemalloc
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/jemalloc.git/'/>
<entry>
<title>Make the default option of zero realloc match the system allocator.</title>
<updated>2022-05-06T00:11:18+00:00</updated>
<author>
<name>Qi Wang</name>
<email>interwq@gwu.edu</email>
</author>
<published>2022-05-03T22:41:43+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/jemalloc.git/commit/?id=8cb814629acc7c7a8c1008f47e35d3f40129f5fa'/>
<id>8cb814629acc7c7a8c1008f47e35d3f40129f5fa</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid abort() in test/integration/cpp/infallible_new_true.</title>
<updated>2022-04-25T18:29:32+00:00</updated>
<author>
<name>Qi Wang</name>
<email>interwq@gwu.edu</email>
</author>
<published>2022-04-21T23:31:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/jemalloc.git/commit/?id=391bad4b95839e2c690879ca62b1e904a49a78df'/>
<id>391bad4b95839e2c690879ca62b1e904a49a78df</id>
<content type='text'>
Allow setting the safety check abort hook through mallctl, which avoids abort()
and core dumps.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow setting the safety check abort hook through mallctl, which avoids abort()
and core dumps.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix some typos</title>
<updated>2022-04-25T18:29:00+00:00</updated>
<author>
<name>cuishuang</name>
<email>imcusg@gmail.com</email>
</author>
<published>2022-04-24T15:32:44+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/jemalloc.git/commit/?id=9a242f16d9e4a6afcd53782a9427471f6d144f1f'/>
<id>9a242f16d9e4a6afcd53782a9427471f6d144f1f</id>
<content type='text'>
Signed-off-by: cuishuang &lt;imcusg@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: cuishuang &lt;imcusg@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename zero_realloc option "strict" to "alloc".</title>
<updated>2022-04-20T17:27:25+00:00</updated>
<author>
<name>Qi Wang</name>
<email>interwq@gwu.edu</email>
</author>
<published>2022-04-15T19:17:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/jemalloc.git/commit/?id=0e29ad4efa3d1c5ae9cd01afd32812dd18875200'/>
<id>0e29ad4efa3d1c5ae9cd01afd32812dd18875200</id>
<content type='text'>
With realloc(ptr, 0) being UB per C23, the option name "strict" makes less sense
now.  Rename to "alloc" which describes the behavior.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With realloc(ptr, 0) being UB per C23, the option name "strict" makes less sense
now.  Rename to "alloc" which describes the behavior.
</pre>
</div>
</content>
</entry>
<entry>
<title>Do not disable SEC by default for 64k pages platforms</title>
<updated>2022-03-25T05:05:35+00:00</updated>
<author>
<name>Alex Lapenkou</name>
<email>lapenkov@fb.com</email>
</author>
<published>2022-03-25T01:07:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/jemalloc.git/commit/?id=a93931537e3845c8baca6965aded9a9683fa1481'/>
<id>a93931537e3845c8baca6965aded9a9683fa1481</id>
<content type='text'>
Default SEC max_alloc option value was 32k, disabling SEC for platforms with
lg-page=16. This change enables SEC for all platforms, making minimum max_alloc
value equal to PAGE.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Default SEC max_alloc option value was 32k, disabling SEC for platforms with
lg-page=16. This change enables SEC for all platforms, making minimum max_alloc
value equal to PAGE.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add comments and use meaningful vars in sz_psz2ind.</title>
<updated>2022-03-24T23:56:59+00:00</updated>
<author>
<name>Charles</name>
<email>a837940593@gmail.com</email>
</author>
<published>2022-02-01T12:26:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/jemalloc.git/commit/?id=eaaa368bab472a78e99a25c1641d24ad3c2283ad'/>
<id>eaaa368bab472a78e99a25c1641d24ad3c2283ad</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement PAGE_FLOOR macro</title>
<updated>2022-03-23T00:45:55+00:00</updated>
<author>
<name>Alex Lapenkou</name>
<email>lapenkov@fb.com</email>
</author>
<published>2022-03-22T21:33:04+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/jemalloc.git/commit/?id=5bf03f8ce5802b90a16b595e962fe4f07ce7fe93'/>
<id>5bf03f8ce5802b90a16b595e962fe4f07ce7fe93</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix size class calculation for sec</title>
<updated>2022-03-23T00:45:55+00:00</updated>
<author>
<name>Alex Lapenkou</name>
<email>lapenkov@fb.com</email>
</author>
<published>2022-03-15T03:17:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/jemalloc.git/commit/?id=52631c90f664ded0a5106a7d5fd906d46a7c1f81'/>
<id>52631c90f664ded0a5106a7d5fd906d46a7c1f81</id>
<content type='text'>
Due to a bug in sec initialization, the number of cached size classes
was equal to 198. The bug caused the creation of more than a hundred of
unused bins, although it didn't affect the caching logic.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Due to a bug in sec initialization, the number of cached size classes
was equal to 198. The bug caused the creation of more than a hundred of
unused bins, although it didn't affect the caching logic.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix FreeBSD system jemalloc TSD cleanup</title>
<updated>2022-03-02T18:10:27+00:00</updated>
<author>
<name>Alex Lapenkov</name>
<email>lapenkov.a@yandex.ru</email>
</author>
<published>2022-01-22T18:14:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/jemalloc.git/commit/?id=eb65d1b07830b285bf7ac7678e964f080cd3916a'/>
<id>eb65d1b07830b285bf7ac7678e964f080cd3916a</id>
<content type='text'>
Before this commit, in case FreeBSD libc jemalloc was overridden by another
jemalloc, proper thread shutdown callback was involved only for the overriding
jemalloc. A call to _malloc_thread_cleanup from libthr would be redirected to
user jemalloc, leaving data about dead threads hanging in system jemalloc. This
change tackles the issue in two ways. First, for current and old system
jemallocs, which we can not modify, the overriding jemalloc would locate and
invoke system cleanup routine. For upcoming jemalloc integrations, the cleanup
registering function will also be redirected to user jemalloc, which means that
system jemalloc's cleanup routine will be registered in user's jemalloc and a
single call to _malloc_thread_cleanup will be sufficient to invoke both
callbacks.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before this commit, in case FreeBSD libc jemalloc was overridden by another
jemalloc, proper thread shutdown callback was involved only for the overriding
jemalloc. A call to _malloc_thread_cleanup from libthr would be redirected to
user jemalloc, leaving data about dead threads hanging in system jemalloc. This
change tackles the issue in two ways. First, for current and old system
jemallocs, which we can not modify, the overriding jemalloc would locate and
invoke system cleanup routine. For upcoming jemalloc integrations, the cleanup
registering function will also be redirected to user jemalloc, which means that
system jemalloc's cleanup routine will be registered in user's jemalloc and a
single call to _malloc_thread_cleanup will be sufficient to invoke both
callbacks.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix possible "nmalloc &gt;= ndalloc" assertion.</title>
<updated>2022-03-01T20:28:28+00:00</updated>
<author>
<name>Azat Khuzhin</name>
<email>a3at.mail@gmail.com</email>
</author>
<published>2022-03-01T15:31:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/jemalloc.git/commit/?id=78b58379c854a639df79beb3289351129d863d4b'/>
<id>78b58379c854a639df79beb3289351129d863d4b</id>
<content type='text'>
It is possible that ndalloc will be updated before nmalloc, in
arena_large_ralloc_stats_update(), fix this by reorder those calls.

It was found by ClickHouse CI, that periodically hits this assertion [1].

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

That issue contains lots of examples, with core dump and some gdb output [2].

  [2]: https://s3.amazonaws.com/clickhouse-test-reports/34951/96390a9263cb5af3d6e42a84988239c9ae87ce32/stress_test__debug__actions_.html

Here you can find binaries for that particular report [3] you need
clickhouse debug build [4].

  [3]: https://s3.amazonaws.com/clickhouse-builds/34951/96390a9263cb5af3d6e42a84988239c9ae87ce32/clickhouse_build_check_(actions)/report.html
  [4]: https://s3.amazonaws.com/clickhouse-builds/34951/96390a9263cb5af3d6e42a84988239c9ae87ce32/package_debug/clickhouse

Brief info from that report:

    2 0x000000002ad6dbfe in arena_stats_merge (tsdn=0x7f2399abdd20, arena=0x7f241ce01080, nthreads=0x7f24e4360958, dss=0x7f24e4360960, dirty_decay_ms=0x7f24e4360968, muzzy_decay_ms=0x7f24e4360970, nactive=0x7f24e4360978, ndirty=0x7f24e43
    e4360988, astats=0x7f24e4360998, bstats=0x7f24e4363310, lstats=0x7f24e4364990, estats=0x7f24e4366e50, hpastats=0x7f24e43693a0, secstats=0x7f24e436a020) at ../contrib/jemalloc/src/arena.c:138
            ndalloc = 226
            nflush = 0
            curlextents = 0
            nmalloc = 225
            nrequests = 0

Here you can see that they differs only by 1.

Signed-off-by: Azat Khuzhin &lt;a.khuzhin@semrush.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It is possible that ndalloc will be updated before nmalloc, in
arena_large_ralloc_stats_update(), fix this by reorder those calls.

It was found by ClickHouse CI, that periodically hits this assertion [1].

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

That issue contains lots of examples, with core dump and some gdb output [2].

  [2]: https://s3.amazonaws.com/clickhouse-test-reports/34951/96390a9263cb5af3d6e42a84988239c9ae87ce32/stress_test__debug__actions_.html

Here you can find binaries for that particular report [3] you need
clickhouse debug build [4].

  [3]: https://s3.amazonaws.com/clickhouse-builds/34951/96390a9263cb5af3d6e42a84988239c9ae87ce32/clickhouse_build_check_(actions)/report.html
  [4]: https://s3.amazonaws.com/clickhouse-builds/34951/96390a9263cb5af3d6e42a84988239c9ae87ce32/package_debug/clickhouse

Brief info from that report:

    2 0x000000002ad6dbfe in arena_stats_merge (tsdn=0x7f2399abdd20, arena=0x7f241ce01080, nthreads=0x7f24e4360958, dss=0x7f24e4360960, dirty_decay_ms=0x7f24e4360968, muzzy_decay_ms=0x7f24e4360970, nactive=0x7f24e4360978, ndirty=0x7f24e43
    e4360988, astats=0x7f24e4360998, bstats=0x7f24e4363310, lstats=0x7f24e4364990, estats=0x7f24e4366e50, hpastats=0x7f24e43693a0, secstats=0x7f24e436a020) at ../contrib/jemalloc/src/arena.c:138
            ndalloc = 226
            nflush = 0
            curlextents = 0
            nmalloc = 225
            nrequests = 0

Here you can see that they differs only by 1.

Signed-off-by: Azat Khuzhin &lt;a.khuzhin@semrush.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
