D27362: Linux/cpuinfo.c: grow buffer size as needed for 12+ core CPUs

Christoph Feck noreply at phabricator.kde.org
Thu Feb 13 15:44:42 GMT 2020


cfeck added a comment.


  That looks clever. Since CpuInfoBufSize is a static variable, it will remember the last used size and not reallocate again (unless you plug in new CPUs).
  
  Is realloc() an option? It should help the case where the library can actually grow the buffer without an alloc/copy/free cycle.

REVISION DETAIL
  https://phabricator.kde.org/D27362

To: jakobkummerow, davidedmundson, ahiemstra
Cc: ahiemstra, cfeck, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200213/6faa992d/attachment.html>


More information about the Plasma-devel mailing list