Skip to content

Commit

Permalink
Update method description to match Javadoc
Browse files Browse the repository at this point in the history
The methods function correctly but there was a slight inaccuracy in their
description (wording), which has been corrected.

Closes: #12429

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
  • Loading branch information
babsingh committed Nov 24, 2021
1 parent f73492a commit e6170fb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -883,8 +883,8 @@ public static void acquireFence() {
}

/**
* Inserts a release memory fence, ensuring that no stores before this fence
* are reordered with any loads/stores after the fence.
* Inserts a release memory fence, ensuring that no loads and stores before
* this fence are reordered with any stores after the fence.
*/
public static void releaseFence() {
// TODO: storeStore + loadStore
Expand Down Expand Up @@ -984,7 +984,7 @@ public static void storeStoreFence() {

/**
* Sets the value of the field referenced by this {@link VarHandle} using acquire semantics.
* Preceding stores will not be reordered with subsequent loads/stores.
* Preceding loads and stores will not be reordered after this access.
*
* @param args The arguments for this operation are determined by the field type
* (see {@link VarHandle#accessModeType(AccessMode) accessModeType()})
Expand Down

0 comments on commit e6170fb

Please sign in to comment.