site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=ZEPH7OTRMQnW2utAxrEsmpmOITwbOk06MbNXfzQRjgE=; b=QqXliEgxMCQ8ewYTYoeOrsIKeaW4T6P0gVz2qU78gJnQbdl4nR4Ai7grbJk+XryOU1 om0lLSlXoF1EQrB9lGlOYOL8uHEMoGs6POVvRUAtMawxvFCJ3X5DNd7jWhABCcMDC/f6 PyWvPKZauLFjACbX1gDEBJO0dTMCdE0P2aiWA= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=H/m2fjn9VPsXCJbh3Y53POjn9syoEJkZYC5n+P2zOtMbsB9g7W89CDJL8g7dxKu7+F BT0DF6hbGrrWge2EnOAAVIEbuePNt7Wa+JmLrXvW3SK5DtCs5F6fR2sYPEis4qU7TAov ZXx7V5pUItneOskSBZWMx/316hQFXxdFqJd8U= On Sep 17, 2008, at 6:08 PM, Nathan Herring 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... Gah. Calling malloc_create_zone followed by malloc_zone_register of said zone is causing the problem. Omitting the register seems to work fine and doesn't cause the hang. Is this legit? Are you not supposed to register a zone after creation? The comments in malloc/malloc.h say that malloc_zone_register "regisers a freshly created zone; should typically be called after a zone has been created". Or this function only for zones you're building from scratch (i.e., filling out the structs)?
From Google [I haven't bothered to actually download the darwin- source for malloc to make sure], but malloc_create_zone() calls malloc_zone_register() on the zone before returning. Given the lack of documentation, I would postulate that you should only call malloc_zone_register() for a zone that you somehow create yourself, without the use of malloc_create_zone(). This email sent to site_archiver@lists.apple.com
participants (1)
-
Eli Bach