gecko-dev/mozglue/linker
Simon Giesecke e3d1db10d9 Bug 1626884 - Make RC non-copyable and declare operator= only in debug builds. r=froydnj
RC should be non-copyable. It already is non-copyable in the atomic variant,
but not in the non-atomic variant. This ensures that RefCounted is also
non-copyable, which prevents that classes deriving from RefCounted get
accidentally copied.

Also, RC's operator= should be defined only in debug builds. As already
described in a code comment, it's only used in debug builds (to assign the
dead value), and otherwise no modifications other than incrementing &
decrementing should be possible.

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

--HG--
extra : moz-landing-system : lando
2020-04-06 09:17:34 +00:00
..
tests Bug 1549762 - Turn the linker inline asm into an assembly file. r=glandium 2019-05-16 01:02:00 +00:00
BaseElf.cpp
BaseElf.h
CustomElf.cpp
CustomElf.h
ElfLoader.cpp Bug 1291377 - Don't use custom linker on Android 6.0+ r=glandium 2020-03-20 15:35:48 +00:00
ElfLoader.h Bug 1626884 - Make RC non-copyable and declare operator= only in debug builds. r=froydnj 2020-04-06 09:17:34 +00:00
Elfxx.h
Linker.h
Logging.cpp
Logging.h
Mappable.cpp Bug 1598068 - Add ashmem abstraction to mozglue and use it everywhere r=glandium,jld 2020-03-06 19:04:49 +00:00
Mappable.h
Utils.h
XZStream.cpp
XZStream.h
Zip.cpp Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan 2019-05-01 08:47:10 +00:00
Zip.h Bug 1626884 - Make RC non-copyable and declare operator= only in debug builds. r=froydnj 2020-04-06 09:17:34 +00:00
moz.build