diff options
author | Craig Tiller <ctiller@google.com> | 2016-03-22 22:12:15 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-03-22 22:12:15 -0700 |
commit | 2c8063cc7200789da67a10c53d98d0d15b1ad378 (patch) | |
tree | 63535b33dc626b2b8a2fbb77d03e955b1fdd8a45 /test | |
parent | a67a83ebde2ab47b230857d47330ac63c7ab62b1 (diff) |
Introduce a new memory reclamation scheme for channel stacks
Allows the bottom member of the stack to schedule the actual deallocation, allowing a final transport lock to be entered when destroying a call.
Diffstat (limited to 'test')
-rw-r--r-- | test/core/channel/channel_stack_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/core/channel/channel_stack_test.c b/test/core/channel/channel_stack_test.c index e19e9a57ae..ca7c57c94e 100644 --- a/test/core/channel/channel_stack_test.c +++ b/test/core/channel/channel_stack_test.c @@ -62,8 +62,8 @@ static void call_init_func(grpc_exec_ctx *exec_ctx, grpc_call_element *elem, static void channel_destroy_func(grpc_exec_ctx *exec_ctx, grpc_channel_element *elem) {} -static void call_destroy_func(grpc_exec_ctx *exec_ctx, - grpc_call_element *elem) { +static void call_destroy_func(grpc_exec_ctx *exec_ctx, grpc_call_element *elem, + void *ignored) { ++*(int *)(elem->channel_data); } @@ -87,7 +87,7 @@ static void free_channel(grpc_exec_ctx *exec_ctx, void *arg, bool success) { } static void free_call(grpc_exec_ctx *exec_ctx, void *arg, bool success) { - grpc_call_stack_destroy(exec_ctx, arg); + grpc_call_stack_destroy(exec_ctx, arg, NULL); gpr_free(arg); } |