<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/liballoc/arc.rs, branch perf-tmp</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2018-06-29T12:01:33+00:00</updated>
<entry>
<title>Rename alloc::arc to alloc::sync, to match std::sync</title>
<updated>2018-06-29T12:01:33+00:00</updated>
<author>
<name>Simon Sapin</name>
<email>simon.sapin@exyr.org</email>
</author>
<published>2018-06-15T02:07:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c7638edf5293dd471d951e64671d60febd0b628c'/>
<id>urn:sha1:c7638edf5293dd471d951e64671d60febd0b628c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Arc: remove unused allocation from Weak::new()</title>
<updated>2018-06-28T18:49:47+00:00</updated>
<author>
<name>Sean McArthur</name>
<email>sean@seanmonstar.com</email>
</author>
<published>2018-06-28T18:49:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=24ce2597823640726aa302a12a4de787a1fe1f05'/>
<id>urn:sha1:24ce2597823640726aa302a12a4de787a1fe1f05</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename OOM to allocation error</title>
<updated>2018-06-18T19:41:24+00:00</updated>
<author>
<name>Simon Sapin</name>
<email>simon.sapin@exyr.org</email>
</author>
<published>2018-06-13T22:32:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2b789bd0570983e82533f9ed30c80312ac334694'/>
<id>urn:sha1:2b789bd0570983e82533f9ed30c80312ac334694</id>
<content type='text'>
The acronym is not descriptive unless one has seen it before.

* Rename the `oom` function to `handle_alloc_error`. It was **stabilized in 1.28**, so if we do this at all we need to land it this cycle.
* Rename `set_oom_hook` to `set_alloc_error_hook`
* Rename `take_oom_hook` to `take_alloc_error_hook`

Bikeshed: `alloc` v.s. `allocator`, `error` v.s. `failure`
</content>
</entry>
<entry>
<title>Remove alloc::Opaque and use *mut u8 as pointer type for GlobalAlloc</title>
<updated>2018-06-11T20:47:23+00:00</updated>
<author>
<name>Mike Hommey</name>
<email>mh@glandium.org</email>
</author>
<published>2018-05-31T06:57:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f6ab74b8e7efed01c1045773b6693f23f6ebd93c'/>
<id>urn:sha1:f6ab74b8e7efed01c1045773b6693f23f6ebd93c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update `Arc` and `Rc` to use `NonNull::cast` to cast the inner pointers</title>
<updated>2018-05-31T20:27:08+00:00</updated>
<author>
<name>Jeremy Fitzhardinge</name>
<email>jsgf@fb.com</email>
</author>
<published>2018-05-17T15:25:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0c7bf56d805d981bb003a20a4c6b1f6b29790881'/>
<id>urn:sha1:0c7bf56d805d981bb003a20a4c6b1f6b29790881</id>
<content type='text'>
This avoids an `unsafe` block in each case.
</content>
</entry>
<entry>
<title>Implement `downcast` for `Arc&lt;Any + Send + Sync&gt;`</title>
<updated>2018-05-31T20:27:08+00:00</updated>
<author>
<name>Jeremy Fitzhardinge</name>
<email>jsgf@fb.com</email>
</author>
<published>2018-05-17T15:17:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=37f5cf563c2c039503e8e50e252f2c1b31d69268'/>
<id>urn:sha1:37f5cf563c2c039503e8e50e252f2c1b31d69268</id>
<content type='text'>
We only need to implement it for `Any + Send + Sync` because in practice
that's the only useful combination for `Arc` and `Any`.

Implementation for #44608 under the `rc_downcast` feature.
</content>
</entry>
<entry>
<title>Pass a `Layout` to `oom`</title>
<updated>2018-05-29T20:35:48+00:00</updated>
<author>
<name>Mike Hommey</name>
<email>mh@glandium.org</email>
</author>
<published>2018-05-15T00:56:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0f4ef003ac1691d04f0ce519d1d78696689534aa'/>
<id>urn:sha1:0f4ef003ac1691d04f0ce519d1d78696689534aa</id>
<content type='text'>
As discussed in
https://github.com/rust-lang/rust/issues/49668#issuecomment-384893456
and subsequent, there are use-cases where the OOM handler needs to know
the size of the allocation that failed. The alignment might also be a
cause for allocation failure, so providing it as well can be useful.
</content>
</entry>
<entry>
<title>Auto merge of #50097 - glandium:box_free, r=nikomatsakis</title>
<updated>2018-04-27T12:24:17+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2018-04-27T12:24:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=71d3dac4a86d192c2c80948621859da3b363fa50'/>
<id>urn:sha1:71d3dac4a86d192c2c80948621859da3b363fa50</id>
<content type='text'>
Partial future-proofing for Box&lt;T, A&gt;

In some ways, this is similar to @eddyb's PR #47043 that went stale, but doesn't cover everything. Notably, this still leaves Box internalized as a pointer in places, so practically speaking, only ZSTs can be practically added to the Box type with the changes here (the compiler ICEs otherwise).

The Box type is not changed here, that's left for the future because I want to test that further first, but this puts things in place in a way that hopefully will make things easier.
</content>
</entry>
<entry>
<title>Added missing `.` in docs.</title>
<updated>2018-04-25T12:14:43+00:00</updated>
<author>
<name>Ralf Biedert</name>
<email>rb@xr.io</email>
</author>
<published>2018-04-25T12:14:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1bcb267651c2f4a840e928d9309c240d146a335b'/>
<id>urn:sha1:1bcb267651c2f4a840e928d9309c240d146a335b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Switch box_free to take the destructured contents of Box</title>
<updated>2018-04-25T02:39:07+00:00</updated>
<author>
<name>Mike Hommey</name>
<email>mh@glandium.org</email>
</author>
<published>2018-04-20T01:24:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bd8c177d49c95d94f163e9bb3c3397f38ab72640'/>
<id>urn:sha1:bd8c177d49c95d94f163e9bb3c3397f38ab72640</id>
<content type='text'>
As of now, Box only contains a Unique pointer, so this is the sole
argument to box_free. Consequently, we remove the code supporting
the previous box_free signature. We however keep the old definition
for bootstrapping purpose.
</content>
</entry>
</feed>
