mailing list of musl libc
 help / color / mirror / Atom feed
From: Zhao Zhengyu <zhaozhengyu0@gmail.com>
To: musl@lists.openwall.com
Subject: [musl] When to reclaim pages in __bin_chunk?
Date: Fri, 31 Jul 2020 08:17:02 +0800
Message-ID: <CAJDn_ssWnahkjtx56rEL12iXYxTjO_0UXyX1BZ3krRL7J9yhZw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 252 bytes --]

Hello,

When chunks are merged, we use "(curr_size + pre_size) ^ pre_size >
pre_size" to decide whether to reclaim. I think this may be something
related to performance, but I can’t prove it. I want to know the
reason.

Thank you!

Zhengyu

[-- Attachment #2: Type: text/html, Size: 698 bytes --]

             reply	other threads:[~2020-07-31  8:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-31  0:17 Zhao Zhengyu [this message]
2020-07-31 17:22 ` Markus Wichmann
2020-07-31 19:23   ` Rich Felker
2020-08-02 16:22     ` Zhao Zhengyu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJDn_ssWnahkjtx56rEL12iXYxTjO_0UXyX1BZ3krRL7J9yhZw@mail.gmail.com \
    --to=zhaozhengyu0@gmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

mailing list of musl libc

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/musl

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 musl musl/ http://inbox.vuxu.org/musl \
		musl@inbox.vuxu.org
	public-inbox-index musl

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.musl


code repositories for the project(s) associated with this inbox:

	https://git.vuxu.org/mirror/musl/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git