Skip to content
Snippets Groups Projects
  • Avi Kivity's avatar
    37ce1854
    printf: reduce stack usage · 37ce1854
    Avi Kivity authored
    printfs uses ~80K stack; this easily overflows and causes corruption.
    
    We can't simply increase the stack size since this huge stack footprint
    means that stack guard pages won't work.
    
    Reduce the footprint for now, later switch to per-cpu allocation or some
    other scheme.
    37ce1854
    History
    printf: reduce stack usage
    Avi Kivity authored
    printfs uses ~80K stack; this easily overflows and causes corruption.
    
    We can't simply increase the stack size since this huge stack footprint
    means that stack guard pages won't work.
    
    Reduce the footprint for now, later switch to per-cpu allocation or some
    other scheme.
datasets NaN GiB