mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
Update changelog
This commit is contained in:
parent
e71c49a17e
commit
e0f08269f8
2 changed files with 4 additions and 0 deletions
|
|
@ -226,6 +226,8 @@ Detailed list of changes
|
|||
|
||||
- scroll-window remote control command: Fix a regression that broke scrolling by pages (:iss:`10253`)
|
||||
|
||||
- Bypass libc malloc for history buffer to avoid libc pool policies causing apparent memory leak (:pull:`10254`)
|
||||
|
||||
0.47.4 [2026-06-15]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,8 @@ add_segment(HistoryBuf *self, index_type num) {
|
|||
const size_t segment_size = cpu_cells_size + gpu_cells_size + SEGMENT_SIZE * sizeof(LineAttrs);
|
||||
if (num > SIZE_MAX / segment_size) fatal("History buffer segment allocation is too large");
|
||||
const size_t mmap_size = num * segment_size;
|
||||
// We use mmap to avoid fragmentation in libc malloc pool, see
|
||||
// https://github.com/kovidgoyal/kitty/pull/10254
|
||||
char *mem = mmap(NULL, mmap_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
|
||||
if (mem == MAP_FAILED) fatal("Out of memory allocating new history buffer segment");
|
||||
char *needs_free = mem;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue