From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17536.10247.604874.412137@domain.hid> Date: Fri, 2 Jun 2006 13:59:03 +0200 In-Reply-To: <447F72A0.8000000@domain.hid> References: <447F72A0.8000000@domain.hid> From: Gilles Chanteperdrix Subject: [Xenomai-core] Re: [patch] static buffer for timer-bheap List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: xenomai@xenomai.org Jan Kiszka wrote: > Hi, > > this patch moves the heap for scalable timer queues into the xnpod_t > structure instead of allocating it dynamically. This simplifies the pod > initialisation and cleanup, which was not fully robust in this regard > anyway. If a pod is now considered too large (but we are discussion > kbytes here), allocating its buffer via xnarch_sysalloc would be an option. > > In case this patch is acceptable, I would suggest merging it before 2.2 > due to the contained (minor) fix. Since this memory is specific to the data structure, its allocation seems better by the data structure functions. It also make the binary heap structure reusable for other purposes. Could you explain why the current scheme is not robust ? -- Gilles Chanteperdrix.