1.1 --- a/src/share/vm/classfile/symbolTable.hpp Thu Mar 19 09:13:24 2009 -0700 1.2 +++ b/src/share/vm/classfile/symbolTable.hpp Fri Mar 20 23:19:36 2009 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 1.6 + * Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -91,6 +91,10 @@ 1.11 // Only copy to C string to be added if lookup failed. 1.12 static symbolOop lookup(symbolHandle sym, int begin, int end, TRAPS); 1.13 1.14 + // jchar (utf16) version of lookups 1.15 + static symbolOop lookup_unicode(const jchar* name, int len, TRAPS); 1.16 + static symbolOop lookup_only_unicode(const jchar* name, int len, unsigned int& hash); 1.17 + 1.18 static void add(constantPoolHandle cp, int names_count, 1.19 const char** names, int* lengths, int* cp_indices, 1.20 unsigned int* hashValues, TRAPS); 1.21 @@ -112,7 +116,14 @@ 1.22 // Needed for preloading classes in signatures when compiling. 1.23 // Returns the symbol is already present in symbol table, otherwise 1.24 // NULL. NO ALLOCATION IS GUARANTEED! 1.25 - static symbolOop probe(const char* name, int len); 1.26 + static symbolOop probe(const char* name, int len) { 1.27 + unsigned int ignore_hash; 1.28 + return lookup_only(name, len, ignore_hash); 1.29 + } 1.30 + static symbolOop probe_unicode(const jchar* name, int len) { 1.31 + unsigned int ignore_hash; 1.32 + return lookup_only_unicode(name, len, ignore_hash); 1.33 + } 1.34 1.35 // Histogram 1.36 static void print_histogram() PRODUCT_RETURN;