120 |
120 |
121 // Utility class describing elements in method parameters |
121 // Utility class describing elements in method parameters |
122 class MethodParametersElement VALUE_OBJ_CLASS_SPEC { |
122 class MethodParametersElement VALUE_OBJ_CLASS_SPEC { |
123 public: |
123 public: |
124 u2 name_cp_index; |
124 u2 name_cp_index; |
125 u4 flags; |
125 // This has to happen, otherwise it will cause SIGBUS from a |
|
126 // misaligned u4 on some architectures (ie SPARC) |
|
127 // because MethodParametersElements are only aligned mod 2 |
|
128 // within the ConstMethod container u2 flags_hi; |
|
129 u2 flags_hi; |
|
130 u2 flags_lo; |
126 }; |
131 }; |
127 |
132 |
128 |
133 |
129 class ConstMethod : public MetaspaceObj { |
134 class ConstMethod : public MetaspaceObj { |
130 friend class VMStructs; |
135 friend class VMStructs; |