diff options
author | yang-g <yangg@google.com> | 2016-04-01 00:24:59 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2016-04-01 00:24:59 -0700 |
commit | 9cedd3fb6efd5dd45fb35744f3450d63e3002334 (patch) | |
tree | 5c13beb41436d6ddce524a6a161e8efc3eedee5d /src/core/lib/transport | |
parent | 4a530b08c2d25067abfa9e71206b8625864c273c (diff) |
use acq_load and rel_store
Diffstat (limited to 'src/core/lib/transport')
-rw-r--r-- | src/core/lib/transport/metadata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/transport/metadata.c b/src/core/lib/transport/metadata.c index 4ec5bed89e..cffdd9638d 100644 --- a/src/core/lib/transport/metadata.c +++ b/src/core/lib/transport/metadata.c @@ -599,7 +599,7 @@ size_t grpc_mdelem_get_size_in_hpack_table(grpc_mdelem *elem) { } } else { internal_string *is = (internal_string *)elem->value; - gpr_atm current_size = gpr_atm_no_barrier_load(&is->size_in_decoder_table); + gpr_atm current_size = gpr_atm_acq_load(&is->size_in_decoder_table); if (current_size == SIZE_IN_DECODER_TABLE_NOT_SET) { if (grpc_is_binary_header( (const char *)GPR_SLICE_START_PTR(elem->key->slice), @@ -608,7 +608,7 @@ size_t grpc_mdelem_get_size_in_hpack_table(grpc_mdelem *elem) { } else { current_size = (gpr_atm)value_len; } - gpr_atm_no_barrier_store(&is->size_in_decoder_table, current_size); + gpr_atm_rel_store(&is->size_in_decoder_table, current_size); } return overhead_and_key + (size_t)current_size; } |