forked from lix-project/lix
EvalCommand::getEvalState: use gc tracable allocator for EvalState
This commit is contained in:
parent
20b1290103
commit
33e96820d5
|
@ -73,8 +73,13 @@ ref<Store> EvalCommand::getEvalStore()
|
||||||
|
|
||||||
ref<EvalState> EvalCommand::getEvalState()
|
ref<EvalState> EvalCommand::getEvalState()
|
||||||
{
|
{
|
||||||
if (!evalState)
|
if (!evalState) evalState =
|
||||||
evalState = std::make_shared<EvalState>(searchPath, getEvalStore(), getStore());
|
#if HAVE_BOEHMGC
|
||||||
|
std::allocate_shared<EvalState>(traceable_allocator<EvalState>(),
|
||||||
|
#else
|
||||||
|
std::make_shared<EvalState>(
|
||||||
|
#endif
|
||||||
|
searchPath, getEvalStore(), getStore());
|
||||||
return ref<EvalState>(evalState);
|
return ref<EvalState>(evalState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue