Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
7 years agoFirst step to create model storage.
navarro [Tue, 21 Feb 2012 12:51:06 +0000 (13:51 +0100)]
First step to create model storage.

7 years agoAdd function read write open close and stat to workstation model
navarro [Tue, 21 Feb 2012 12:39:35 +0000 (13:39 +0100)]
Add function read write open close and stat to workstation model

7 years agoAdd a variable to see if having set a bypass route or not.
navarro [Tue, 21 Feb 2012 11:28:41 +0000 (12:28 +0100)]
Add a variable to see if having set a bypass route or not.

7 years agoThis part brokes platform like g5k in full.
navarro [Tue, 21 Feb 2012 10:12:55 +0000 (11:12 +0100)]
This part brokes platform like g5k in full.
Commented for the moment but should be fix soon.

7 years agoFix generated platform. Right number of clusters
navarro [Tue, 21 Feb 2012 09:25:09 +0000 (10:25 +0100)]
Fix generated platform. Right number of clusters

7 years agoRemove gras_stub_generator from windows installer. Add the java binding to it. exp_20120216 exp_20120229
unknown [Thu, 16 Feb 2012 14:07:02 +0000 (15:07 +0100)]
Remove gras_stub_generator from windows installer. Add the java binding to it.
Must set SIMGRID_JAVA_SRC to find where is libSG_java.dll and examples.

7 years agoRename .ref for .def
unknown [Thu, 16 Feb 2012 14:05:28 +0000 (15:05 +0100)]
Rename .ref for .def

7 years agoMake only dll for windows
unknown [Wed, 15 Feb 2012 14:43:37 +0000 (15:43 +0100)]
Make only dll for windows

7 years agoProtect DllMain with ifndef GNUC
unknown [Wed, 15 Feb 2012 12:44:47 +0000 (13:44 +0100)]
Protect DllMain with ifndef GNUC

7 years agoCosmetics
unknown [Wed, 15 Feb 2012 09:32:28 +0000 (10:32 +0100)]
Cosmetics

7 years agoAdd winsock2 to link libraries (ws2_32)
unknown [Tue, 14 Feb 2012 13:26:23 +0000 (14:26 +0100)]
Add winsock2 to link libraries (ws2_32)

7 years ago[trace] simulated clock functions to be used by akypuera when tracing SMPI
Lucas Schnorr [Tue, 14 Feb 2012 14:44:39 +0000 (15:44 +0100)]
[trace] simulated clock functions to be used by akypuera when tracing SMPI

7 years agoFix detection of x86 processor for nsis
unknown [Mon, 13 Feb 2012 19:06:21 +0000 (20:06 +0100)]
Fix detection of x86 processor for nsis

7 years agoTurn off smpi on windows
unknown [Mon, 13 Feb 2012 18:17:56 +0000 (19:17 +0100)]
Turn off smpi on windows

7 years agoFind if system installed is win32 or win64
unknown [Mon, 13 Feb 2012 18:17:39 +0000 (19:17 +0100)]
Find if system installed is win32 or win64

7 years agoRename libsimgrid.dll for libsimgrid_shared.dll
unknown [Mon, 13 Feb 2012 18:06:01 +0000 (19:06 +0100)]
Rename libsimgrid.dll for libsimgrid_shared.dll

7 years agoUse only one variable and protect for windows only
navarro [Mon, 13 Feb 2012 16:44:19 +0000 (17:44 +0100)]
Use only one variable and protect for windows only

7 years agoFix twice call of xbt_preinit and xbt_postinit
unknown [Mon, 13 Feb 2012 16:34:08 +0000 (17:34 +0100)]
Fix twice call of xbt_preinit and xbt_postinit

7 years agoNeed distrib.cmake for update_xml file and update nsis script for headers.
unknown [Mon, 13 Feb 2012 13:22:37 +0000 (14:22 +0100)]
Need distrib.cmake for update_xml file and update nsis script for headers.

7 years agoOn win32, fix configure when try to compile and run ucontexts tests.
unknown [Mon, 13 Feb 2012 12:46:59 +0000 (13:46 +0100)]
On win32, fix configure when try to compile and run ucontexts tests.

7 years agoFix compilation error on windows.
unknown [Mon, 13 Feb 2012 12:44:57 +0000 (13:44 +0100)]
Fix compilation error on windows.

7 years agoAvoid to throw an exception, and catch it just below.
Arnaud Giersch [Mon, 13 Feb 2012 09:37:32 +0000 (10:37 +0100)]
Avoid to throw an exception, and catch it just below.

Define SMX_EXCEPTION and SMX_THROW to hold the gory details.

Saves a couple of setjmp/longjmp.

7 years agoSplit macro _THROW in two parts.
Arnaud Giersch [Mon, 13 Feb 2012 09:37:32 +0000 (10:37 +0100)]
Split macro _THROW in two parts.

7 years agoFix another race in log initializations.
Arnaud Giersch [Mon, 13 Feb 2012 09:37:32 +0000 (10:37 +0100)]
Fix another race in log initializations.

Since setting the threshold is not the last thing done when a category
is initialized, there is a possibility that a message is logged with wrong
parameters (e.g. format or appender).

Define a new field "initialized" which is set to 1 only when the category
is fully initialized.

7 years agoCategory should be unlinked from its current parent.
Arnaud Giersch [Mon, 13 Feb 2012 09:37:32 +0000 (10:37 +0100)]
Category should be unlinked from its current parent.

7 years agoDon't decrement surfxml_buffer_stack_stack_ptr twice in SURFXML_END_TAG.
Arnaud Giersch [Thu, 9 Feb 2012 15:52:04 +0000 (16:52 +0100)]
Don't decrement surfxml_buffer_stack_stack_ptr twice in SURFXML_END_TAG.

7 years agoFix segfault in smpi+tracing with detached sends.
Arnaud Giersch [Thu, 9 Feb 2012 15:03:29 +0000 (16:03 +0100)]
Fix segfault in smpi+tracing with detached sends.

7 years agoTypo.
Arnaud Giersch [Thu, 9 Feb 2012 14:59:20 +0000 (15:59 +0100)]
Typo.

7 years agoMake xbt_ex_display() more friendly when there is no backtrace.
Arnaud Giersch [Thu, 9 Feb 2012 13:39:55 +0000 (14:39 +0100)]
Make xbt_ex_display() more friendly when there is no backtrace.

7 years agoMake xbt_ex_setup_backtrace() survive to an empty backtrace.
Arnaud Giersch [Thu, 9 Feb 2012 13:39:54 +0000 (14:39 +0100)]
Make xbt_ex_setup_backtrace() survive to an empty backtrace.

7 years agoRETHROW is not really different from DO_THROW().
Arnaud Giersch [Thu, 9 Feb 2012 12:10:36 +0000 (13:10 +0100)]
RETHROW is not really different from DO_THROW().

7 years agoAvoid to duplicate initialization list.
Arnaud Giersch [Thu, 9 Feb 2012 12:10:36 +0000 (13:10 +0100)]
Avoid to duplicate initialization list.

Declare a global that is initialized with XBT_RUNNING_CTX_INITIALIZER,
and take a copy of it in XBT_RUNNING_CTX_INITIALIZE().

7 years agoXBT_RUNNING_CTX_INITIALIZER: don't list all element of bt[] in initializer.
Arnaud Giersch [Thu, 9 Feb 2012 12:10:36 +0000 (13:10 +0100)]
XBT_RUNNING_CTX_INITIALIZER: don't list all element of bt[] in initializer.

They'll be implicitly initialized to NULL, and the initializer is now
independent of XBT_BACKTRACE_SIZE.

