Commit ede41471 authored by Xin Zhao's avatar Xin Zhao Committed by Pavan Balaji
Browse files

Bug-fix on setting MPIDI_CH3I_num_active_issued_win.


Signed-off-by: Pavan Balaji's avatarPavan Balaji <balaji@anl.gov>
parent 9042b828
......@@ -359,6 +359,8 @@ int MPIDI_Win_fence(int assert, MPID_Win * win_ptr)
MPID_Request_release(req_ptr);
win_ptr->fence_sync_req = MPI_REQUEST_NULL;
win_ptr->states.access_state = MPIDI_RMA_NONE;
MPIDI_CH3I_num_active_issued_win--;
MPIU_Assert(MPIDI_CH3I_num_active_issued_win >= 0);
}
if (win_ptr->shm_allocated == TRUE) {
......
......@@ -178,6 +178,8 @@ int MPIDI_Win_free(MPID_Win ** win_ptr)
MPID_Request_release(req_ptr);
(*win_ptr)->fence_sync_req = MPI_REQUEST_NULL;
(*win_ptr)->states.access_state = MPIDI_RMA_NONE;
MPIDI_CH3I_num_active_issued_win--;
MPIU_Assert(MPIDI_CH3I_num_active_issued_win >= 0);
}
if ((*win_ptr)->states.access_state == MPIDI_RMA_FENCE_GRANTED)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment