Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
-
d72505e4
by Simon Jakobi at 2026-11-12T15:26:14-05:00
2 changed files:
Changes:
| ... | ... | @@ -2,6 +2,9 @@ |
| 2 | 2 | {-# LANGUAGE MagicHash #-}
|
| 3 | 3 | {-# LANGUAGE UnboxedTuples #-}
|
| 4 | 4 | |
| 5 | +-- Lambda lifting removes the closure shape needed to reproduce #17088.
|
|
| 6 | +{-# OPTIONS_GHC -fno-stg-lift-lams #-}
|
|
| 7 | + |
|
| 5 | 8 | module Main (main) where
|
| 6 | 9 | |
| 7 | 10 | import Data.Word
|
| ... | ... | @@ -27,7 +30,9 @@ instance Show Bytes where |
| 27 | 30 | bytesAllocRet :: Int -> IO Bytes
|
| 28 | 31 | bytesAllocRet (I# sz) =
|
| 29 | 32 | IO $ \s -> case newAlignedPinnedByteArray# sz 8# s of
|
| 30 | - (# s', mba #) -> (# s', Bytes mba #)
|
|
| 33 | + (# s', mba #) ->
|
|
| 34 | + case writeWord8Array# mba 0# (wordToWord8# 0##) s' of
|
|
| 35 | + s'' -> (# s'', Bytes mba #)
|
|
| 31 | 36 | |
| 32 | 37 | ------------------------------------------------------------------------
|
| 33 | 38 |
| ... | ... | @@ -554,8 +554,11 @@ test('RestartEventLogging', |
| 554 | 554 | compile_and_run, ['RestartEventLogging_c.c'])
|
| 555 | 555 | |
| 556 | 556 | test('T17088',
|
| 557 | - [extra_ways(['compacting_gc']), extra_run_opts('+RTS -A256k -RTS')],
|
|
| 558 | - compile_and_run, ['-rtsopts -O2'])
|
|
| 557 | + [ only_ways(['compacting_gc'])
|
|
| 558 | + , extra_ways(['compacting_gc'])
|
|
| 559 | + , extra_run_opts('+RTS -A128k -RTS')
|
|
| 560 | + ],
|
|
| 561 | + compile_and_run, ['-rtsopts -O1'])
|
|
| 559 | 562 | |
| 560 | 563 | test('T15427', js_broken(22374), compile_and_run, [''])
|
| 561 | 564 |