static alignment and hash sync
Tom Tromey
tromey@redhat.com
Thu Jun 7 15:48:00 GMT 2001
>>>>> "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
More information about the Java
mailing list