[Freeciv-Dev] [bug #23146] Messages sent to threaded AI when it's not active (memory leak)

2015-01-06 Thread Marko Lindqvist
Update of bug #23146 (project freeciv):

  Status:  Ready For Test => Fixed  
 Assigned to:None => cazfi  
 Open/Closed:Open => Closed 


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #23146] Messages sent to threaded AI when it's not active (memory leak)

2015-01-04 Thread Marko Lindqvist
URL:
  

 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



___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev