Skip to content

Commit

Permalink
add comments for ACE_NEW fail in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
smithAchang committed Sep 6, 2023
1 parent 00016bf commit 912d9db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ACE/ace/Malloc_T.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ ACE_Cascaded_Dynamic_Cached_Allocator<ACE_LOCK>::ACE_Cascaded_Dynamic_Cached_All
ACE_ASSERT (chunk_size_ > 0);

comb_alloc_ptr tmp;
// If ACE_NEW fails, the hierarchy_ will be reconstructed when malloc API is called.
ACE_NEW (tmp, comb_alloc_type(this->initial_n_chunks_, this->chunk_size_));
hierarchy_.push_back(tmp);
}
Expand Down

0 comments on commit 912d9db

Please sign in to comment.