savannah-register-public
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-register-public] [task #4856] Submission of spmalloc - Stephan


From: Stephan Peijnik
Subject: [Savannah-register-public] [task #4856] Submission of spmalloc - Stephan Peijnik's malloc
Date: Thu, 20 Oct 2005 17:21:47 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20051006 Firefox/1.4.1

URL:
  <http://savannah.nongnu.org/task/?func=detailitem&item_id=4856>

                 Summary: Submission of spmalloc - Stephan Peijnik's malloc
                 Project: Savannah Administration
            Submitted by: speijnik
            Submitted on: Thu 10/20/05 at 17:21
         Should Start On: Thu 10/20/05 at 00:00
   Should be Finished on: Sun 10/30/05 at 00:00
                Category: Project Approval
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Percent Complete: 0%
             Open/Closed: Open
                  Effort: 0.00

    _______________________________________________________

Details:

A new project has been registered at Savannah 
The project account will remain inactive until a site admin approve or
discard the registration.


######### REGISTRATION ADMINISTRATION #########

While this item will be useful to track the registration process, approving
or discarding the registration must be done using the specific "Group
Administration" page, accessible only to site administrators, effectively
logged as site administrators (superuser):

  <https://savannah.nongnu.org/admin/groupedit.php?group_id=8059>


######### REGISTRATION DETAILS ######### 

Full Name:
----------
  spmalloc - Stephan Peijnik's malloc

System Group Name:
-----------------
  spmalloc

Type:
-----
  non-GNU software &amp; documentation

License:
-------- 
  GNU General Public License V2 or later

Description:
------------
  spmalloc is aimed at providing per-module memory statistics for programs
that use modules (dynamically linkable objects) for extending their
features.

This is achieved by having an array of a structure containing pointers,
memory sizes and the allocator module's base address.
Getting the pointer and the size of the memory chunk isn't that much of a
problem but getting a module's base address requires combining a gcc-internal
call and dladdr().
As the sentence above already suggests the code is specific to GNU/Linux 
and/or gcc. It may work on other OS' like the various BSD flavours but that
has not been tested yet.
It also adds some sanity checking to calls to its memory management functions
immediatly abort()'ing the program on any error. This is done for several
reasons. The two most important ones would be saving the user from data
corruption (ie. when writing to a file) and helping developers to find bugs
as free'ing an already free'd memory chunk will for example result in an
abort().

However, it does not replace the system's memory manegement functions at all
and indeed makes use of those itself.

The code is not a stand-alone library (but might be made one later on) but is
meant to be compiled into any project using it.

The source code may be obtained from http://www.sp.or.at/spmalloc/ which
contains a link to a tar-gz archive.









    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?func=detailitem&item_id=4856>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]