7 years agoRemove tests for deprecated multi-level dictionaries.
Arnaud Giersch [Thu, 9 Feb 2012 12:10:36 +0000 (13:10 +0100)]
Remove tests for deprecated multi-level dictionaries.

7 years agoMark multi-level dictionaries as deprecated.
Arnaud Giersch [Thu, 9 Feb 2012 12:10:36 +0000 (13:10 +0100)]
Mark multi-level dictionaries as deprecated.

7 years agoRemove declarations for non-existent functions.
Arnaud Giersch [Thu, 9 Feb 2012 12:10:36 +0000 (13:10 +0100)]
Remove declarations for non-existent functions.

7 years agoDocument ranges for years in copyright notices.
Arnaud Giersch [Thu, 9 Feb 2012 12:10:36 +0000 (13:10 +0100)]
Document ranges for years in copyright notices.

7 years agoParmap: fix deadlock in with futexes.
Arnaud Giersch [Wed, 8 Feb 2012 23:35:50 +0000 (00:35 +0100)]
Parmap: fix deadlock in with futexes.

Also anticipate the possibility for futex_wait to return early with EINTR.

In the following scenario, the first wake(parmap.work) should not have
unlocked the second xbt_parmap_futex_worker_wait().

Master                                  Worker
======                                  ========
xbt_parmap_futex_master_signal() {
  parmap.thread_counter = 1
  ++parmap.work
                                        xbt_parmap_futex_worker_wait();
                                        xbt_parmap_work();
                                        xbt_parmap_futex_worker_signal();
                                        xbt_parmap_futex_worker_wait();
  wake(parmap.work) -- unlock -------->
}
xbt_parmap_work();
xbt_parmap_futex_master_wait();
                                        xbt_parmap_work();
                                        xbt_parmap_futex_worker_signal();
xbt_parmap_futex_master_signal();
xbt_parmap_work();
xbt_parmap_futex_master_wait();
  ===> LOCKED
                                        xbt_parmap_futex_worker_wait();
                                          ===> LOCKED

7 years agoParmap: protect against wraparound for round.
Arnaud Giersch [Wed, 8 Feb 2012 22:58:25 +0000 (23:58 +0100)]
Parmap: protect against wraparound for round.

7 years agoParmap: use INT_MAX as number of threads to wake by futex_wake.
Arnaud Giersch [Wed, 8 Feb 2012 22:53:27 +0000 (23:53 +0100)]
Parmap: use INT_MAX as number of threads to wake by futex_wake.

We want to wake up everybody anyway.

7 years agoFile has moved.
Arnaud Giersch [Wed, 8 Feb 2012 21:16:54 +0000 (22:16 +0100)]
File has moved.

7 years agoThose are already declared in ./include/simgrid/modelchecker.h.
Arnaud Giersch [Wed, 8 Feb 2012 17:22:09 +0000 (18:22 +0100)]
Those are already declared in ./include/simgrid/modelchecker.h.

7 years agoRemove tests for deprecated dicts of scalars.
Arnaud Giersch [Mon, 28 Nov 2011 09:20:07 +0000 (10:20 +0100)]
Remove tests for deprecated dicts of scalars.

7 years agoMark integer dicts as deprecated.
Arnaud Giersch [Fri, 25 Nov 2011 22:23:49 +0000 (23:23 +0100)]
Mark integer dicts as deprecated.

7 years agoChangeLog: spell checking, and whitespace cleanup.
Arnaud Giersch [Wed, 8 Feb 2012 16:55:21 +0000 (17:55 +0100)]
ChangeLog: spell checking, and whitespace cleanup.

7 years agostop using internal header files from the examples, it won't work for users
Martin Quinson [Wed, 8 Feb 2012 16:45:57 +0000 (17:45 +0100)]
stop using internal header files from the examples, it won't work for users

7 years agoour malloc implementation NEEDS multi-threading protection
Martin Quinson [Wed, 8 Feb 2012 16:41:11 +0000 (17:41 +0100)]
our malloc implementation NEEDS multi-threading protection

7 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Wed, 8 Feb 2012 16:15:25 +0000 (17:15 +0100)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

7 years agokill duplicate definitions, and try to ensure that MC-ready code still works without...
Martin Quinson [Wed, 8 Feb 2012 16:09:48 +0000 (17:09 +0100)]
kill duplicate definitions, and try to ensure that MC-ready code still works without MC (closes #13813 on gforge)

7 years agoFix a race condition in _XBT_LOG_ISENABLEDV().
Arnaud Giersch [Wed, 8 Feb 2012 16:03:36 +0000 (17:03 +0100)]
Fix a race condition in _XBT_LOG_ISENABLEDV().

Without this change, catv.threshold can be initialized by another
thread, between the test for priority being great enough, and
that for catv.threshold being initialized, leading to a false
positive answer.

Hypothesis
==========
  Initially, catv.threshold == xbt_log_priority_unititialized == -1
  After initialization, priority < catv.threshold
  Two threads running _XBT_LOG_ISENABLEDV() for the same
  category, and the same priority.

Thread A                                Thread B
========                                ========

                                        priority >= cat.threshold
                                          is TRUE
priority >= catv.threshold
  is TRUE

catv.threshold != x.l.p._uninitialized
  is FALSE

call xbt_log_cat_init(...)
  returns FALSE
                                        catv.threshold != x.l.p._uninitialized
                                          is TRUE

=> _XBT_LOG_ISENABLEDV(...)             => _XBT_LOG_ISENABLEDV(...)
     is FALSE                                is TRUE

7 years agomove a public header in the simgrid/ directory to fight the namespace polution
Martin Quinson [Wed, 8 Feb 2012 15:54:16 +0000 (16:54 +0100)]
move a public header in the simgrid/ directory to fight the namespace polution

7 years agouser code sometimes needs to know whether MC is activated
Martin Quinson [Wed, 8 Feb 2012 15:53:16 +0000 (16:53 +0100)]
user code sometimes needs to know whether MC is activated

7 years agoSetup the framework allowing to add backtraces to the malloc meta-data
Martin Quinson [Wed, 8 Feb 2012 10:47:29 +0000 (11:47 +0100)]
Setup the framework allowing to add backtraces to the malloc meta-data

- implement a malloc-clean backtrace() function
- make some room to store the backtraces. Only for big blocks for now,
  the memory consumption seem to be very high when doing so for
  fragments. Possible solutions include:
  - increasing the minimal fragment size to reduce the amount of
    possible fragment per block. It will waste some blocks for very
    small fragments, but it will save metadata that is paid for EVERY
    block, including full blocks, through the union in the metadata
  - Reduce the size of the saved backtraces. For now, we save up to 10
    calls, 5 to 3 levels may be enough if space is scarce.
- use that framework to save the backtraces in one malloc execution
  path. Other malloc execution paths, as well as realloc paths should
  now be changed to store the backtrace too.
- Implement a mmalloc_backtrace_display() function that displays the
  backtrace at which the block where malloc()ed. This is a bit crude
  for now, as we reuse the internals of exceptions that where not
  really done for that, but it works.

7 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Wed, 8 Feb 2012 10:37:29 +0000 (11:37 +0100)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

7 years agoSet xbt_binary_name so that the exception mechanism accepts to display backtraces
Martin Quinson [Wed, 8 Feb 2012 10:37:07 +0000 (11:37 +0100)]
Set xbt_binary_name so that the exception mechanism accepts to display backtraces

7 years agoSet network_maxmin_system->keep_track once for all.
Arnaud Giersch [Wed, 8 Feb 2012 07:11:11 +0000 (08:11 +0100)]
Set network_maxmin_system->keep_track once for all.

7 years agoRemove global variable, and push it into lmm_system_t.
Arnaud Giersch [Tue, 7 Feb 2012 20:47:23 +0000 (21:47 +0100)]
Remove global variable, and push it into lmm_system_t.

And give surf_solve a chance to run correctly in parallel.

7 years agoGuard against subas->to_index being NULL.
Arnaud Giersch [Tue, 7 Feb 2012 14:11:00 +0000 (15:11 +0100)]
Guard against subas->to_index being NULL.

7 years agoRemove bogus inline declarations in private interface.
Arnaud Giersch [Mon, 6 Feb 2012 16:57:47 +0000 (17:57 +0100)]
Remove bogus inline declarations in private interface.

7 years agoRemove bogus inline declarations in public interface.
Arnaud Giersch [Mon, 6 Feb 2012 16:57:13 +0000 (17:57 +0100)]
Remove bogus inline declarations in public interface.

7 years agoFixups in mrealloc
Martin Quinson [Mon, 6 Feb 2012 10:36:18 +0000 (11:36 +0100)]
Fixups in mrealloc

- make sure that it won't try to get a block smaller than what we are
  willing to give (was a bug in previous implementation!!)
- update the requested size markers in meta-datas

7 years agoTHROWF won't work in mmalloc: it needs to malloc stuff (I'm sure)
Martin Quinson [Mon, 6 Feb 2012 10:04:38 +0000 (11:04 +0100)]
THROWF won't work in mmalloc: it needs to malloc stuff (I'm sure)

7 years agosplit memory snapshooting and diffing functions out in their own file
Martin Quinson [Mon, 6 Feb 2012 09:19:44 +0000 (10:19 +0100)]
split memory snapshooting and diffing functions out in their own file

7 years agoUseless casts.
Arnaud Giersch [Fri, 3 Feb 2012 22:00:38 +0000 (23:00 +0100)]
Useless casts.

What's the point compiling with -Werror if we use ugly casts
to silence the compiler???

7 years agoReindent.
Arnaud Giersch [Fri, 3 Feb 2012 21:51:26 +0000 (22:51 +0100)]
Reindent.

7 years agobvprintf is now superfluous here.
Arnaud Giersch [Sat, 4 Feb 2012 09:51:50 +0000 (10:51 +0100)]
bvprintf is now superfluous here.

7 years agoKill more duplicate routes in platform files.
Arnaud Giersch [Sat, 4 Feb 2012 09:54:29 +0000 (10:54 +0100)]
Kill more duplicate routes in platform files.

7 years agoError message has changed, update tesh file.
Arnaud Giersch [Sat, 4 Feb 2012 09:52:29 +0000 (10:52 +0100)]
Error message has changed, update tesh file.

7 years agoFix compilation errors about multiple definition of `automaton'.
Arnaud Giersch [Fri, 3 Feb 2012 14:21:20 +0000 (15:21 +0100)]
Fix compilation errors about multiple definition of `automaton'.

7 years agoDocument one of midjy's changes (+cosmetics)
Martin Quinson [Fri, 3 Feb 2012 17:27:17 +0000 (18:27 +0100)]
Document one of midjy's changes (+cosmetics)

7 years agodocument my ongoing changes. Not everything of it were implemented yet, but nothing...
Martin Quinson [Fri, 3 Feb 2012 17:22:30 +0000 (18:22 +0100)]
document my ongoing changes. Not everything of it were implemented yet, but nothing writen in ChangeLog is really wrong. Even right now

7 years agodocument Pierre's last changes
Martin Quinson [Fri, 3 Feb 2012 17:18:03 +0000 (18:18 +0100)]
document Pierre's last changes

7 years agoI don't need an extra file just to define calloc when it can be inlined that easily
Martin Quinson [Fri, 3 Feb 2012 16:22:05 +0000 (17:22 +0100)]
I don't need an extra file just to define calloc when it can be inlined that easily

7 years agoand now with the right test so that not all our tests fail
Martin Quinson [Fri, 3 Feb 2012 16:21:23 +0000 (17:21 +0100)]
and now with the right test so that not all our tests fail

7 years agoreindent only
Martin Quinson [Fri, 3 Feb 2012 16:02:09 +0000 (17:02 +0100)]
reindent only

7 years agokill some dupplicate routes: now that we issue a warning, it breaks all tesh files
Martin Quinson [Fri, 3 Feb 2012 15:57:23 +0000 (16:57 +0100)]
kill some dupplicate routes: now that we issue a warning, it breaks all tesh files

7 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Fri, 3 Feb 2012 15:16:24 +0000 (16:16 +0100)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

7 years agocatch a given possible misconfiguration, and give more informative messages
Martin Quinson [Fri, 3 Feb 2012 15:10:40 +0000 (16:10 +0100)]
catch a given possible misconfiguration, and give more informative messages

7 years agoPut #ifdef MSG_USE_DEPRECATED for all functions with channel mecanism.
navarro [Fri, 3 Feb 2012 14:49:06 +0000 (15:49 +0100)]
Put #ifdef MSG_USE_DEPRECATED for all functions with channel mecanism.

7 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
Martin Quinson [Fri, 3 Feb 2012 14:43:13 +0000 (15:43 +0100)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid

7 years agoadd a warning if a given route is redefined. It will hopefully help users understandi...
Martin Quinson [Fri, 3 Feb 2012 14:42:59 +0000 (15:42 +0100)]
add a warning if a given route is redefined. It will hopefully help users understanding what's going wrong.

7 years agokill now unused declaration
Martin Quinson [Fri, 3 Feb 2012 14:42:18 +0000 (15:42 +0100)]
kill now unused declaration

7 years agoadd a surf_parse_warn and get surf_parse_error() accepting variable amount of parameters
Martin Quinson [Fri, 3 Feb 2012 14:37:53 +0000 (15:37 +0100)]
add a surf_parse_warn and get surf_parse_error() accepting variable amount of parameters

7 years agoAlso show the filename to locate parsing errors, not only the line number
Martin Quinson [Fri, 3 Feb 2012 14:23:51 +0000 (15:23 +0100)]
Also show the filename to locate parsing errors, not only the line number

7 years agoFurther simplify the mmallocs, and improve its introspection abilities
Martin Quinson [Fri, 3 Feb 2012 14:17:14 +0000 (15:17 +0100)]
Further simplify the mmallocs, and improve its introspection abilities

- Ensure that the mmallocation code will never return NULL (but die
  verbosely), and simplify the using code accordingly.
- Stop using THROWF in there, because these functions probably need
  malloc to work, and that what broke when we want to issue a message.
  Use printf/abort instead.
- Introduce a SMALLEST_POSSIBLE_MALLOC. It already existed (and were
  defined to sizeof(struct list) to ensure that free fragments can be
  enlisted, but I need this to declare the block metadata
- Add a frag_size information within the bloc info structure. It may
  not perfectly be kept uptodate yet (in particular, by realloc)

7 years agoDon't use reserved keywords.
Arnaud Giersch [Fri, 3 Feb 2012 13:53:53 +0000 (14:53 +0100)]
Don't use reserved keywords.

"or", "and", and "not" are reserved keywords in C++, and this line
breaks compilation of C++ code.

Since the literal constants defined here are never used, comment their
definition, and simply declare the field as an int.

7 years agoCorrectly initialize simdata->comm when marked as isused.
Arnaud Giersch [Fri, 3 Feb 2012 10:27:49 +0000 (11:27 +0100)]
Correctly initialize simdata->comm when marked as isused.

I hope that it's now the good fix for the segfault I got when running
chord --cfg=contexts/stack_size:5 --log=msg_chord.thres:critical --cfg=network/model:Constant ./cluster_with_100000_hosts.xml ./chord100000.xml

(see the backtrace in the message for commit 1380f1a).

7 years agoAdd missing dependency for smpi_traced_simple.
Arnaud Giersch [Fri, 3 Feb 2012 10:34:23 +0000 (11:34 +0100)]
Add missing dependency for smpi_traced_simple.

7 years agoAnother %ld -> %zu fix.
Arnaud Giersch [Thu, 2 Feb 2012 20:56:08 +0000 (21:56 +0100)]
Another %ld -> %zu fix.

7 years agoTODO--: the 'type' of each mmalloc block is granted to be uptodate at every point
Martin Quinson [Thu, 2 Feb 2012 20:44:21 +0000 (21:44 +0100)]
TODO--: the 'type' of each mmalloc block is granted to be uptodate at every point

Tomorrow, I'll add the fragment metadatas, and the backtraces.
For that, I'll waste a lot of space by adding a static tables to the
malloc_info structure, where the size of that table is the maximal
amount of fragments per block.

Something like BLOCKSIZE/sizeof(struct list) since mmalloc refuses to
allocate smaller blocks (to ensure that we can enlist free fragments).

This implementation of malloc will definitely not be something that
you want to use when not forced to do so to get the model-checking
working. But it will provide all the information that MC needs.

7 years agoMerge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid into LLL
Martin Quinson [Thu, 2 Feb 2012 20:55:53 +0000 (21:55 +0100)]
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid into LLL

7 years agoalso enforce that the freed block were marked as used before doing so. Theses stats...
Martin Quinson [Thu, 2 Feb 2012 20:41:32 +0000 (21:41 +0100)]
also enforce that the freed block were marked as used before doing so. Theses stats should be trustable now

7 years agothere were no difference between __mmalloc_free and mfree anymore; merge them
Martin Quinson [Thu, 2 Feb 2012 20:14:25 +0000 (21:14 +0100)]
there were no difference between __mmalloc_free and mfree anymore; merge them

7 years agoimprove the doc to reflect recent changes (and we already have the actual size of...
Martin Quinson [Thu, 2 Feb 2012 20:08:51 +0000 (21:08 +0100)]
improve the doc to reflect recent changes (and we already have the actual size of blocks)

7 years agoensure that free block are marked as such
Martin Quinson [Thu, 2 Feb 2012 19:43:32 +0000 (20:43 +0100)]
ensure that free block are marked as such

7 years agoSimplify the malloc_info structure containing the metadata of a given block in mmalloc
Martin Quinson [Thu, 2 Feb 2012 16:45:21 +0000 (17:45 +0100)]
Simplify the malloc_info structure containing the metadata of a given block in mmalloc

* Less structures in union in structure in union inception madness
  We're using a less portable anonymous union, but gcc handles that
   since maybe 15 years, so that should be cool.
* We can now determine from looking at it whether the block is busy or
   free, without having to search in which list the block is.
  That was useles to other usages of mmalloc, but this is very
   interesting when comparing heaps.
  Moreover, it comes for free: it has exactly the same (memory) cost
   when the block is busy, and we have a plenty of place in the block
   to store that this it free when it is actually free.

Please note that this information is not updated when the block is
freed yet. (splitting the commit just in case someone tries to read it
later: this one is almost automatic refactoring)

7 years agodocument one more function
Martin Quinson [Thu, 2 Feb 2012 16:20:50 +0000 (17:20 +0100)]
document one more function

7 years agoAdd missing flag (X86 or AMD) to test windows functions
unknown [Thu, 2 Feb 2012 15:57:19 +0000 (16:57 +0100)]
Add missing flag (X86 or AMD) to test windows functions

7 years agoDon't import smpi binaries on windows and set environment variables on current user
unknown [Wed, 25 Jan 2012 13:19:07 +0000 (14:19 +0100)]
Don't import smpi binaries on windows and set environment variables on current user

7 years agoDon't need to do a distrib on win32
unknown [Wed, 25 Jan 2012 13:18:23 +0000 (14:18 +0100)]
Don't need to do a distrib on win32