📄 alloc.so
字号:
m4_comment([$Id: alloc.so,v 1.12 2004/08/13 03:39:00 bostic Exp $])m4_ref_title(Upgrading m4_db Applications, [Release 3.3: DB-__GT__set_malloc, DB-__GT__set_realloc],, upgrade.3.3/getswap, upgrade.3.3/conflict)m4_p([dnlThere are two new methods in the m4_db 3.3 release:m4_ref(dbenv_set_alloc) and m4_ref(dbh_set_alloc). These functionsallow applications to specify a set of allocation functions for them4_db library to use when allocating memory to be owned by theapplication and when freeing memory that was originally allocated by theapplication.])m4_p([dnlThe new methods affect or replace the following historic methods:])m4_tagbeginm4_tag(DB-__GT__set_malloc, [dnlThe DB-__GT__set_malloc method has been replaced in its entirety.Applications using this method should replace the call with a callto m4_ref(dbh_set_alloc).])m4_tag(DB-__GT__set_realloc, [dnlThe DB-__GT__set_realloc method has been replaced in its entirety.Applications using this method should replace the call with a callto m4_ref(dbh_set_alloc).])m4_tag(m4_ref(dbh_stat), [dnlThe historic m4_arg(db_malloc) argument to the m4_refT(dbh_stat) hasbeen replaced. Applications using this method should do as follows:if the argument is NULL, it should simply be removed. If non-NULL,it should be replaced with a call to m4_ref(dbh_set_alloc).])m4_tag(lock_stat, [dnlThe historic m4_arg(db_malloc) argument to the lock_stat function hasbeen replaced. Applications using this function should do as follows:if the argument is NULL, it should simply be removed. Ifnon-NULL, it should be replaced with a call to m4_ref(dbenv_set_alloc).])m4_tag(log_archive, [dnlThe historic m4_arg(db_malloc) argument to the log_archive function hasbeen replaced. Applications using this function should do as follows:if the argument is NULL, it should simply be removed. If non-NULL,it should be replaced with a call to m4_ref(dbenv_set_alloc).])m4_tag(log_stat, [dnlThe historic m4_arg(db_malloc) argument to the log_stat function hasbeen replaced. Applications using this function should do as follows:if the argument is NULL, it should simply be removed. If non-NULL,it should be replaced with a call to m4_ref(dbenv_set_alloc).])m4_tag(memp_stat, [dnlThe historic m4_arg(db_malloc) argument to the memp_stat function hasbeen replaced. Applications using this function should do as follows:if the argument is NULL, it should simply be removed. If non-NULL,it should be replaced with a call to m4_ref(dbenv_set_alloc).])m4_tag(txn_stat, [dnlThe historic m4_arg(db_malloc) argument to the txn_stat function hasbeen replaced. Applications using this function should do as follows:if the argument is NULL, it should simply be removed. If non-NULL,it should be replaced with a call to m4_ref(dbenv_set_alloc).])m4_tagendm4_p([dnlOne potential incompatibility for historic applications is that theallocation functions for a database environment must now be set beforethe environment is opened. Historically, m4_db applications could openthe environment first, and subsequently call the DB-__GT__set_mallocand DB-__GT__set_realloc methods; that use is no longer supported.])m4_page_footer
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -