From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p35HAxXf009842 for ; Tue, 5 Apr 2011 19:10:59 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvABANdMm03RVda2kGdsb2JhbACYYI0BCBQBAQEBBwsNBxQEIYh5n0qKZoIjhF4wiF0BAQMFhWcEjSWJHjo X-IronPort-AV: E=Sophos;i="4.63,305,1299452400"; d="scan'208";a="96343085" Received: from mail-iw0-f182.google.com ([209.85.214.182]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 05 Apr 2011 19:10:40 +0200 Received: by iwn33 with SMTP id 33so969986iwn.27 for ; Tue, 05 Apr 2011 10:10:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=G2/EyDrgBJgK8XoTPHJqGQSJzcoUB2/idZ5G8QisABQ=; b=Cjwi5U5wFniYA34l/HXUOMU2K+OS6M7NMu1QUbGKcjR0oQGKIeM6awcfD11i+u+73v ZGDbNksBB8CU2QAdhoFluhY6EGEUEioc5atKLKoYJBMYFeqVYcGMisJEDTpo3KH8t/ij LHTwowBR0rga8SvZMECyBFlZLex/7vABeDhy8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=fLjlG0WmmXdNH1SosVkfRMcowjtZVwJSbkXEX48AsR9X5VPQ83H8e4nLdDwq97Vj19 52a4w6wE/Mr5BKM4r9O1X/1QrI8N7S1MKLGbTXihSD/G6Cs5wTZNaez4Hp56ayLUOj8X 846ZIMT9kA/IJfZHFmDk+SyK92Ax/Nwv6KFjw= MIME-Version: 1.0 Received: by 10.231.66.146 with SMTP id n18mr6319012ibi.14.1302023439430; Tue, 05 Apr 2011 10:10:39 -0700 (PDT) Received: by 10.231.199.211 with HTTP; Tue, 5 Apr 2011 10:10:39 -0700 (PDT) Date: Tue, 5 Apr 2011 18:10:39 +0100 Message-ID: From: Pedro Borges To: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 Subject: [Caml-list] Long running finalizers and global lock Hi again, the reference manual states: > Note: the finalize, compare, hash, serialize and deserialize functions attached to custom block > descriptors must never trigger a garbage collection. Within these functions, do not call any of > the Caml allocation functions, and do not perform a callback into Caml code. Do not use > CAMLparam to register the parameters to these functions, and do not use CAMLreturn to return the result. I have a long running function inse a finalizer is it safe to release and acquire the runtime lock ? Best Regards