patchWarzone 2100 Project - Patches: patch #786, Reference counting patch

Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

patch #786: Reference counting patch

Submitted by:  Per I. Mathisen <per>
Submitted on:  Fri Aug 3 12:17:51 2007  
Category: NonePriority: 4
Status: Wont DoPrivacy: Public
Assigned to: Per I. Mathisen <per>Open/Closed: Open
Planned Release: None

Fri Aug 3 12:17:51 2007, original submission:

This is just to make a ticket for it. My current idea on reference counting is this: We should keep the Warzone model of removing dead objects at the end of the next turn, and requiring all code to check for dead references each turn. However, we can use reference counting as a safety measure to ensure that when there is a bug, we can detect it earlier in debug builds and can work around it in release builds.

Attached is a full debug version of the reference counting patch. It is not commit-worthy, but can be useful to track reference problems, since it emits a ton of useful debug information about reference changes during game play.

Per I. Mathisen <per>
Project AdministratorIn charge of this item.


Attached Files
file #2744:  refcount_debug.diff added by per (23kB - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by per (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Aug 3 12:17:51 2007perAttached File-=>Added refcount_debug.diff, #2744
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup