Handle large ARR_WORDS in heap census (fix #17572)

We can do a heap census with a non-profiling RTS. With a non-profiling
RTS we don't zero superfluous bytes of shrunk arrays hence a need to
handle the case specifically to avoid a crash.

Revert part of a586b33f
34 jobs for master in 537 minutes and 58 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Lint
passed #223847
lint
lint-linters

00:00:17

passed #223850
lint
lint-submods-branch

00:00:22

passed #223848
lint
lint-testsuite

00:00:19

passed #223849
lint
typecheck-testsuite

00:00:18

 
  Quick Build
passed #223851
x86_64-linux
hadrian-ghc-in-ghci

00:09:49

 
  Build
passed #223852
x86_64-linux
validate-x86_64-linux-deb9-hadrian

02:35:53

 
  Full Build
failed #223856
aarch64-linux allowed to fail
nightly-aarch64-linux-deb9

05:50:24

failed #223858
armv7-linux
nightly-armv7-linux-deb9

06:11:14

passed #223860
x86_64-linux
nightly-i386-linux-deb9

03:30:44

failed #223874
x86_64-windows allowed to fail
nightly-i386-windows

00:03:16

failed #223871
x86_64-windows allowed to fail
nightly-i386-windows-hadrian

00:03:57

failed #223868
x86_64-linux allowed to fail
nightly-x86_64-linux-alpine

01:20:38

passed #223867
x86_64-linux
nightly-x86_64-linux-deb10

04:15:26

passed #223861
x86_64-linux
nightly-x86_64-linux-deb9

02:55:54

failed #223865
x86_64-linux
nightly-x86_64-linux-deb9-integer-simple

04:21:36

failed #223863
x86_64-linux
nightly-x86_64-linux-deb9-llvm

03:28:02

failed #223873
x86_64-windows allowed to fail
nightly-x86_64-windows

03:17:31

failed #223855
aarch64-linux allowed to fail
validate-aarch64-linux-deb9

03:42:06

passed #223857
armv7-linux
validate-armv7-linux-deb9

03:31:48

passed #223859
x86_64-linux
validate-i386-linux-deb9

01:48:55

passed #223854
x86_64-darwin
validate-x86_64-darwin

01:03:43

passed #223862
x86_64-linux
validate-x86_64-linux-deb9-debug

03:08:17

passed #223866
x86_64-linux
validate-x86_64-linux-deb9-dwarf

01:58:54

passed #223864
x86_64-linux
validate-x86_64-linux-deb9-integer-simple

01:32:55

passed #223853
x86_64-linux
validate-x86_64-linux-deb9-unreg-hadrian

04:34:36

passed #223869
x86_64-linux
validate-x86_64-linux-fedora27

00:49:49

failed #223872
x86_64-windows allowed to fail
validate-x86_64-windows

02:54:00

failed #223870
x86_64-windows allowed to fail
validate-x86_64-windows-hadrian

01:22:11

 
  Cleanup
passed #223875
x86_64-darwin
cleanup-darwin

00:00:12

 
  Packaging
skipped #223876
x86_64-linux allowed to fail
doc-tarball
 
  Testing
skipped #223877
x86_64-linux allowed to fail manual
hackage
skipped #223878
x86_64-linux
nightly-hackage
skipped #223879
x86_64-linux
perf-nofib
 
  Deploy
skipped #223880
x86_64-linux allowed to fail
pages
 
Name Stage Failure
failed
validate-aarch64-linux-deb9 Full Build
Uploading artifacts...
ghc-aarch64-linux-deb9.tar.xz: found 1 matching files
junit.xml: found 1 matching files

performance-metrics.tsv: found 1 matching files

Uploading artifacts to coordinator... ok
id=223855 responseStatus=201 Created token=itMyBid5
Uploading artifacts...
junit.xml: found 1 matching files

Uploading artifacts to coordinator... ok
id=223855 responseStatus=201 Created token=itMyBid5
ERROR: Job failed: exit code 1
failed
nightly-aarch64-linux-deb9 Full Build
git push git@gitlab.haskell.org:ghc/ghc-performance-notes.git refs/notes/perf
To gitlab.haskell.org:ghc/ghc-performance-notes.git
cc5f772fc4..c540ebcbf1 refs/notes/perf -> refs/notes/perf
Running after script...
$ cp -Rf $HOME/.cabal cabal-cache
Uploading artifacts...
junit.xml: found 1 matching files
Uploading artifacts to coordinator... ok
id=223856 responseStatus=201 Created token=NMYo_eAK
ERROR: Job failed: exit code 1
failed
nightly-armv7-linux-deb9 Full Build
git push git@gitlab.haskell.org:ghc/ghc-performance-notes.git refs/notes/perf
To gitlab.haskell.org:ghc/ghc-performance-notes.git
c540ebcbf1..2624bad3e2 refs/notes/perf -> refs/notes/perf
Running after script...
$ cp -Rf $HOME/.cabal cabal-cache
Uploading artifacts...
junit.xml: found 1 matching files
Uploading artifacts to coordinator... ok
id=223858 responseStatus=201 Created token=7tse2MPK
ERROR: Job failed: exit code 1
failed
nightly-x86_64-linux-deb9-llvm Full Build
git push git@gitlab.haskell.org:ghc/ghc-performance-notes.git refs/notes/perf
To gitlab.haskell.org:ghc/ghc-performance-notes.git
d2d252c458..b233d22f81 refs/notes/perf -> refs/notes/perf
Running after script...
$ cp -Rf $HOME/.cabal cabal-cache
Uploading artifacts...
junit.xml: found 1 matching files
Uploading artifacts to coordinator... ok
id=223863 responseStatus=201 Created token=o4S1P_Ho
ERROR: Job failed: exit code 1
failed
validate-x86_64-windows Full Build
junit.xml: found 1 matching files                  
WARNING: Failed to load system CertPool:crypto/x509: system root pool is not available on Windows
Uploading artifacts to coordinator... ok
id=223872 responseStatus=201 Created token=Qohvw99L
Uploading artifacts...
Runtime platform
arch=amd64 os=windows pid=17708 revision=1f513601 version=11.10.1
junit.xml: found 1 matching files

WARNING: Failed to load system CertPool:crypto/x509: system root pool is not available on Windows
Uploading artifacts to coordinator... ok
id=223872 responseStatus=201 Created token=Qohvw99L
ERROR: Job failed: exit status 2
failed
nightly-x86_64-windows Full Build
junit.xml: found 1 matching files                  
WARNING: Failed to load system CertPool:crypto/x509: system root pool is not available on Windows
Uploading artifacts to coordinator... ok
id=223873 responseStatus=201 Created token=ZUGNawkw
Uploading artifacts...
Runtime platform
arch=amd64 os=windows pid=3820 revision=1f513601 version=11.10.1
junit.xml: found 1 matching files

WARNING: Failed to load system CertPool:crypto/x509: system root pool is not available on Windows
Uploading artifacts to coordinator... ok
id=223873 responseStatus=201 Created token=ZUGNawkw
ERROR: Job failed: exit status 2
failed
nightly-i386-windows-hadrian Full Build
Runtime platform                                    arch=amd64 os=windows pid=4376 revision=1f513601 version=11.10.1
WARNING: ghc.tar.xz: no matching files
WARNING: junit.xml: no matching files
ERROR: No files to upload
Uploading artifacts...
Runtime platform
arch=amd64 os=windows pid=6404 revision=1f513601 version=11.10.1
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit status 77
failed
nightly-x86_64-linux-alpine Full Build
Uploading artifacts...
ghc-x86_64-alpine-linux.tar.xz: found 1 matching files
WARNING: junit.xml: no matching files
WARNING: performance-metrics.tsv: no matching files
Uploading artifacts to coordinator... ok
id=223868 responseStatus=201 Created token=LCCvVzKY
Uploading artifacts...
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
nightly-i386-windows Full Build
Runtime platform                                    arch=amd64 os=windows pid=6760 revision=1f513601 version=11.10.1
WARNING: ghc-x86_64-mingw32.tar.xz: no matching files
WARNING: junit.xml: no matching files
ERROR: No files to upload
Uploading artifacts...
Runtime platform
arch=amd64 os=windows pid=5692 revision=1f513601 version=11.10.1
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit status 77
failed
validate-x86_64-windows-hadrian Full Build
ghc.tar.xz: found 1 matching files                 
WARNING: junit.xml: no matching files
WARNING: Failed to load system CertPool:crypto/x509: system root pool is not available on Windows
Uploading artifacts to coordinator... ok
id=223870 responseStatus=201 Created token=VkzPFqyy
Uploading artifacts...
Runtime platform
arch=amd64 os=windows pid=552 revision=1f513601 version=11.10.1
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit status 1
failed
nightly-x86_64-linux-deb9-integer-simple Full Build
git push git@gitlab.haskell.org:ghc/ghc-performance-notes.git refs/notes/perf
To gitlab.haskell.org:ghc/ghc-performance-notes.git
39f4babe99..8b44e91362 refs/notes/perf -> refs/notes/perf
Running after script...
$ cp -Rf $HOME/.cabal cabal-cache
Uploading artifacts...
junit.xml: found 1 matching files
Uploading artifacts to coordinator... ok
id=223865 responseStatus=201 Created token=pDCXXqtL
ERROR: Job failed: exit code 1