Minor servo_arc cleanups.

RESOLVED FIXED in Firefox 68

Status

()

defect
RESOLVED FIXED
2 months ago
2 months ago

People

(Reporter: emilio, Assigned: emilio)

Tracking

unspecified
mozilla68
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox68 fixed)

Details

Attachments

(2 attachments, 1 obsolete attachment)

No description provided.

This code seemed suspicious when I was reading it, and apparently I was right.
StdArc also has the PhantomData<T>:

https://doc.rust-lang.org/stable/src/alloc/sync.rs.html#193-196

This doesn't make anything not compile, which I guess means we were not doing
anything unsound.

If only for parallelism with Arc<>.

Depends on D30130

Attachment #9063074 - Attachment is obsolete: true
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/48edd877bde3
ThinArc should use NonNull. r=bholley
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/63d77dbcfda8
Use PhantomData<T> in servo_arc. r=bholley
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.