Created attachment 651885 [details] [diff] [review]
+++ This bug was initially created as a clone of Bug #753283 +++
Somehow when fixing this bug I failed to fix the non-gcc path as well. This moves MaybeVerifyBarriers from before to after the op is done, just as was done in bug 753283.
Landed this on Aurora because it was needed for bug 781393.
This change only affects DEBUG builds, and it was only needed to appease some tests.