Skip to content

Commit

Permalink
Fix #244
Browse files Browse the repository at this point in the history
  • Loading branch information
nitsanw committed May 28, 2019
1 parent 65c14e9 commit 1475be5
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -669,8 +669,8 @@ private static final Object putIfMatch0(
if( K == null ) { // Slot is free?
// Found an empty Key slot - which means this Key has never been in
// this table. No need to put a Tombstone - the Key is not here!
if( putval == TOMBSTONE ) return putval; // Not-now & never-been in this table
if( expVal == MATCH_ANY ) return null; // Will not match, even after K inserts
if( putval == TOMBSTONE ) return TOMBSTONE; // Not-now & never-been in this table
if( expVal == MATCH_ANY ) return TOMBSTONE; // Will not match, even after K inserts
// Claim the null key-slot
if( CAS_key(kvs,idx, null, key ) ) { // Claim slot for Key
chm._slots.add(1); // Raise key-slots-used count
Expand Down

0 comments on commit 1475be5

Please sign in to comment.