Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This rule specifically deals with primitive operators like ++. For atomicity of other functions, see CON07-J. Do not assume that a grouping of calls to thread-safe classes atomic methods is atomic.

The Java Specification also permits reads and writes of 64-bit values to be non-atomic; for more information, see CON25-J. Ensure atomicity when reading and writing 64-bit values.

...