This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: static alignment and hash sync
- To: "Boehm, Hans" <hans_boehm at hp dot com>
- Subject: Re: static alignment and hash sync
- From: Tom Tromey <tromey at redhat dot com>
- Date: 07 Jun 2001 17:01:37 -0600
- Cc: "'alk at pobox dot com'" <alk at pobox dot com>, java at gcc dot gnu dot org
- References: <140D21516EC2D3119EE7009027876644049B5E82@hplex1.hpl.hp.com>
- Reply-To: tromey at redhat dot com
>>>>> "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