A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-October/017880.html below:

[Python-Dev] GC head alignment issue

[Python-Dev] GC head alignment issue [Python-Dev] GC head alignment issueGuido van Rossum guido@python.org
Thu, 11 Oct 2001 10:08:32 -0400
See this bug report:

http://sourceforge.net/tracker/?func=detail&atid=105470&aid=467145&group_id=5470

The GC header adds 12 bytes to the start of the object, but for
objects (like complex) that contain a double and require double
alignment, that messes up the alignment.  Something needs to be done
about this: I'm guessing a configuration test for the required
alignment of double, and a rounding up of the GC head size to a
multiple of that.  Should affect only the AS_GC and FROM_GC macros in
gcmodule.c and the two uses of sizeof(PyGC_Head) there -- unless you
can figure out a way to add a pad field to the GC head only when
needed, then a change to objimpl.h might be sufficient.

So far this only affects HP hardware, but we can't trust that!

(It hasn't affected 2.0 or 2.1 because it only breaks when I *subclass*
complex.)

--Guido van Rossum (home page: http://www.python.org/~guido/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4