format with floating points GC allocating in DMD 2.090

bauss jj_1337 at live.dk
Fri Jan 31 08:45:55 UTC 2020


On Friday, 31 January 2020 at 07:20:17 UTC, cc wrote:
> 	char[4096] buf;
> 	writeln(GC.stats.usedSize);
> 	foreach (i; 0 .. 10) {
> 		sformat(buf, "%f", 1.234f);
> 		writeln(GC.stats.usedSize);
> 	}
>
> Output with DMD32 D Compiler v2.089.1-dirty (Win10 x64):
> 16
> 16
> 16
> ...
>
> Output with DMD32 D Compiler v2.090.0-dirty:
> 16
> 848
> 1664
> 2480
> 3296
> 4112
> 4944
> 5760
> 6576
> 7392
> 8208

Report it as a bug because it's definitely a bug and there was 
changes to the GC in 2.090.0


More information about the Digitalmars-d-learn mailing list