From: Jacob Lifshay <programmerjake@gmail.com>
To: Libre-RISCV General Development <libre-riscv-dev@lists.libre-riscv.org>
Subject: [libre-riscv-dev] spinlocks considered harmful
Date: Fri, 8 May 2020 16:20:27 -0700
Message-ID: <CAC2bXD5L6ZK-Vmb5b2C8X2=BcecybqFkFWjpNWcuMB=utuuNXw@mail.gmail.com> (raw)
I ended up reporting a bug to PyO3 to not use spinlocks, the explanatory
blog post I liked to is quite informative and I'd consider it recommended
reading for anyone writing multi-threaded programs and/or using atomics:
https://matklad.github.io/2020/01/02/spinlocks-considered-harmful.html
Bug report:
https://github.com/PyO3/pyo3/issues/916
Jacob
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
next reply index
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-08 23:20 Jacob Lifshay [this message]
2020-05-09 7:51 ` Luke Kenneth Casson Leighton
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='CAC2bXD5L6ZK-Vmb5b2C8X2=BcecybqFkFWjpNWcuMB=utuuNXw@mail.gmail.com' \
--to=programmerjake@gmail.com \
--cc=libre-riscv-dev@lists.libre-riscv.org \
/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
Libre RISC-V Mailing list Archives (accessible via public-inbox)
Archives are clonable: git clone --mirror https://inbox.libre-soc.org/libre-riscv-dev
Example config snippet for mirrors
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git