--- a/hotspot/src/share/vm/oops/constMethod.hpp Fri Jan 11 09:53:24 2013 -0800
+++ b/hotspot/src/share/vm/oops/constMethod.hpp Mon Jan 14 11:01:39 2013 -0500
@@ -122,7 +122,12 @@
class MethodParametersElement VALUE_OBJ_CLASS_SPEC {
public:
u2 name_cp_index;
- u4 flags;
+ // This has to happen, otherwise it will cause SIGBUS from a
+ // misaligned u4 on some architectures (ie SPARC)
+ // because MethodParametersElements are only aligned mod 2
+ // within the ConstMethod container u2 flags_hi;
+ u2 flags_hi;
+ u2 flags_lo;
};