Re: [PATCH 2/3] malloc: Don't statically initialize av_ if using malloc_init

2023-08-01 Thread Sean Anderson
On 8/1/23 12:56, Heinrich Schuchardt wrote: On 01.08.23 18:27, Sean Anderson wrote: On 8/1/23 12:23, Heinrich Schuchardt wrote: On 01.08.23 18:02, Sean Anderson wrote: On 8/1/23 03:04, Heinrich Schuchardt wrote: On 8/1/23 00:33, Sean Anderson wrote: When we enable malloc_init, there

Re: [PATCH 2/3] malloc: Don't statically initialize av_ if using malloc_init

2023-08-01 Thread Heinrich Schuchardt
On 01.08.23 18:27, Sean Anderson wrote: On 8/1/23 12:23, Heinrich Schuchardt wrote: On 01.08.23 18:02, Sean Anderson wrote: On 8/1/23 03:04, Heinrich Schuchardt wrote: On 8/1/23 00:33, Sean Anderson wrote: When we enable malloc_init, there is no need to statically initialize av_, since

Re: [PATCH 2/3] malloc: Don't statically initialize av_ if using malloc_init

2023-08-01 Thread Sean Anderson
On 8/1/23 12:23, Heinrich Schuchardt wrote: On 01.08.23 18:02, Sean Anderson wrote: On 8/1/23 03:04, Heinrich Schuchardt wrote: On 8/1/23 00:33, Sean Anderson wrote: When we enable malloc_init, there is no need to statically initialize av_, since we are going to do it manually. This let

Re: [PATCH 2/3] malloc: Don't statically initialize av_ if using malloc_init

2023-08-01 Thread Heinrich Schuchardt
On 01.08.23 18:02, Sean Anderson wrote: On 8/1/23 03:04, Heinrich Schuchardt wrote: On 8/1/23 00:33, Sean Anderson wrote: When we enable malloc_init, there is no need to statically initialize av_, since we are going to do it manually. This lets us move av_ to .bss, saving around 1-2k of dat

Re: [PATCH 2/3] malloc: Don't statically initialize av_ if using malloc_init

2023-08-01 Thread Sean Anderson
On 8/1/23 03:04, Heinrich Schuchardt wrote: On 8/1/23 00:33, Sean Anderson wrote: When we enable malloc_init, there is no need to statically initialize av_, since we are going to do it manually. This lets us move av_ to .bss, saving around 1-2k of data (depending on the pointer size). cALL

Re: [PATCH 2/3] malloc: Don't statically initialize av_ if using malloc_init

2023-08-01 Thread Heinrich Schuchardt
On 8/1/23 00:33, Sean Anderson wrote: When we enable malloc_init, there is no need to statically initialize av_, since we are going to do it manually. This lets us move av_ to .bss, saving around 1-2k of data (depending on the pointer size). cALLOc must be adjusted to not access top before ma

[PATCH 2/3] malloc: Don't statically initialize av_ if using malloc_init

2023-07-31 Thread Sean Anderson
When we enable malloc_init, there is no need to statically initialize av_, since we are going to do it manually. This lets us move av_ to .bss, saving around 1-2k of data (depending on the pointer size). cALLOc must be adjusted to not access top before malloc_init. While we're at it, rename/rewor