URL:
<http://gna.org/bugs/?23146>
Summary: Messages sent to threaded AI when it's not active
(memory leak)
Project: Freeciv
Submitted by: cazfi
Submitted on: Sun 04 Jan 2015 09:44:24 PM EET
Category: ai
Severity: 3 - Normal
Priority: 5 - Normal
Status: Ready For Test
Assigned to: None
Originator Email:
Open/Closed: Open
Release:
Discussion Lock: Any
Operating System: None
Planned Release: 2.5.0, 2.6.0, 3.0.0
_______________________________________________________
Details:
When threaded AI is built in, messages are queued for player thread to
receive. If there's no players actually using threaded AI type, the thread is
not running at all, meaning that message queue only grows and grows. This uses
both more and more memory and surprisingly much CPU time.
Attached fix avoids queueing messages when player thread is not running.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 04 Jan 2015 09:44:24 PM EET Name: ThreadedAiQueueNoReceiver.patch
Size: 2kB By: cazfi
<http://gna.org/bugs/download.php?file_id=23399>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?23146>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev