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

FileIOThread appears to be really broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • Minecraft 1.7.9
    • None
    • Unconfirmed

      The implementation for FileIOThread in Bukkit/mc-dev is really broken. It is a number of issues.

      • The thread can stop before you have had a chance to add any tasks.
      • The thread stops when there is not more tasks but does restart if new ones are added. Tasks are added after the thread has finished and silently ignored.
      • The method to wait for data to be written blocks the main thread and is the most common cause of the "the server can't keep up"

      Fixing this code removed most of the "the server can't keep up" messages for me.

            Unassigned Unassigned
            peter.lawrey Peter K LAWREY
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: