mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 08:47:35 +02:00
Bug fixes
This commit is contained in:
parent
5b81ad3f48
commit
98fb53aa51
1 changed files with 6 additions and 6 deletions
12
runtime.c
12
runtime.c
|
@ -352,10 +352,10 @@ static void *ht_get(ck_ht_t * ht, const void *key)
|
|||
ck_ht_hash_t h;
|
||||
ck_ht_entry_t entry;
|
||||
|
||||
ck_ht_hash(&h, ht, key, len);
|
||||
ck_ht_entry_key_set(&entry, key, len);
|
||||
ck_ht_hash(&h, ht, c->desc, len);
|
||||
ck_ht_entry_key_set(&entry, c->desc, len);
|
||||
if (!ck_ht_get_spmc(ht, h, &entry)) {
|
||||
fprintf(stderr, "Unable to retrieve hash table value for key %p\n", key);
|
||||
fprintf(stderr, "Unable to retrieve hash table value for key %s\n", c->desc);
|
||||
exit(1);
|
||||
}
|
||||
v = (void *)entry.value;
|
||||
|
@ -369,8 +369,8 @@ static bool ht_insert(ck_ht_t * ht, const void *key, const void *value)
|
|||
ck_ht_hash_t h;
|
||||
ck_ht_entry_t entry;
|
||||
|
||||
ck_ht_hash(&h, ht, key, len);
|
||||
ck_ht_entry_set(&entry, h, key, len, value);
|
||||
ck_ht_hash(&h, ht, c->desc, len);
|
||||
ck_ht_entry_set(&entry, h, c->desc, len, value);
|
||||
return ck_ht_put_spmc(ht, h, &entry);
|
||||
}
|
||||
|
||||
|
@ -429,7 +429,7 @@ void gc_init_heap(long heap_size)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
ht_test(); // JAE - DEBUGGING!!
|
||||
//ht_test(); // JAE - DEBUGGING!!
|
||||
}
|
||||
|
||||
object cell_get(object cell)
|
||||
|
|
Loading…
Add table
Reference in a new issue