site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Feb 13, 2006, at 9:00 PM, Theo Schlossnagle wrote: _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Using the vm_map() directly may be one approach. We already use pthread_mach_thread_np in part of the porting effort. As it will be allocating a tremendous amount of memory and efficient use is a goal, over-allocating and doing alignment ourselves isn't the right approach. All allocations larger than 4k are page-aligned by default. If you want blocks guaranteed to start on 64k virtual address boundaries, create a custom zone and factor all of your allocations thru one function, padding sizes to mod 64k, and throw away the first 1-15 pages (up to 60k) for the initial alignment. -- Shaun Wexler MacFOH http://www.macfoh.com "Problems cannot be solved by the same level of thinking that created them." - Albert Einstein This email sent to site_archiver@lists.apple.com
participants (1)
-
Shaun Wexler