Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Explicit instanciation of Extendable<simgrid::s4u::Host>
authorGabriel Corona <gabriel.corona@loria.fr>
Wed, 20 Jan 2016 15:11:01 +0000 (16:11 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Wed, 20 Jan 2016 16:02:33 +0000 (17:02 +0100)
commitf2e9bf81aebf9a0d39563c3f955fc24e9270d74f
treeb013db4a13fb2fe6058d4865cc70cc8426d615aa
parentd6cc0734da95df48853226b0b66ed25cd1c262c3
Explicit instanciation of Extendable<simgrid::s4u::Host>

It seems the `deleters_` static variable (of a template class) is not
uniquified on some systems (where the symbols are `STB_GLOBAL`) when
using Java loadLibrary leading to the JAVA_HOST_LEVEL being the same
as another level.

On some systems, the symbols are `STB_GNU_UNIQUE` which purpose is to
avoid this kind of behaviour and the bug does not happen.

By using explicit instanciation, the `deleters_` variable is not
allocated in each shared-object but only in `libsimgrid.so`.
include/simgrid/s4u/host.hpp
src/s4u/s4u_host.cpp