Skip to content
  • Cheng Shao's avatar
    9b4a7ddb
    rts: do not prefetch mark_closure bdescr in non-moving gc when ASSERTS_ENABLED · 9b4a7ddb
    Cheng Shao authored
    This commit fixes a small an oversight in !12148: the prefetch logic
    in non-moving GC may trap in debug RTS because it calls Bdescr() for
    mark_closure which may be a static one. It's fine in non-debug RTS
    because even invalid bdescr addresses are prefetched, they will not
    cause segfaults, so this commit implements the most straightforward
    fix: don't prefetch mark_closure bdescr when assertions are enabled.
    
    (cherry picked from commit 886ab43a)
    9b4a7ddb
    rts: do not prefetch mark_closure bdescr in non-moving gc when ASSERTS_ENABLED
    Cheng Shao authored
    This commit fixes a small an oversight in !12148: the prefetch logic
    in non-moving GC may trap in debug RTS because it calls Bdescr() for
    mark_closure which may be a static one. It's fine in non-debug RTS
    because even invalid bdescr addresses are prefetched, they will not
    cause segfaults, so this commit implements the most straightforward
    fix: don't prefetch mark_closure bdescr when assertions are enabled.
    
    (cherry picked from commit 886ab43a)
Loading