mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #18420 - servo:toml, r=nox,emilio
Get rustc commit hash from channel manifest … added in https://github.com/rust-lang/rust/pull/44218, instead of using the GitHub API. Also upgrade to rustc 1.22.0-nightly (d93036a04 2017-09-07). <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18420) <!-- Reviewable:end -->
This commit is contained in:
commit
af077a7222
5 changed files with 15 additions and 7 deletions
|
@ -121,6 +121,12 @@ impl<E: TElement> StyleBloom<E> {
|
|||
/// Create an empty `StyleBloom`. Because StyleBloom acquires the thread-
|
||||
/// local filter buffer, creating multiple live StyleBloom instances at
|
||||
/// the same time on the same thread will panic.
|
||||
|
||||
// Forced out of line to limit stack frame sizes after extra inlining from
|
||||
// https://github.com/rust-lang/rust/pull/43931
|
||||
//
|
||||
// See https://github.com/servo/servo/pull/18420#issuecomment-328769322
|
||||
#[inline(never)]
|
||||
pub fn new() -> Self {
|
||||
let bloom_arc = BLOOM_KEY.with(|b| b.clone());
|
||||
let filter = OwningHandle::new_with_fn(bloom_arc, |x| unsafe { x.as_ref() }.unwrap().borrow_mut());
|
||||
|
|
|
@ -478,6 +478,12 @@ impl<E: TElement> StyleSharingCache<E> {
|
|||
}
|
||||
|
||||
/// Create a new style sharing candidate cache.
|
||||
|
||||
// Forced out of line to limit stack frame sizes after extra inlining from
|
||||
// https://github.com/rust-lang/rust/pull/43931
|
||||
//
|
||||
// See https://github.com/servo/servo/pull/18420#issuecomment-328769322
|
||||
#[inline(never)]
|
||||
pub fn new() -> Self {
|
||||
assert_eq!(mem::size_of::<SharingCache<E>>(), mem::size_of::<TypelessSharingCache>());
|
||||
assert_eq!(mem::align_of::<SharingCache<E>>(), mem::align_of::<TypelessSharingCache>());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue