Commit Graph

112 Commits

Author SHA1 Message Date
Cedric BAIL 4a853cde86 eina: be able to track and display our memory over head when using malloc.
NOTE: it is worth enabling it and see EINA_LOG_INFO displaying how much memory
we are wasting. Should help tune our memory allocator usage.


SVN revision: 67296
2012-01-18 17:47:05 +00:00
Mike Blumenkrantz 66792e4a85 fix some format string errors
SVN revision: 66016
2011-12-08 04:21:25 +00:00
Mike Blumenkrantz 6b67e93891 fix shadow var warning
SVN revision: 66014
2011-12-08 04:18:12 +00:00
Boris Faure e6119fa4d9 remove .cvsignore files
SVN revision: 60246
2011-06-12 21:38:37 +00:00
Vincent Torri 4f484b58f5 do not enter the modules dir if they are not built
SVN revision: 58971
2011-04-27 16:15:41 +00:00
Cedric BAIL bd1337f4cd eina: fix api to actually work as expected.
SVN revision: 58871
2011-04-24 16:49:48 +00:00
Cedric BAIL f7d9487aff eina: starting to use eina_lock.
SVN revision: 58869
2011-04-24 15:54:09 +00:00
Vincent Torri 694a364ced Eina: Fix uninstallation of the mempools modules
SVN revision: 58859
2011-04-24 09:11:11 +00:00
Cedric BAIL 90801855db eina: prevent NULL offsetting.
SVN revision: 58560
2011-04-11 17:28:16 +00:00
Cedric BAIL 29639eea35 eina: add eina_mempool_repack.
WARNING: HIGHLY UNTESTED PIECE OF CODE ! USE IT AT YOUR OWN RISK !


SVN revision: 58554
2011-04-11 14:07:42 +00:00
Carsten Haitzler a457791496 remove.
SVN revision: 57387
2011-02-27 14:40:54 +00:00
Carsten Haitzler 949e428ca1 make label not have nothing after it. fix err when valgrind and
threads disabled.



SVN revision: 57373
2011-02-27 11:27:02 +00:00
Vincent Torri b0975aa65a Eina chained mempool:
Fix a compilation failure when --disable-posix-threads
--disable-valgrind are passed to configure

When --disable-posix-threads --disable-valgrind are passed
to configure, a label is at the end of a block. Just add a
return to fix that problem.



SVN revision: 57290
2011-02-24 07:05:50 +00:00
Cedric BAIL 3a058ac014 * eina: revert and fix a typo that make stuff even faster.
SVN revision: 56712
2011-02-04 14:03:18 +00:00
Tom Hacohen f2afb18e00 Eina: reverted commit 56637 (scalability and whatever improvements) it had HUGE leaks.
SVN revision: 56695
2011-02-03 20:04:03 +00:00
Cedric BAIL b409910a2a * eina: improve speed and scalability a lot.
SVN revision: 56637
2011-02-01 18:10:03 +00:00
Vincent Torri bd8506e727 warning--
SVN revision: 55486
2010-12-11 07:02:25 +00:00
Vincent Torri 84b6c26d99 warning--
SVN revision: 55477
2010-12-11 00:41:31 +00:00
P Purkayastha fad048f1d2 From: P Purkayastha <ppurka@gmail.com>
Subject: Re: [e-users] eina: sandbox violation on emerge

On 11/21/2010 12:14 AM, P Purkayastha wrote:
> Hi,
> it seems eina is triggering a sandbox violation on emerge. Essentially
> it tries to remove a file present in / while installing. Seems to be
> something new added in revision r54731:
>
http://trac.enlightenment.org/e/changeset/54731/trunk/eina/src/modules/mp
> The build log is attached.

Replacing the $(controllerdir) with $(DESTDIR)$(controllerdir) makes 
portage happy, and the installation succeeds:

cd "$S/src/modules/mp"
find . -name Makefile.am -exec sed -i -e '/rm -f 
\$(controllerdir)/s/\$/\$(DESTDIR)\$/' {} \;



SVN revision: 54853
2010-11-23 07:05:43 +00:00
Vincent Torri 4f358c2c58 remove useless .la file
SVN revision: 54731
2010-11-20 00:03:55 +00:00
Tiago Rezende Campos Falcao fd1c8603ee Removing dead assignment.
Reported in:
http://people.profusion.mobi/~lfelipe/static_analysis/efl/efl-53990/eina/2010-10-29-1/report-w3Z1oM.html#EndPath

SVN revision: 53999
2010-10-29 17:19:19 +00:00
Carsten Haitzler 788a3357e9 dont free null ptrs eh?
SVN revision: 53944
2010-10-28 03:46:52 +00:00
Gustavo Sverzut Barbieri a528a88fe0 fix amalgamation build
SVN revision: 53821
2010-10-23 20:57:08 +00:00
Cedric BAIL e199293a56 * eina: remove unecessary free.
SVN revision: 53817
2010-10-23 17:56:48 +00:00
Vincent Torri f9da29e6a6 put EFL_DEBUG_THREADS inside EFL_HAVE_POSIX_THREADS
SVN revision: 53816
2010-10-23 17:17:03 +00:00
Cedric BAIL 4b1e2abc23 * eina: improve threads and debugging support in one big mempool.
SVN revision: 53815
2010-10-23 16:56:36 +00:00
Carsten Haitzler 8055b915b7 windows mutex shutdown correctness++
SVN revision: 53801
2010-10-23 07:52:51 +00:00
Carsten Haitzler 8074415ffc slight mistake - trash cleanup on shutdown didnt null out base
SVN revision: 53797
2010-10-23 04:40:30 +00:00
Carsten Haitzler 51e3cd6419 lets lock del too eh?
SVN revision: 53796
2010-10-23 04:36:52 +00:00
Carsten Haitzler 222c59ba12 cedric.. has been a bad boy. cleaning up some of his mess. still have
a leak somewhere. very very slow now.



