Issue information

Issue ID
#663
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Dec 20, 2007 14:18
Last Post
Hercules Elf Bot
Dec 20, 2007 14:18
Confirmation
N/A

Hercules Elf Bot - Dec 20, 2007 14:18

Originally posted by [b]theultramage[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=663

I compared eathena's current memory manager with jAthena's version history. The oldest version I have available very closely matches eathena (basically only some #defines were adjusted in r9606, and some "chunk" structure was added in r3640).

The point is, the ea manager is rather primitive, and has some glitches that could be improved.
In revision r1585 by EoE, I read "Memory manager rewrite (malloc.c), memory consumption reduction by 13MB compared to r1583". There were some small followup tweaks, but this was the most important change. Maybe we should import it? (and clean up what we have at the same time)

My main intent was to write a function that would ask the memory manager to validate a pointer (runtime sanity checks, to try and find out the cause of the current party data corruption problem).

This post has been edited by theultramage: Dec 20 2007, 06:35 AM