[project @ 2001-11-21 10:09:15 by simonmar]
authorsimonmar <unknown>
Wed, 21 Nov 2001 10:09:16 +0000 (10:09 +0000)
committersimonmar <unknown>
Wed, 21 Nov 2001 10:09:16 +0000 (10:09 +0000)
commit560bf0f68bdfd422c9d744a83ca38ec0a4bc780c
treee7cd66965b21f0ceefe6ce95ea55c06262129ff7
parent1222b052d430d9f7bbcede94ca0fce42f41ddbb3
[project @ 2001-11-21 10:09:15 by simonmar]
Turn the weighted reference count in a StablePtr into a simple counter
in the stable ptr table.  We never made use of the weighted count, and
it caused problems when making many StablePtrs to the same object.

In the future we could remove the reference counting altogether and
just make a new StablePtr each time, rather than attempting to use an
existing one.  This would save on the hash table lookup at creation
time.
ghc/includes/Stable.h
ghc/rts/Stable.c