Skip to content

Commit 973bcda

Browse files
committedDec 12, 2023
8321631: Fix comments in access.hpp
Reviewed-by: eosterlund, stefank
1 parent 6359b4e commit 973bcda

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
 

‎src/hotspot/share/oops/access.hpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
// * store_at: Store a value in an internal pointer relative to a base object.
5454
// * atomic_cmpxchg: Atomically compare-and-swap a new value at an address if previous value matched the compared value.
5555
// * atomic_cmpxchg_at: Atomically compare-and-swap a new value at an internal pointer address if previous value matched the compared value.
56-
// * atomic_xchg: Atomically swap a new value at an address if previous value matched the compared value.
57-
// * atomic_xchg_at: Atomically swap a new value at an internal pointer address if previous value matched the compared value.
56+
// * atomic_xchg: Atomically swap a new value at an address without checking the previous value.
57+
// * atomic_xchg_at: Atomically swap a new value at an internal pointer address without checking the previous value.
5858
// * arraycopy: Copy data from one heap array to another heap array. The ArrayAccess class has convenience functions for this.
5959
// * clone: Clone the contents of an object to a newly allocated object.
6060
//
@@ -83,12 +83,11 @@
8383
// and whether the access is performed on the heap or outside. Then the
8484
// appropriate BarrierSet::AccessBarrier is called to perform the access.
8585
//
86-
// The implementation of step 1-4 resides in in accessBackend.hpp, to allow selected
86+
// The implementation of step 1-4 resides in accessBackend.hpp, to allow selected
8787
// accesses to be accessible from only access.hpp, as opposed to access.inline.hpp.
8888
// Steps 5.a and 5.b require knowledge about the GC backends, and therefore needs to
8989
// include the various GC backend .inline.hpp headers. Their implementation resides in
90-
// access.inline.hpp. The accesses that are allowed through the access.hpp file
91-
// must be instantiated in access.cpp using the INSTANTIATE_HPP_ACCESS macro.
90+
// access.inline.hpp.
9291

9392
template <DecoratorSet decorators = DECORATORS_NONE>
9493
class Access: public AllStatic {

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Dec 12, 2023

@openjdk-notifier[bot]
Please sign in to comment.