mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
6700107: java/lang/Class/forName/TooManyDimensions.java crashes with SIGSEGV in c2 compiler with fastdebug
ObjArrayKlass::compute_modifier_flags was unnecessarily recursive Reviewed-by: kamg
This commit is contained in:
parent
04b0ebb9c1
commit
d1aacc7cdf
1 changed files with 2 additions and 2 deletions
|
@ -475,8 +475,8 @@ jint objArrayKlass::compute_modifier_flags(TRAPS) const {
|
|||
assert(Universe::is_bootstrapping(), "partial objArray only at startup");
|
||||
return JVM_ACC_ABSTRACT | JVM_ACC_FINAL | JVM_ACC_PUBLIC;
|
||||
}
|
||||
// Recurse down the element list
|
||||
jint element_flags = Klass::cast(element_klass())->compute_modifier_flags(CHECK_0);
|
||||
// Return the flags of the bottom element type.
|
||||
jint element_flags = Klass::cast(bottom_klass())->compute_modifier_flags(CHECK_0);
|
||||
|
||||
return (element_flags & (JVM_ACC_PUBLIC | JVM_ACC_PRIVATE | JVM_ACC_PROTECTED))
|
||||
| (JVM_ACC_ABSTRACT | JVM_ACC_FINAL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue