Closed Bug 1573734 Opened 5 years ago Closed 5 years ago

RLBox - Ensure libThebes can be safely compiled with c++17

Categories

(Core :: Graphics, defect, P3)

Desktop
Windows
defect

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: shravanrn, Assigned: shravanrn, Mentored)

References

()

Details

Attachments

(1 file)

The RLBox requires compilation with c++ 17. Since we are changing libThebes to use RLBox, this must compiled with c++17. However, portions of libThebes such as some code specific to the Windows platform throws errors (which are warnings turned errors) when compiled with c++ 17, as listed here.

This change is motivated by atomic::load being nodiscard on Windows
and atomic_thread_fence being closer to what Arc::drop and
ThreadSafeAutoRefCnt does. We keep the MOZ_TSAN refinement of
ThreadSafeAutoRefCnt as well.

(In reply to Shravan Narayan from comment #0)

The RLBox requires compilation with c++ 17. Since we are changing libThebes to use RLBox, this must compiled with c++17. However, portions of libThebes such as some code specific to the Windows platform throws errors (which are warnings turned errors) when compiled with c++ 17, as listed here.

NB: it's helpful to provide example errors inline in your bug reports, rather than relying on treeherder logs, as treeherder logs eventually expire, whereas Bugzilla comments do not.

Pushed by nfroyd@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ba24cc998a46 prefer atomic_thread_fence in StyleArcInner::DecrementRef; r=emilio
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70

oh yay! that was quick :)

NB: it's helpful to provide example errors inline in your bug reports, rather than relying on treeherder logs, as treeherder logs eventually expire, whereas Bugzilla comments do not.

Noted.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: