Bug 1692353 - Replace use of compare_and_swap with compare_exchange. r=lsalzman
Bug 1692353 - Replace use of compare_and_swap with compare_exchange. r=lsalzman

Differential Revision: https://phabricator.services.mozilla.com/D104931

[ghsync] From https://hg.mozilla.org/mozilla-central/rev/a3ec063a11a37ea88e048dfe6d598d7090874b9d

servo/webrender,servo/webrender,servo/webrender,servo/webrender,servo/webrender,servo/webrender