comparison src/share/vm/oops/symbol.cpp @ 9057:b44df6c5942c

Added tag jdk8u232-ga for changeset 12177d88b89c
author andrew
date Tue, 15 Oct 2019 21:37:52 +0100
parents 9758d9f36299
children
comparison
equal deleted inserted replaced
12:f98d7468194b 13:5ec0cec262e3
1 /* 1 /*
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
205 } 205 }
206 return str; 206 return str;
207 } 207 }
208 208
209 // Alternate hashing for unbalanced symbol tables. 209 // Alternate hashing for unbalanced symbol tables.
210 unsigned int Symbol::new_hash(jint seed) { 210 unsigned int Symbol::new_hash(juint seed) {
211 ResourceMark rm; 211 ResourceMark rm;
212 // Use alternate hashing algorithm on this symbol. 212 // Use alternate hashing algorithm on this symbol.
213 return AltHashing::murmur3_32(seed, (const jbyte*)as_C_string(), utf8_length()); 213 return AltHashing::murmur3_32(seed, (const jbyte*)as_C_string(), utf8_length());
214 } 214 }
215 215