• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/db-4.7.25.NC/docs/ref/am_conf/
1<!--$Id: malloc.so,v 10.20 2001/04/03 16:27:58 bostic Exp $-->
2<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
3<!--See the file LICENSE for redistribution information.-->
4<html>
5<head>
6<title>Berkeley DB Reference Guide: Non-local memory allocation</title>
7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
9</head>
10<body bgcolor=white>
11<table width="100%"><tr valign=top>
12<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Access Methods</dl></b></td>
13<td align=right><a href="../am_conf/dup.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../am_conf/bt_compare.html"><img src="../../images/next.gif" alt="Next"></a>
14</td></tr></table>
15<p align=center><b>Non-local memory allocation</b></p>
16<p>Berkeley DB allocates memory for returning key/data pairs and statistical
17information which becomes the responsibility of the application.
18There are also interfaces where an application will allocate memory
19which becomes the responsibility of Berkeley DB.</p>
20<p>On systems in which there may be multiple library versions of the
21standard allocation routines (notably Windows NT), transferring memory
22between the library and the application will fail because the Berkeley DB
23library allocates memory from a different heap than the application
24uses to free it, or vice versa.  To avoid this problem, the
25<a href="../../api_c/env_set_alloc.html">DB_ENV-&gt;set_alloc</a> and <a href="../../api_c/db_set_alloc.html">DB-&gt;set_alloc</a> methods can be used to
26give Berkeley DB references to the application's allocation routines.</p>
27<table width="100%"><tr><td><br></td><td align=right><a href="../am_conf/dup.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../am_conf/bt_compare.html"><img src="../../images/next.gif" alt="Next"></a>
28</td></tr></table>
29<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
30</body>
31</html>
32