Commit 355d8993 by Tom Tromey Committed by Tom Tromey

resolve.cc (_Jv_PrepareClass): Round up class size to multiple of alignment.

	* resolve.cc (_Jv_PrepareClass): Round up class size to multiple
	of alignment.

From-SVN: r65617
parent 88702c45
2003-04-14 Tom Tromey <tromey@redhat.com>
* resolve.cc (_Jv_PrepareClass): Round up class size to multiple
of alignment.
2003-04-10 Tom Tromey <tromey@redhat.com> 2003-04-10 Tom Tromey <tromey@redhat.com>
* verify.cc (pop64): Removed. * verify.cc (pop64): Removed.
......
...@@ -513,7 +513,10 @@ _Jv_PrepareClass(jclass klass) ...@@ -513,7 +513,10 @@ _Jv_PrepareClass(jclass klass)
} }
} }
// set the instance size for the class // Set the instance size for the class. Note that first we round it
// to the alignment required for Object; this keeps us in sync with
// our current ABI.
instance_size = ROUND (instance_size, __alignof__ (java::lang::Object));
clz->size_in_bytes = instance_size; clz->size_in_bytes = instance_size;
// allocate static memory // allocate static memory
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment