static alignment and hash sync

Tony Kimball alk@pobox.com
Thu Jun 7 20:43:00 GMT 2001


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.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /