Skip to content

Commit

Permalink
[Truffle] verifyStore should always be behind an assert.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed May 12, 2015
1 parent f93682c commit 8271b9c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static void addNewEntry(RubyHash hash, int hashed, Object key, Object val

@CompilerDirectives.TruffleBoundary
public static void resize(RubyHash hash) {
HashOperations.verifyStore(hash);
assert HashOperations.verifyStore(hash);

final int bucketsCount = capacityGreaterThan(hash.getSize()) * 2;
final Entry[] newEntries = new Entry[bucketsCount];
Expand All @@ -100,7 +100,7 @@ public static void resize(RubyHash hash) {

hash.setStore(newEntries, hash.getSize(), hash.getFirstInSequence(), hash.getLastInSequence());

HashOperations.verifyStore(hash);
assert HashOperations.verifyStore(hash);
}

}

0 comments on commit 8271b9c

Please sign in to comment.