Closed Bug 488106 Opened 15 years ago Closed 15 years ago

No reference counting of GCHeap instances

Categories

(Tamarin Graveyard :: Garbage Collection (mmGC), defect)

All
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED WONTFIX

People

(Reporter: shiva, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8
Build Identifier: Changeset: 1645 5cd73575c334 2009-03-27 15:20 -0700  jeffdyer - merge back from tc after tr->tc merge II

In the Init we initialize the static "instance" variable and in the Destroy we delete "instance". It works fine as long as there is only one instance of the DLL linking to MMGC. When there are more than one instances of the objects created, we will have the problem of initializing the instance twice. To avoid this problem it will be nice if we have a reference counting around instance.

Reproducible: Always

Steps to Reproduce:
1.Call GCHeap::Init more than once. 
2.GCHeap will assert.
3.
Actual Results:  
It will be nice if GC can handle this situation.
Off-line discussion resulted in agreement that this facility is better provided as a wrapper to GCHeap.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.