Generalize info hashtable's comparator, and add more barriers.