src/share/vm/oops/constMethod.hpp

changeset 4431
f9eb431c3efe
parent 4398
ade95d680b42
child 4497
16fb9f942703
     1.1 --- a/src/share/vm/oops/constMethod.hpp	Fri Jan 11 09:53:24 2013 -0800
     1.2 +++ b/src/share/vm/oops/constMethod.hpp	Mon Jan 14 11:01:39 2013 -0500
     1.3 @@ -122,7 +122,12 @@
     1.4  class MethodParametersElement VALUE_OBJ_CLASS_SPEC {
     1.5   public:
     1.6    u2 name_cp_index;
     1.7 -  u4 flags;
     1.8 +  // This has to happen, otherwise it will cause SIGBUS from a
     1.9 +  // misaligned u4 on some architectures (ie SPARC)
    1.10 +  // because MethodParametersElements are only aligned mod 2
    1.11 +  // within the ConstMethod container  u2 flags_hi;
    1.12 +  u2 flags_hi;
    1.13 +  u2 flags_lo;
    1.14  };
    1.15  
    1.16  

mercurial