Mercurial > hg > truffle
comparison src/share/vm/classfile/classFileError.cpp @ 2177:3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
Summary: move symbols from permgen into C heap and reference count them
Reviewed-by: never, acorn, jmasa, stefank
author | coleenp |
---|---|
date | Thu, 27 Jan 2011 16:11:27 -0800 |
parents | f95d63e2154a |
children | 1d1603768966 |
comparison
equal
deleted
inserted
replaced
2176:27e4ea99855d | 2177:3582bf76420e |
---|---|
29 | 29 |
30 // Keep these in a separate file to prevent inlining | 30 // Keep these in a separate file to prevent inlining |
31 | 31 |
32 void ClassFileParser::classfile_parse_error(const char* msg, TRAPS) { | 32 void ClassFileParser::classfile_parse_error(const char* msg, TRAPS) { |
33 ResourceMark rm(THREAD); | 33 ResourceMark rm(THREAD); |
34 Exceptions::fthrow(THREAD_AND_LOCATION, vmSymbolHandles::java_lang_ClassFormatError(), | 34 Exceptions::fthrow(THREAD_AND_LOCATION, vmSymbols::java_lang_ClassFormatError(), |
35 msg, _class_name->as_C_string()); | 35 msg, _class_name->as_C_string()); |
36 } | 36 } |
37 | 37 |
38 void ClassFileParser::classfile_parse_error(const char* msg, int index, TRAPS) { | 38 void ClassFileParser::classfile_parse_error(const char* msg, int index, TRAPS) { |
39 ResourceMark rm(THREAD); | 39 ResourceMark rm(THREAD); |
40 Exceptions::fthrow(THREAD_AND_LOCATION, vmSymbolHandles::java_lang_ClassFormatError(), | 40 Exceptions::fthrow(THREAD_AND_LOCATION, vmSymbols::java_lang_ClassFormatError(), |
41 msg, index, _class_name->as_C_string()); | 41 msg, index, _class_name->as_C_string()); |
42 } | 42 } |
43 | 43 |
44 void ClassFileParser::classfile_parse_error(const char* msg, const char *name, TRAPS) { | 44 void ClassFileParser::classfile_parse_error(const char* msg, const char *name, TRAPS) { |
45 ResourceMark rm(THREAD); | 45 ResourceMark rm(THREAD); |
46 Exceptions::fthrow(THREAD_AND_LOCATION, vmSymbolHandles::java_lang_ClassFormatError(), | 46 Exceptions::fthrow(THREAD_AND_LOCATION, vmSymbols::java_lang_ClassFormatError(), |
47 msg, name, _class_name->as_C_string()); | 47 msg, name, _class_name->as_C_string()); |
48 } | 48 } |
49 | 49 |
50 void ClassFileParser::classfile_parse_error(const char* msg, int index, const char *name, TRAPS) { | 50 void ClassFileParser::classfile_parse_error(const char* msg, int index, const char *name, TRAPS) { |
51 ResourceMark rm(THREAD); | 51 ResourceMark rm(THREAD); |
52 Exceptions::fthrow(THREAD_AND_LOCATION, vmSymbolHandles::java_lang_ClassFormatError(), | 52 Exceptions::fthrow(THREAD_AND_LOCATION, vmSymbols::java_lang_ClassFormatError(), |
53 msg, index, name, _class_name->as_C_string()); | 53 msg, index, name, _class_name->as_C_string()); |
54 } | 54 } |
55 | 55 |
56 void StackMapStream::stackmap_format_error(const char* msg, TRAPS) { | 56 void StackMapStream::stackmap_format_error(const char* msg, TRAPS) { |
57 ResourceMark rm(THREAD); | 57 ResourceMark rm(THREAD); |
58 Exceptions::fthrow( | 58 Exceptions::fthrow( |
59 THREAD_AND_LOCATION, | 59 THREAD_AND_LOCATION, |
60 vmSymbolHandles::java_lang_ClassFormatError(), | 60 vmSymbols::java_lang_ClassFormatError(), |
61 "StackMapTable format error: %s", msg | 61 "StackMapTable format error: %s", msg |
62 ); | 62 ); |
63 } | 63 } |