提交 deb3091f authored 作者: nouiz's avatar nouiz

Merge pull request #660 from abergeron/cvm_gc

Remove the end-of-function cleanup from CVM
...@@ -861,17 +861,6 @@ CLazyLinker_call(PyObject *_self, PyObject *args, PyObject *kwds) ...@@ -861,17 +861,6 @@ CLazyLinker_call(PyObject *_self, PyObject *args, PyObject *kwds)
Py_INCREF(tmp); Py_INCREF(tmp);
PyList_SetItem(self->var_value_cells[dst], 0, tmp); PyList_SetItem(self->var_value_cells[dst], 0, tmp);
} }
// Free all intermediate values (outputs and updates have
// already been copied above).
if (self->allow_gc)
{
for (int i = 0; i < self->n_vars; ++i)
{
Py_INCREF(Py_None);
PyList_SetItem(self->var_value_cells[i], 0, Py_None);
}
}
} }
} }
Py_DECREF(one); Py_DECREF(one);
...@@ -955,7 +944,7 @@ static PyTypeObject lazylinker_ext_CLazyLinkerType = { ...@@ -955,7 +944,7 @@ static PyTypeObject lazylinker_ext_CLazyLinkerType = {
static PyObject * get_version(PyObject *dummy, PyObject *args) static PyObject * get_version(PyObject *dummy, PyObject *args)
{ {
PyObject *result = PyFloat_FromDouble(0.14); PyObject *result = PyFloat_FromDouble(0.15);
return result; return result;
} }
......
...@@ -13,7 +13,7 @@ if config.compiledir not in sys.path: ...@@ -13,7 +13,7 @@ if config.compiledir not in sys.path:
sys.path.append(config.compiledir) sys.path.append(config.compiledir)
force_compile = False force_compile = False
version = 0.14 # must match constant returned in function get_version() version = 0.15 # must match constant returned in function get_version()
try: try:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论