Skip to content
This repository was archived by the owner on Feb 25, 2024. It is now read-only.

Commit d37739a

Browse files
committed
Move getAndBitwiseOr() back to SubmissionPublisher
1 parent a11b89b commit d37739a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/main/java/java9/util/concurrent/ForkJoinPool.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,13 +1365,13 @@ static Object getAndSetObject(Object o, long offset, Object newValue) {
13651365
* of bitwise OR between the variable's current value and
13661366
* the mask with volatile memory semantics.
13671367
*/
1368-
static int getAndBitwiseOr(Object o, long offset, int mask) {
1369-
int oldVal;
1370-
do {
1371-
oldVal = U.getIntVolatile(o, offset);
1372-
} while (!U.compareAndSwapInt(o, offset, oldVal, oldVal | mask));
1373-
return oldVal;
1374-
}
1368+
// static int getAndBitwiseOr(Object o, long offset, int mask) {
1369+
// int oldVal;
1370+
// do {
1371+
// oldVal = U.getIntVolatile(o, offset);
1372+
// } while (!U.compareAndSwapInt(o, offset, oldVal, oldVal | mask));
1373+
// return oldVal;
1374+
// }
13751375

13761376
// Creating, registering and deregistering workers
13771377

0 commit comments

Comments
 (0)