<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/sys/wasm, branch 1.51.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.51.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.51.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2021-01-29T19:25:23+00:00</updated>
<entry>
<title>sys: use `process::abort()` instead of `arch::wasm32::unreachable()`</title>
<updated>2021-01-29T19:25:23+00:00</updated>
<author>
<name>Miguel Ojeda</name>
<email>ojeda@kernel.org</email>
</author>
<published>2021-01-29T19:09:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c7f4154c6a839d31abcbb74be4c9b2404ae3a2ec'/>
<id>urn:sha1:c7f4154c6a839d31abcbb74be4c9b2404ae3a2ec</id>
<content type='text'>
Rationale:

  - `abort()` lowers to `wasm32::unreachable()` anyway.
  - `abort()` isn't `unsafe`.
  - `abort()` matches the comment better.
  - `abort()` avoids confusion by future readers (e.g.
    https://github.com/rust-lang/rust/pull/81527): the naming of wasm's
    `unreachable' instruction is a bit unfortunate because it is not
    related to the `unreachable()` intrinsic (intended to trigger UB).

Codegen is likely to be different since `unreachable()` is `inline`
while `abort()` is `cold`. Since it doesn't look like we are expecting
here to trigger this case, the latter seems better anyway.

Signed-off-by: Miguel Ojeda &lt;ojeda@kernel.org&gt;
</content>
</entry>
<entry>
<title>Rollup merge of #78138 - fortanix:raoul/dlmalloc0.2, r=Mark-Simulacrum</title>
<updated>2020-11-17T09:06:16+00:00</updated>
<author>
<name>Mara Bos</name>
<email>m-ou.se@m-ou.se</email>
</author>
<published>2020-11-17T09:06:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d6da5254a0cc6e896685fa32e2a4c0979933dda5'/>
<id>urn:sha1:d6da5254a0cc6e896685fa32e2a4c0979933dda5</id>
<content type='text'>
Upgrade dlmalloc to version 0.2

In preparation of adding dynamic memory management support for SGXv2-enabled platforms, the dlmalloc crate has been refactored. More specifically, support has been added to implement platform specification outside of the dlmalloc crate. (see https://github.com/alexcrichton/dlmalloc-rs/pull/15)

This PR upgrades dlmalloc to version 0.2 for the `wasm` and `sgx` targets.

As the dlmalloc changes have received a positive review, but have not been merged yet, this PR contains a commit to prevent tidy from aborting CI prematurely.

cc: `@jethrogb`
</content>
</entry>
<entry>
<title>Upgrading dlmalloc to 0.2.1</title>
<updated>2020-11-12T20:40:52+00:00</updated>
<author>
<name>Raoul Strackx</name>
<email>raoul.strackx@fortanix.com</email>
</author>
<published>2020-11-09T17:20:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=292f15ce87b52a8dd4cfbeca8c050004fdec2358'/>
<id>urn:sha1:292f15ce87b52a8dd4cfbeca8c050004fdec2358</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix an intrinsic invocation on threaded wasm</title>
<updated>2020-11-12T15:23:00+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2020-11-12T15:23:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=010265a4393176bdc62fc8f3e06ef4bf5b42a6da'/>
<id>urn:sha1:010265a4393176bdc62fc8f3e06ef4bf5b42a6da</id>
<content type='text'>
This looks like it was forgotten to get updated in #74482 and wasm with
threads isn't built on CI so we didn't catch this by accident.
</content>
</entry>
<entry>
<title>Remove unnecessary unsafe block from condvar_atomics &amp; mutex_atomics</title>
<updated>2020-10-24T09:22:18+00:00</updated>
<author>
<name>chansuke</name>
<email>chansuke@georepublic.de</email>
</author>
<published>2020-10-24T09:22:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d37b8cf729187e5dcabb3650031eb806d1f79770'/>
<id>urn:sha1:d37b8cf729187e5dcabb3650031eb806d1f79770</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix unsafe operation of wasm32::memory_atomic_notify</title>
<updated>2020-10-24T09:14:17+00:00</updated>
<author>
<name>chansuke</name>
<email>chansuke@georepublic.de</email>
</author>
<published>2020-10-24T09:14:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d147f78e367386bf63ccb03d453e151e37cfdd81'/>
<id>urn:sha1:d147f78e367386bf63ccb03d453e151e37cfdd81</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add documents for DLMALLOC</title>
<updated>2020-10-24T08:59:58+00:00</updated>
<author>
<name>chansuke</name>
<email>chansuke@georepublic.de</email>
</author>
<published>2020-10-24T08:59:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=de87ae79610925502f45ec07cf24bac51e037ed1'/>
<id>urn:sha1:de87ae79610925502f45ec07cf24bac51e037ed1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add some description for (malloc/calloc/free/realloc)</title>
<updated>2020-10-24T02:50:09+00:00</updated>
<author>
<name>chansuke</name>
<email>chansuke@georepublic.de</email>
</author>
<published>2020-10-20T23:15:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=eed45107da8da6293d9cecc302ad3b9870848b51'/>
<id>urn:sha1:eed45107da8da6293d9cecc302ad3b9870848b51</id>
<content type='text'>
</content>
</entry>
<entry>
<title>`#[deny(unsafe_op_in_unsafe_fn)]` in sys/wasm</title>
<updated>2020-10-24T02:50:09+00:00</updated>
<author>
<name>chansuke</name>
<email>chansuke@georepublic.de</email>
</author>
<published>2020-07-18T12:59:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d413bb6f5716261f2740eb67540df1da1469ce12'/>
<id>urn:sha1:d413bb6f5716261f2740eb67540df1da1469ce12</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #77619 - fusion-engineering-forks:wasm-parker, r=dtolnay</title>
<updated>2020-10-16T00:10:11+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2020-10-16T00:10:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dcf972a2be2e122ee3e7cc86bbf4ff6751055337'/>
<id>urn:sha1:dcf972a2be2e122ee3e7cc86bbf4ff6751055337</id>
<content type='text'>
Use futex-based thread-parker for Wasm32.

This uses the existing `sys_common/thread_parker/futex.rs` futex-based thread parker (that was already used for Linux) for wasm32 as well (if the wasm32 atomics target feature is enabled, which is not the case by default).

Wasm32 provides the basic futex operations as instructions: https://webassembly.github.io/threads/syntax/instructions.html

These are now exposed from `sys::futex::{futex_wait, futex_wake}`, just like on Linux. So, `thread_parker/futex.rs` stays completely unmodified.
</content>
</entry>
</feed>
