code cleanup global-hashmap.c