aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar vjpai <vpai@google.com>2016-02-04 18:02:26 -0800
committerGravatar vjpai <vpai@google.com>2016-02-04 18:02:26 -0800
commit0c598b08ac06a5e2b1a4ed022bbb60e4e999624e (patch)
tree1858778432b70bdf2ac573f1d3291d9d7e6d17d5
parent663a29144ae01fb421ae84e533852c8423c63452 (diff)
Fix copyright and use consistent C89 comments
-rw-r--r--src/core/support/stack_lockfree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/support/stack_lockfree.c b/src/core/support/stack_lockfree.c
index b2f5880352..2c97ee18be 100644
--- a/src/core/support/stack_lockfree.c
+++ b/src/core/support/stack_lockfree.c
@@ -1,6 +1,6 @@
/*
*
- * Copyright 2015, Google Inc.
+ * Copyright 2015-2016, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -99,8 +99,8 @@ gpr_stack_lockfree *gpr_stack_lockfree_create(size_t entries) {
/* Point the head at reserved dummy entry */
stack->head.contents.index = INVALID_ENTRY_INDEX;
+ /* Fill in the pad and aba_ctr to avoid confusing memcheck tools */
#ifdef GPR_ARCH_64
- // Fill in the pad to avoid confusing memcheck tools
stack->head.contents.pad = 0;
#endif
stack->head.contents.aba_ctr = 0;
@@ -121,7 +121,7 @@ int gpr_stack_lockfree_push(gpr_stack_lockfree *stack, int entry) {
/* First fill in the entry's index and aba ctr for new head */
newhead.contents.index = (uint16_t)entry;
#ifdef GPR_ARCH_64
- // Fill in the pad to avoid confusing memcheck tools
+ /* Fill in the pad to avoid confusing memcheck tools */
newhead.contents.pad = 0;
#endif