[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #27208 [Core Tor/Tor]: add API for allocating aligned memory



#27208: add API for allocating aligned memory
-----------------------------+------------------------------------
 Reporter:  cyberpunks       |          Owner:  (none)
     Type:  enhancement      |         Status:  needs_revision
 Priority:  Medium           |      Milestone:  Tor: 0.3.6.x-final
Component:  Core Tor/Tor     |        Version:
 Severity:  Normal           |     Resolution:
 Keywords:  rust-wants rust  |  Actual Points:
Parent ID:  #23882           |         Points:
 Reviewer:  dgoulet          |        Sponsor:
-----------------------------+------------------------------------

Comment (by nickm):

 It might be incorrect to treat malloc(sz) as meaning aligned_malloc(sz,1).
 malloc() is required to return memory that is aligned suitably for any
 built-in type, whereas aligned_malloc(sz,1) doesn't have that requirement,
 FWICT.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27208#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs