-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use addAtomic for incrementing counters of OMRMemCategory
Use addAtomic for incrementing counters of OMRMemCategory instead of spinning with compareAndSwapUDATA. Similarly, use subtractAtomic for decrementing counters. Because this change simply makes omrmemcategories.c to use existing implementation of atomic add/sub in AtomicSupport.hpp and they are identical to replaced implementation in omrmemcategories.c, this commit should introduce no functional or performance change, but this will enable us to optimize implementation of atomic add/sub in a single file in the future. Signed-off-by: Akira Saitoh <saiaki@jp.ibm.com>
- Loading branch information
Akira Saitoh
committed
May 31, 2021
1 parent
0174f25
commit 85f6038
Showing
1 changed file
with
6 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters