< prev index next >
src/hotspot/share/gc/g1/g1StringDedup.cpp
Print this page
*** 208,214 ****
// Atomically claims the next available table partition for exclusive
// access by the current thread. Returns the table bucket number where
// the claimed partition starts.
size_t G1StringDedupUnlinkOrOopsDoClosure::claim_table_partition(size_t partition_size) {
! return (size_t)Atomic::add(partition_size, &_next_bucket) - partition_size;
}
--- 208,214 ----
// Atomically claims the next available table partition for exclusive
// access by the current thread. Returns the table bucket number where
// the claimed partition starts.
size_t G1StringDedupUnlinkOrOopsDoClosure::claim_table_partition(size_t partition_size) {
! return Atomic::add(partition_size, &_next_bucket) - partition_size;
}
< prev index next >