9front - general discussion about 9front
 help / color / mirror / Atom feed
* APE malloc on amd64 not 64bit alligned.
@ 2020-03-08 21:01 Trevor Higgins
  2020-03-08 21:42 ` [9front] " ori
  0 siblings, 1 reply; 2+ messages in thread
From: Trevor Higgins @ 2020-03-08 21:01 UTC (permalink / raw)
  To: 9front

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 need another plan



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9front] APE malloc on amd64 not 64bit alligned.
  2020-03-08 21:01 APE malloc on amd64 not 64bit alligned Trevor Higgins
@ 2020-03-08 21:42 ` ori
  0 siblings, 0 replies; 2+ messages in thread
From: ori @ 2020-03-08 21:42 UTC (permalink / raw)
  To: plan9fullfrontal, 9front

> 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.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-08 21:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-08 21:01 APE malloc on amd64 not 64bit alligned Trevor Higgins
2020-03-08 21:42 ` [9front] " ori

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).