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


Quoth Boehm, Hans on Thursday, 7 June:
: Is it hard to enforce 8 byte alignment for statically allocated class
: objects if hash synchronization is enabled?  That was definitely my intent.
: Is that not currently happening for Linux targets?

just annotating the static class declarations with
__attribute__(align(8)) *ought* to work, but I tried it:

#define DECLARE_PRIM_TYPE(NAME, SIG, LEN)			\
  _Jv_ArrayVTable _Jv_##NAME##VTable;				\
  java::lang::Class __attribute__ ((aligned (8))) 		\
	_Jv_##NAME##Class ((jobject) #NAME,			\
			   (jbyte) SIG, (jint) LEN,		\
			   (jobject) &_Jv_##NAME##VTable);

in prims.cc, and the cygwin compiler appeared to disregard the
annotation.  Perhaps I made a configuration error, however.


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