--- old/src/hotspot/share/utilities/resourceHash.hpp 2018-11-16 19:18:39.874090378 -0800 +++ new/src/hotspot/share/utilities/resourceHash.hpp 2018-11-16 19:18:39.610080330 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2018, 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 @@ -32,15 +32,6 @@ typedef bool (*equals_fn)(K const&, K const&); }; -template unsigned primitive_hash(const K& k) { - unsigned hash = (unsigned)((uintptr_t)k); - return hash ^ (hash >> 3); // just in case we're dealing with aligned ptrs -} - -template bool primitive_equals(const K& k0, const K& k1) { - return k0 == k1; -} - template< typename K, typename V, // xlC does not compile this: