< prev index next >

src/hotspot/share/jfr/utilities/jfrHashtable.hpp

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

@@ -81,11 +81,11 @@
     memset((void*)_buckets, 0, table_size * sizeof(Bucket));
   }
 
   size_t hash_to_index(uintptr_t full_hash) const {
     const uintptr_t h = full_hash % _table_size;
-    assert(h >= 0 && h < _table_size, "Illegal hash value");
+    assert(h < _table_size, "Illegal hash value");
     return (size_t)h;
   }
   size_t entry_size() const { return _entry_size; }
   void unlink_entry(TableEntry* entry) {
     entry->set_next(NULL);
< prev index next >