--- old/src/hotspot/share/utilities/bitMap.cpp 2017-10-12 12:07:13.771718984 -0400 +++ new/src/hotspot/share/utilities/bitMap.cpp 2017-10-12 12:07:13.298297294 -0400 @@ -626,7 +626,7 @@ table[i] = num_set_bits(i); } - if (!Atomic::cmpxchg_if_null(table, &_pop_count_table)) { + if (Atomic::cmpxchg(table, &_pop_count_table, (BitMap::idx_t*)NULL) != NULL) { guarantee(_pop_count_table != NULL, "invariant"); FREE_C_HEAP_ARRAY(idx_t, table); }