Port to new memory model
This commit is contained in:
1 parent
5b4c9cd618
commit
1f2584ccea
16 files changed
+95
-86
No files matched your search
+4
-4
@@ -618,7 +618,7 @@ M_IF_METHOD(INIT, oplist)( \
|
||||
M_MEMORY_FULL(sizeof (shared_t)); \
|
||||
abort(); \
|
||||
} \
|
||||
M_ON_EXCEPTION( M_CALL_FREE(oplist, out) ) \
|
||||
M_ON_EXCEPTION( M_CALL_DEL(oplist, out) ) \
|
||||
M_CALL_INIT(oplist, out->data); \
|
||||
M_F(name, _init_lock)(out); \
|
||||
return out; \
|
||||
@@ -635,7 +635,7 @@ M_IF_METHOD(INIT_SET, oplist)( \
|
||||
abort(); \
|
||||
} \
|
||||
M_F(name, _read_lock)(src); \
|
||||
M_ON_EXCEPTION( M_F(name, _read_unlock)(src), M_CALL_FREE(oplist, out) ) \
|
||||
M_ON_EXCEPTION( M_F(name, _read_unlock)(src), M_CALL_DEL(oplist, out) ) \
|
||||
M_CALL_INIT_SET(oplist, out->data, src->data); \
|
||||
M_F(name, _read_unlock)(src); \
|
||||
M_F(name, _init_lock)(out); \
|
||||
@@ -651,7 +651,7 @@ M_IF_METHOD(INIT_SET, oplist)( \
|
||||
M_MEMORY_FULL(sizeof (shared_t)); \
|
||||
abort(); \
|
||||
} \
|
||||
M_ON_EXCEPTION( M_CALL_FREE(oplist, out) ) \
|
||||
M_ON_EXCEPTION( M_CALL_DEL(oplist, out) ) \
|
||||
M_CALL_INIT_SET(oplist, out->data, src); \
|
||||
M_F(name, _init_lock)(out); \
|
||||
return out; \
|
||||
@@ -709,7 +709,7 @@ M_PAIR_2 name_attr shared_t *function_name(M_EMPLACE_LIST_TYPE_VAR_ALTER(a, exp_
|
||||
M_MEMORY_FULL(sizeof (shared_t)); \
|
||||
abort(); \
|
||||
} \
|
||||
M_ON_EXCEPTION( M_CALL_FREE(oplist, out) ) \
|
||||
M_ON_EXCEPTION( M_CALL_DEL(oplist, out) ) \
|
||||
M_EMPLACE_CALL_FUNC(a, init_func, oplist, out->data, exp_emplace_type); \
|
||||
M_F(M_PAIR_1 name_attr, _init_lock)(out); \
|
||||
return out; \
|
||||
|
||||
Reference in new issue
Block a user