[Nasm-bugs] [Bug 3392892] [Patch] Major memory leak when using many %rep loops with nontrivial content
noreply-nasm at dev.nasm.us
noreply-nasm at dev.nasm.us
Thu Jul 20 14:21:02 PDT 2023
https://bugzilla.nasm.us/show_bug.cgi?id=3392892
C. Masloch <pushbx at ulukai.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pushbx at ulukai.org
--- Comment #1 from C. Masloch <pushbx at ulukai.org> ---
The debugger, being quite a large project assembled all at once, did already
feature many uses of %rep blocks. I assume this is the reason that this patch
greatly reduces the memory use of the assembler even when not using the new
feature that I mentioned (_CHECKSECTION=0). Here's a comparison:
/usr/bin/time --format="%M\n" orignasm -I ../../l
macros/ -I ../../scanptab/ debug.asm
...
570216
/usr/bin/time --format="%M\n" nasm -I ../../l
macros/ -I ../../scanptab/ debug.asm
...
41896
570 MiB vs 41 MiB.
As mentioned in another bug report:
https://bugzilla.nasm.us/show_bug.cgi?id=3392774#c1
> The /usr/bin/time executable is GNU time. Its %M format code lists the maximum amount of KiB reserved to the process.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.
More information about the Nasm-bugs
mailing list