Use NOINLINE on functions using touch#
AbandonedPublic

Authored by hsyl20 on Jul 28 2018, 9:39 PM.

Details

Reviewers
hvr
bgamari
Trac Issues
#14346
#15260
#13707
Summary

Fix Trac #14346 again by avoiding touch# to be simplified away in allocaBytes/allocaBytesAligned.

Add a regression test this time.

Test Plan

T14346

hsyl20 created this revision.Jul 28 2018, 9:39 PM
hsyl20 updated this revision to Diff 17503.Jul 28 2018, 10:00 PM
  • Ensure test fails with current HEAD (add "-threaded")

We really want #with. We should revive https://phabricator.haskell.org/D4647. Maybe drop my work on #catch (I cant find out the reasons it is crashing) and implement #with directly.

hsyl20 updated this revision to Diff 17508.Jul 29 2018, 10:08 AM
  • Implement with[#] with catch#
hsyl20 edited the summary of this revision. (Show Details)Jul 29 2018, 10:47 AM
hsyl20 edited the summary of this revision. (Show Details)Jul 29 2018, 11:10 AM
hsyl20 updated this revision to Diff 17509.Jul 29 2018, 12:01 PM
  • Use with# in ghc-compact
hsyl20 abandoned this revision.Jul 31 2018, 12:00 PM