senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Masaki Hara (qnighy@qnmd.info)'s status on Sunday, 02-Sep-2018 19:42:59 JST Masaki Hara Masaki Hara
    • せのお (妹尾 賢)

    https://internals.rust-lang.org/t/proposal-drop-with-panic-argument/8331
    Mutexなどポイズニングをする型は「パニック中かどうか」をdropのなかで判定する必要があるが、そのためにいちいちスレッドローカルストレージにアクセスするのは好ましくない。そこで、dropの引数としてpanic中かどうかを渡すようにしたらよいのではと提案している人がいる

    In conversation Sunday, 02-Sep-2018 19:42:59 JST from qnmd.info permalink Repeated by 8vit

    Attachments

    1. Domain not in remote thumbnail source whitelist: internals.rust-lang.org
      Proposal: drop with panic argument
      from Rust Internals
      Currently, in order to detect in a Drop impl whether the program is currently panicking, the drop function must access thread-local storage, which is expensive. This slows down certain key primitives such as MutexGuard. I propose that we add a new method to Drop that takes a bool argument indicating whether the function is being called due to unwinding. It would look something like this: trait Drop { fn drop(&mut self); fn drop_unwinding(&mut self, unwinding: bool) { Drop::dro...

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.