Thank you!
- Queries
- All Stories
- Search
- Advanced Search
Feed Advanced Search
Advanced Search
Advanced Search
Feb 19 2020
Feb 19 2020
jakobkummerow added a comment to D27362: Linux/cpuinfo.c: grow buffer size as needed for 12+ core CPUs.
Feb 17 2020
Feb 17 2020
jakobkummerow added a comment to D27362: Linux/cpuinfo.c: grow buffer size as needed for 12+ core CPUs.
Thanks for landing this! My name is Jakob Kummerow, email: jakob.kummerow@gmail.com
Feb 13 2020
Feb 13 2020
jakobkummerow added a comment to D27362: Linux/cpuinfo.c: grow buffer size as needed for 12+ core CPUs.
ahiemstra: Thanks! I don't have commit access, so I'd appreciate it if you could land this for me.
jakobkummerow updated the diff for D27362: Linux/cpuinfo.c: grow buffer size as needed for 12+ core CPUs.
Minor update: size_t instead of int.
jakobkummerow updated the diff for D27362: Linux/cpuinfo.c: grow buffer size as needed for 12+ core CPUs.
OK, here's a version that scales the buffer size as needed.
jakobkummerow added a comment to D27362: Linux/cpuinfo.c: grow buffer size as needed for 12+ core CPUs.
cfeck: Sure, an even better long-term fix would be to stop depending on a hard-coded buffer size. Interleaved reading and parsing would be one way to achieve that; another way would be a dynamic buffer size: start small, and if it's too small then allocate a new buffer that's twice as large and try again.