equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2019, 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. |
130 // ciSymbol::make_impl |
130 // ciSymbol::make_impl |
131 // |
131 // |
132 // Make a ciSymbol from a C string (implementation). |
132 // Make a ciSymbol from a C string (implementation). |
133 ciSymbol* ciSymbol::make_impl(const char* s) { |
133 ciSymbol* ciSymbol::make_impl(const char* s) { |
134 EXCEPTION_CONTEXT; |
134 EXCEPTION_CONTEXT; |
135 TempNewSymbol sym = SymbolTable::new_symbol(s, THREAD); |
135 TempNewSymbol sym = SymbolTable::new_symbol(s); |
136 if (HAS_PENDING_EXCEPTION) { |
|
137 CLEAR_PENDING_EXCEPTION; |
|
138 CURRENT_THREAD_ENV->record_out_of_memory_failure(); |
|
139 return ciEnv::_unloaded_cisymbol; |
|
140 } |
|
141 return CURRENT_THREAD_ENV->get_symbol(sym); |
136 return CURRENT_THREAD_ENV->get_symbol(sym); |
142 } |
137 } |
143 |
138 |
144 // ------------------------------------------------------------------ |
139 // ------------------------------------------------------------------ |
145 // ciSymbol::make |
140 // ciSymbol::make |