SVN revision: 53793
2010-10-23 03:45:06 +00:00
Rafael Fonseca 5b4996881e Add valgrind support to one_big mempool.
SVN revision: 53428
2010-10-14 19:28:32 +00:00
Rafael Fonseca 9733a55c22 Mark memory as accessable before popping it from stack.
When we push a memory to the trash stack we mark it as unaccessable. So we
should mark it as accessible before returning it to the user.



SVN revision: 53427
2010-10-14 19:24:00 +00:00
Rafael Fonseca 4bd0432caf Just mark memory as freed after actually freeing it.
Otherwise valgrind would complain about invalid memory access.



SVN revision: 53426
2010-10-14 19:19:13 +00:00
Rafael Fonseca 6485492cbe Make valgrind know about eina mempools.
Because mempools generally allocate a big memory area and distribute chunks of
that area to the users, valgrind can not know about logical invalid access. By
using some valgrind macros we can tell valgrind about mempools and which area
can be accessed or not.

To start with I have just done valgrind integration on chained mempool but soon
it will be done for one_big too.

The code below is an example on which valgrind wouldn't complain without this
patch:

@code
#include <Eina.h>

int
main(int argc, char *argv[])
{
    int i, *pool[4];
    Eina_Mempool *mp;

    eina_init();
    mp = eina_mempool_add("chained_mempool", "test", NULL, sizeof(int), 4);

    for (i = 0; i < 4; i++) {
        pool[i] = eina_mempool_malloc(mp, sizeof(int));
        *pool[i] = i;
    }

    printf("Valid mp pointer: pool[0] = %d\n", *pool[0]);
    eina_mempool_free(mp, pool[0]);
    printf("Freed mp pointer: pool[0] = %d\n", *pool[0]);

    for (i = 1; i < 4; i++)
        eina_mempool_free(mp, pool[i]);

    eina_mempool_del(mp);
    eina_shutdown();

    return 0;
}
@endcode



SVN revision: 53405
2010-10-14 15:18:15 +00:00
Cedric BAIL 39a6e2df5a * eina: use pthread_equal.
SVN revision: 53400
2010-10-14 14:17:48 +00:00
Cedric BAIL 7f9845c66f * eina: make Vincent happy.
SVN revision: 53362
2010-10-13 16:30:22 +00:00
Cedric BAIL f9b8578ea6 * eina: add assert to ease tracking down efl misuse with threads.
SVN revision: 53360
2010-10-13 15:35:56 +00:00
Cedric BAIL a44992380f * eina: easy speed improvement by reducing operation of mempool.
SVN revision: 53349
2010-10-13 12:12:45 +00:00
Cedric BAIL 0d02671e99 * eina: improve chained mempool speed.
By removing pthread lock when thread safety is not required.
	By not walking over the buffer for nothing.


SVN revision: 53310
2010-10-12 16:53:30 +00:00
Cedric BAIL 80bbb4584c * eina: call malloc only when content is requested from the pool.
SVN revision: 52543
2010-09-21 15:18:15 +00:00
Lucas De Marchi 33dcb37afe Fix common misspellings
The following misspellings were fixed:

asociated->associated
convertion->conversion
exemple->example
existant->existent
immediatly->immediately
isnt->isn't
loosing->losing
memeber->member
occured->occurred
occurence->occurrence
occurences->occurrences
ocurred->occurred
recomended->recommended
sucess->success
teh->the
tiem->time
usefull->useful




SVN revision: 51962
2010-09-08 03:21:16 +00:00
Mike Blumenkrantz 671f193066 fix -I for eina_private.h
THIS IS BROKEN IN ALPHA RELEASE. WHOEVER BROKE IT: SPANK SPANK SPANK!


SVN revision: 51683
2010-08-27 18:18:41 +00:00
Carsten Haitzler 1412fb1c94 and cppcheck yes -> init to NULL so check and free works.
SVN revision: 51550
2010-08-22 22:39:26 +00:00
Carsten Haitzler 8093b21ddb cppcheck -> shhh. yes. we know. leak.
SVN revision: 51549
2010-08-22 22:38:06 +00:00
Cedric BAIL 731e946df7 * eina: remove debug output.
SVN revision: 51048
2010-08-12 15:11:35 +00:00
Cedric BAIL 86a21376ad * eina: report when and where memleak come from.
SVN revision: 51040
2010-08-12 14:22:22 +00:00
Cedric BAIL e1d8b17d54 * eina: fix segv on NULL mempool.
SVN revision: 50833
2010-08-05 12:36:36 +00:00
Lucas De Marchi 0a4617ae38 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Cedric BAIL 85be5e4201 * eina: try to fix memory align on sparc.
SVN revision: 50680
2010-07-30 08:26:34 +00:00
Cedric BAIL 4010a9b18a * eina: fix wrong test in eina_big.
SVN revision: 50602
2010-07-28 18:10:53 +00:00