--- a/src/hotspot/share/oops/oop.cpp Fri Jan 04 17:46:56 2019 +0100
+++ b/src/hotspot/share/oops/oop.cpp Mon Jan 07 10:21:43 2019 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2019, 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
@@ -97,21 +97,6 @@
return ObjectSynchronizer::identity_hash_value_for(object);
}
-// When String table needs to rehash
-unsigned int oopDesc::new_hash(juint seed) {
- EXCEPTION_MARK;
- ResourceMark rm;
- int length;
- jchar* chars = java_lang_String::as_unicode_string(this, length, THREAD);
- if (chars != NULL) {
- // Use alternate hashing algorithm on the string
- return AltHashing::murmur3_32(seed, chars, length);
- } else {
- vm_exit_out_of_memory(length, OOM_MALLOC_ERROR, "unable to create Unicode strings for String table rehash");
- return 0;
- }
-}
-
// used only for asserts and guarantees
bool oopDesc::is_oop(oop obj, bool ignore_mark_word) {
if (!Universe::heap()->is_oop(obj)) {