Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Accommodate change of empty vector representation in nightly libstd. #81

Merged
merged 1 commit into from
May 18, 2017

Conversation

jdm
Copy link
Member

@jdm jdm commented May 17, 2017

This change is Reviewable

The empty sentinel value used to be 0x1; now it is the minimum
alignment of the contained type. To support both nightly and
stable versions of rustc, we check for any pointer that is equal
or less than the minimum alignment of the type that heap_size_of
receives. If the given pointer is larger, we pass it on to
the jemalloc heap-measuring API.
@nox
Copy link
Contributor

nox commented May 18, 2017

@bors-servo r+

@bors-servo
Copy link

📌 Commit cd5f46e has been approved by nox

@bors-servo
Copy link

⌛ Testing commit cd5f46e with merge 2cbc81c...

bors-servo pushed a commit that referenced this pull request May 18, 2017
Accommodate change of empty vector representation in nightly libstd.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/heapsize/81)
<!-- Reviewable:end -->
@bors-servo
Copy link

☀️ Test successful - status-travis
Approved by: nox
Pushing 2cbc81c to master...

@jrmuizel
Copy link

jrmuizel commented Jun 6, 2017

What was the number of the change in libstd?

@SimonSapin
Copy link
Member

rust-lang/rust#41064

@SimonSapin
Copy link
Member

Specifically the changes to src/liballoc/heap.rs in that PR. (So it affects all zero-size heap "allocations", not just Vec.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants