9front - general discussion about 9front
 help / color / mirror / Atom feed
From: ori@eigenstate.org
To: plan9fullfrontal@qs.co.nz, 9front@9front.org
Subject: Re: [9front] APE malloc on amd64 not 64bit alligned.
Date: Sun, 8 Mar 2020 14:42:32 -0700	[thread overview]
Message-ID: <78179A023495F178ECAB0D2302D514F8@eigenstate.org> (raw)
In-Reply-To: <0fa7882b-d950-5217-a15b-1e2ba09bd73a@qs.co.nz>

> I don't know if this is just an FYI or if it should be classified as a bug.
> 
> 99% of APE mallocs return XXXX4 or XXXXC , with 1% being XXXXXX0.
> 
> The kernel returns 96% XXXXX0 and 4% XXXXX8 (in one test of 1M random 
> sized mallocs).
> 
> Should APE malloc on amd64 return 64bit alligned pointers?
> 
> 
> Are many people using amd64 9front ?

we're *technically* within spec, since amd64
doesn't care about alignment unless you're
using the vector registers, so we're within
our rights to define the max alignment of a
type as 4.

it'd probably be a good idea to change it, since
some ported software may make assumptions.

yes, I'm on amd64.



      reply	other threads:[~2020-03-08 21:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-08 21:01 Trevor Higgins
2020-03-08 21:42 ` ori [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=78179A023495F178ECAB0D2302D514F8@eigenstate.org \
    --to=ori@eigenstate.org \
    --cc=9front@9front.org \
    --cc=plan9fullfrontal@qs.co.nz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).