We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a9798f commit 1a5e1c3Copy full SHA for 1a5e1c3
src/weak.c
@@ -511,7 +511,7 @@ static void weak_hashtable_create_entry(SgHashCore *core, SgHashEntry *e)
511
{
512
SgObject table = SG_OBJ(core->data);
513
if (SG_WEAK_HASHTABLE_WEAKNESS(table) & SG_WEAK_KEY) {
514
- SgObject key = SG_OBJ(e->key);
+ volatile SgObject key = SG_OBJ(e->key);
515
e->key = (intptr_t)Sg_MakeWeakBox(key);
516
/* needed for managing entryCount... */
517
Sg_RegisterFinalizer(key, key_finalizer, table);
0 commit comments