Skip to content
  • Ben Gamari's avatar
    base: Make Foreign.Marshal.Alloc.allocBytes[Aligned] NOINLINE · 404bf05e
    Ben Gamari authored
    As noted in #14346, touch# may be optimized away when the simplifier can see
    that the continuation passed to allocaBytes will not return. Marking CPS-style
    functions with NOINLINE ensures that the simplier can't draw any unsound
    conclusions.
    
    Ultimately the right solution here will be to do away with touch# and instead
    introduce a scoped primitive as is suggested in #14375.
    404bf05e