Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Thursday, June 13, 2019
 
 

libadimalloc (3LIB)

Name

libadimalloc - Application Data Integrity aware memory allocation library.

Synopsis

cc [ flag... ] file... -ladimalloc [ library... ]

Description

Functions in this library provide scalable object-caching memory allocation with multithreaded application support.

The libadimalloc library provides detection of buffer overruns, out of bounds pointers, stale pointers, and use after free errors using the SPARC Application Data Integrity (ADI) APIS. For more information, see the adi(7) man page.

The libadimalloc library also provides extensive debugging support, including detection of memory leaks, multiple frees, use of uninitialized data, use of freed data, and many other common programming errors. For more information, see the mdb(1) man page.

For legacy reasons ADIHEAP is not supported by libadimalloc. A dedicated mode, adiheap_compat is provided to support it. For more information, see the adimalloc_debug(3MALLOC) man page.

Interfaces

The shared object libadimalloc.so.1 provides the public interfaces defined below. For more information on shared object interfaces, see the intro(3) man page.

See malloc(3C) for information on these interfaces:

calloc
free
malloc
malloc_usable_size
memalign
realloc
valloc

The shared object also provides the following debugging interfaces. For more information, see the adimalloc_debug(3MALLOC) man page.

adimalloc_debug_init
adimalloc_logging_init

Files

/lib/sparcv9/libadimalloc.so.1

64-bit shared object

Usage

See malloc(3C) for an overview and comparison of all the allocation libraries provided by Oracle Solaris.

Attributes

See attributes(7) for descriptions of the following attributes:

The attribute type and attribute values for the functions calloc(), free(), malloc(), malloc_usable_size(), memalign(), realloc(), and valloc() are as follows:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Architecture
SPARC
Availability
system/library
Interface Stability
Committed
MT-Level
MT-Safe

The attribute type and attribute value for the functions, adimalloc_debug_init() and adimalloc_logging_init() is as follows:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Volatile

See Also

adi(2), adi(3C), malloc(3C), intro(3), adimalloc_debug(3MALLOC), adi(7), attributes(7)

Notes

This API is Volatile and as such can change at any time and for any reason. See the Volatile entry of the Classifications section of attributes(7).