site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 9/17/08 6:20 PM, "Brian Mastenbrook" <brian@mastenbrook.net> wrote: -- Terry _______________________________________________ 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... On Sep 17, 2008, at 6:52 PM, Nathan Herring wrote: Fair enough. What’s the official behavior of malloc_zone_register supposed to be? If it’s supposed to not handle multiple- registrations, then I can post a documentation bug to better document that that’s the behavior and that furthermore it needn’t be called after malloc_create_zone. If it’s supposed to handle multiple- registrations (i.e., politely does nothing), then there’s clearly a bug either in it or somewhere in the Safari-used code that is revealed by it, and that needs to be radared. malloc_create_zone calls malloc_zone_register itself. That comment is a bit confusing, and I'm not sure under what circumstances anyone would want to call malloc_zone_register themselves. I'm also not sure why this leads to a spinlock, but clearly something doesn't like having the same zone in the zone list twice. Please file a different bug: "malloc_zone_register(0 of an already registered zone should result in an error". This email sent to site_archiver@lists.apple.com