APR::Pool

先日、CGI.pmのコードを見たときに見かけた。見慣れぬモジュール「APR::Pool」がきになったので、CPANへ行ってみました。

http://search.cpan.org/~pgollucci/mod_perl-2.0.2/docs/api/APR/Pool.pod

「Description」に

APR::Pool provides an access to APR pools, which are used for an easy memory management.

うん、

which are used for an easy memory management


メモリ管理用モジュールらしい。

用意されているAPIは以下で、「parent_get」とかまだ謎です。

* cleanup_register
* clear
* DESTROY
* destroy
* is_ancestor
* new
* parent_get
* tag