[patch] malloc per-thread cache ready for review
Szabolcs Nagy
szabolcs.nagy@arm.com
Fri Jan 27 14:39:00 GMT 2017
On 26/01/17 19:29, DJ Delorie wrote:
> +typedef struct TCache {
> + /* 0 = uninitted, 1 = normal, anything else = shutting down */
> + char initted;
> + char counts[TCACHE_IDX];
> + TCacheEntry *entries[TCACHE_IDX];
> +} TCache;
> +
> +static __thread TCache tcache = {0,0,0,{0},{0}};
this initializer seems to have two excess 0
(i'd just remove the initializer if it's static __thread)
More information about the Libc-alpha
mailing list