aboutsummaryrefslogtreecommitdiffstats
path: root/src/mem_pool.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix arguments order in system call.Vsevolod Stakhov2013-05-281-1/+1
|
* * Use murmur hash for all hashes as it is more efficient and provides more ↵Vsevolod Stakhov2012-10-081-1/+1
| | | | | | uniform distribution as glib's default one. * Fix probability renormalization while using advanced classification.
* Avoid global variables in map logic.Vsevolod Stakhov2012-09-191-0/+1
| | | | * Add support of simple maps like '/path/to/file' as it seems to be more comfortable than 'file:///...'
* Use universal mutex type to avoid glib collisions.Vsevolod Stakhov2012-09-191-16/+5
|
* Another debian license fix.Vsevolod Stakhov2012-09-101-1/+1
| | | | | Add apache license for regexp that were delivered from SpamAssassin project. Fix debian/copyright for src/dns.c.
* Update copyright (required by debian).Vsevolod Stakhov2012-09-041-3/+3
|
* * Rework thread pools locking logic to avoid global lua mutex usage.Vsevolod Stakhov2012-08-221-0/+3
| | | | | | Fixed several memory leaks with modern glib. Fixed memory leak in dkim code. Fixed a problem with static global variables in shared libraries.
* Strict prototypes.Vsevolod Stakhov2012-06-051-1/+1
|
* Add temporary pages to pool allocator to allow reset of some pool data.Vsevolod Stakhov2012-02-151-14/+107
|
* Fix build.Vsevolod Stakhov2012-02-151-1/+1
|
* * More things to be thread-safe:Vsevolod Stakhov2012-02-131-0/+26
| | | | | | | - pool allocator is now thread-safe - lua subsystem now holds lock to avoid lua stack corruption - events subsystem now using conditional variables to wait for async_threads - insert_result is thread-safe now
* Fix access to already freed memory.Vsevolod Stakhov2011-08-041-1/+0
| | | | Remove assert.
* Fix signness in arithmetic operations.Vsevolod Stakhov2011-08-041-20/+19
|
* Fix very bad bug in a memory pool allocator.Vsevolod Stakhov2011-07-261-2/+3
| | | | Speed up inserting symbols by hashing them.
* Zero memory of pool allocator statistic.Vsevolod Stakhov2011-07-251-0/+1
|
* Add workaround for clang under linux.Vsevolod Stakhov2011-07-211-1/+1
| | | | Fix problems found by static analyzing.
* * Welcome 0.4.0Vsevolod Stakhov2011-06-241-12/+8
| | | | | | | | | | | | | | | | | | Uncompatible changes: - Statistics is uncompatible in utf8 mode Major changes: - Improved utf8 mode - Convert all characters to lowercase in statistics - Skip URL's in statistics - Improve speed of bayes classifier by using integer arithmetics - Fixed statfiles synchronization that was broken for a long time - Synchronization is now configurable Minor changes: - Bugfixes - Removed some of legacy code - Types polishing
* * Rework build process:Vsevolod Stakhov2011-05-101-0/+1
| | | | | | | | | | - add librspamdserver - link this library to all daemons and utils of rspamd - use subdirectories more often * Rework global variables logic - move them to the main process * Fix logging to handle utf-8 correctly * Add statshow utility and make it working * Move printf functions to separate source file
* Fix memory corruption in memory pools library.Vsevolod Stakhov2011-03-151-11/+26
| | | | While in here use guint8 for all pointers.
* Optimization.Vsevolod Stakhov2011-03-141-15/+3
|
* Fix race in surbl module.Vsevolod Stakhov2011-03-101-1/+6
| | | | Add more debugging to destructors in pools.
* * Fix alignment in memory_pool library (thanks to Marcin Rzewucki)Vsevolod Stakhov2011-02-061-5/+6
|
* Fixes bugs found with clang-static analyser.Vsevolod Stakhov2010-10-111-15/+43
| | | | | Strictly follow c99 standart. Turn on pedantic c99 checks.
* Fixes types (use glib ones) no functional change.Vsevolod Stakhov2010-10-061-21/+21
| | | | | Now all comments in commit logs beginning with '*' would be included in changelog, so important changes would be separated from small ones.
* * Make DNS resolver workingVsevolod Stakhov2010-07-081-4/+8
| | | | | | * Many improvements to rspamd test suite: now it CAN be used for testing rspamd functionality * Write DNS resolver tests * Fix issues with memory_pool mutexes and with creating of statfiles
* * Fix compatibility issuesVsevolod Stakhov2010-06-231-5/+5
|
* * Add more logic for dynamic rulesVsevolod Stakhov2010-06-081-0/+17
| | | | | * Add documentation for dynamic rules * Add ability to make negations in networks in dynamic rules
* * Fix config reloadingVsevolod Stakhov2010-05-131-0/+29
| | | | | * Add ability to register variables in memory pools (hash with known lifetime) * Avoid of using of some global variables
* * Retab, no functional changesVsevolod Stakhov2009-10-021-106/+107
|
* * Various bugfixes in map and radix codeVsevolod Stakhov2009-09-031-6/+12
|
* * Improve locking by using asm 'pause' commandVsevolod Stakhov2009-06-171-7/+9
| | | | * Try to fix read locking in rwlock
* * Try to fix locking problem with double unlockingVsevolod Stakhov2009-06-171-1/+1
|
* * Use glib slice allocator for memory pool allocator, optimize chunk sizeVsevolod Stakhov2009-06-161-9/+10
|
* * Add deadlock detection for memory pool locks and imporve mutexes APIVsevolod Stakhov2009-05-211-30/+54
|
* * Improve performance of IO reading by reworking IO dispatcher algorithmVsevolod Stakhov2009-05-081-0/+17
|
* * Add counters for rspamd symbolsVsevolod Stakhov2009-05-041-1/+30
| | | | * Fix shared hashes
* * Add counter for oversized chunks: this parameter can improve performance, ↵Vsevolod Stakhov2009-04-211-0/+3
| | | | | | | for example if we have too many oversized chunks it is good decision to increase chunk size.
* * Fix 2 memory leaksVsevolod Stakhov2009-03-271-1/+0
| | | | * Fix uptime command output
* * Add statictics for all allocated poolsVsevolod Stakhov2009-03-261-0/+6
|
* * Fix many compile time warnings and polish codeVsevolod Stakhov2009-03-241-6/+4
|
* * New rspamd protocol (changed replies)Vsevolod Stakhov2009-03-031-1/+11
| | | | | | | | * Add ability to attach string lists to symbols * Check destructors and do not add identical destructors (argument and function) to pool's destructors * Remove 2 warnings when building with gmime22 * Attach url names to surbl symbols * Fix bug with blocking on read (I think it is linux specific thought)
* * Add ability to check bits from surbl repliesVsevolod Stakhov2009-03-021-1/+4
|
* * Fix memory corruption and lmtp handlingVsevolod Stakhov2009-02-251-8/+13
| | | | * Add e-mail address validation in lmtp
* * Prepare to migrate to cmake (still need to write install target and ↵Vsevolod Stakhov2009-02-161-31/+17
| | | | | | | | working with XS implicitly) * Move all system includes to one file where we detect availability of all that includes * Fix license misprint * Fix some issues with perl initializing
* * Add BSD license textVsevolod Stakhov2009-02-161-0/+24
|
* * Add some comments and documentationVsevolod Stakhov2009-02-051-0/+6
|
* * Fix bug with calling consolidation function after stop_pointVsevolod Stakhov2009-01-281-17/+33
| | | | | * Use shared memory for storing pool allocator statistics * Fix bug with processing statfiles results
* * Add new hash for storing hash data in shared memoryVsevolod Stakhov2009-01-271-5/+59
| | | | * Add rwlocks implementation (primitive) in memory pool library
* * Add simple locking interface to mem_pool libraryVsevolod Stakhov2008-11-261-3/+28
|
* * Reorganize structure of source filesVsevolod Stakhov2008-11-011-0/+360
* Adopt build system for new structure --HG-- rename : cfg_file.h => src/cfg_file.h rename : cfg_file.l => src/cfg_file.l rename : cfg_file.y => src/cfg_file.y rename : cfg_utils.c => src/cfg_utils.c rename : controller.c => src/controller.c rename : filter.c => src/filter.c rename : filter.h => src/filter.h rename : fstring.c => src/fstring.c rename : fstring.h => src/fstring.h rename : main.c => src/main.c rename : main.h => src/main.h rename : mem_pool.c => src/mem_pool.c rename : mem_pool.h => src/mem_pool.h rename : memcached-test.c => src/memcached-test.c rename : memcached.c => src/memcached.c rename : memcached.h => src/memcached.h rename : perl.c => src/perl.c rename : perl.h => src/perl.h rename : plugins/regexp.c => src/plugins/regexp.c rename : plugins/surbl.c => src/plugins/surbl.c rename : protocol.c => src/protocol.c rename : protocol.h => src/protocol.h rename : upstream.c => src/upstream.c rename : upstream.h => src/upstream.h rename : url.c => src/url.c rename : url.h => src/url.h rename : util.c => src/util.c rename : util.h => src/util.h rename : worker.c => src/worker.c