This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: static alignment and hash sync


>>>>> "Hans" == Boehm, Hans <hans_boehm@hp.com> writes:

Hans> Is it hard to enforce 8 byte alignment for statically allocated
Hans> class objects if hash synchronization is enabled?

I think it can easily be done with `__attribute__((aligned (8)))'.
See the node `Variable Attributes' in the gcc manual.

Tony, could you try this?
It ought to be a simple addition to DECLARE_PRIM_TYPE.

As far as I know these are the only class objects statically allocated
in the runtime.  All the other statically allocated class objects are
generated by the compiler.  If those need additional alignment the it
would take a (probably trivial) compiler change.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]