Make ticky work, at least partly, on 64-bit machines
authorsimonpj@microsoft.com <unknown>
Tue, 24 Apr 2007 13:30:11 +0000 (13:30 +0000)
committersimonpj@microsoft.com <unknown>
Tue, 24 Apr 2007 13:30:11 +0000 (13:30 +0000)
commita01188d12783adf93b1b6c5a08de1dfa0abf55f2
tree887677238c3611989983dfedbcb00caddabe9f05
parentfd1375dd261725eb00969a3017b924369c09835c
Make ticky work, at least partly, on 64-bit machines

The ticky StgEntCounter structure was trying to be clever by using a
fixed-width 32-bit field for the registeredp value.  But the code generators
are not up to handling structures packed tightly like this (on a 64-bit
architecture); result seg-fault on 64-bit.

Really there should be some complaint from the code generators, not simply
a seg fault.

Anyway I switched to using native words for StgEntCounter fields, and
now at least it works.
compiler/codeGen/CgTicky.hs
includes/Rts.h