Skip to content
  • Sebastian Graf's avatar
    Fix strictness signatures of `prefetchValue*#` primops · 321d1bd8
    Sebastian Graf authored and Marge Bot's avatar Marge Bot committed
    Their strictness signatures said the primops are strict in their first
    argument, which is wrong: Handing it a thunk will prefetch the pointer
    to the thunk, but not evaluate it. Hence not strict.
    
    The regression test `T8256` actually tests for laziness in the first
    argument, so GHC apparently never exploited the strictness signature.
    
    See also ghc/ghc#8256 (comment 310867),
    where this came up.
    321d1bd8