Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-168663

net.minecraft.server.rcon.thread.GenericThread is not thread-safe

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.15.1
    • None
    • Plausible
    • Networking
    • Low
    • Platform

      The bug

      It appears net.minecraft.server.rcon.thread.GenericThread (Mojang name) respectively its subclasses are not thread-safe:

      • GenericThread.running: Is modified outside of thread (stop()), but its value is checked within run(). There are no memory visibility guarantees because running is not volatile.
      • GenericThread.stop(): Calls non-thread-safe methods when thread.join times out (might be intended).

            Unassigned Unassigned
            marcono1234 [Mod] Marcono1234
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: