1.1 --- a/src/share/vm/classfile/vmSymbols.cpp Thu Mar 15 13:37:13 2012 +0100 1.2 +++ b/src/share/vm/classfile/vmSymbols.cpp Fri Mar 23 11:16:05 2012 -0400 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. 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 @@ -79,7 +79,7 @@ 1.11 if (!UseSharedSpaces) { 1.12 const char* string = &vm_symbol_bodies[0]; 1.13 for (int index = (int)FIRST_SID; index < (int)SID_LIMIT; index++) { 1.14 - Symbol* sym = SymbolTable::new_symbol(string, CHECK); 1.15 + Symbol* sym = SymbolTable::new_permanent_symbol(string, CHECK); 1.16 _symbols[index] = sym; 1.17 string += strlen(string); // skip string body 1.18 string += 1; // skip trailing null 1.19 @@ -128,7 +128,7 @@ 1.20 // Spot-check correspondence between strings, symbols, and enums: 1.21 assert(_symbols[NO_SID] == NULL, "must be"); 1.22 const char* str = "java/lang/Object"; 1.23 - TempNewSymbol jlo = SymbolTable::new_symbol(str, CHECK); 1.24 + TempNewSymbol jlo = SymbolTable::new_permanent_symbol(str, CHECK); 1.25 assert(strncmp(str, (char*)jlo->base(), jlo->utf8_length()) == 0, ""); 1.26 assert(jlo == java_lang_Object(), ""); 1.27 SID sid = VM_SYMBOL_ENUM_NAME(java_lang_Object); 1.28 @@ -147,7 +147,7 @@ 1.29 // The string "format" happens (at the moment) not to be a vmSymbol, 1.30 // though it is a method name in java.lang.String. 1.31 str = "format"; 1.32 - TempNewSymbol fmt = SymbolTable::new_symbol(str, CHECK); 1.33 + TempNewSymbol fmt = SymbolTable::new_permanent_symbol(str, CHECK); 1.34 sid = find_sid(fmt); 1.35 assert(sid == NO_SID, "symbol index works (negative test)"); 1.36 }