Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2010–2011 ApexIdentity Inc.
* Portions Copyright 2011-2016 ForgeRock AS.
* Portions Copyrighted 2026 3A Systems, LLC
*/

package org.forgerock.http.io;
Expand Down Expand Up @@ -102,7 +103,7 @@ public boolean markSupported() {
}

@Override
public void mark(int readlimit) {
public synchronized void mark(int readlimit) {
mark = position;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ public static class PersistitMapException extends RuntimeException {
}

@Override
public Throwable getCause() {
public synchronized Throwable getCause() {
return _exception;
}
}
Expand Down
4 changes: 2 additions & 2 deletions persistit/core/src/main/java/com/persistit/Value.java
Original file line number Diff line number Diff line change
Expand Up @@ -5056,12 +5056,12 @@ protected final void readStreamHeader() throws IOException {
}

@Override
public void mark(final int readLimit) {
public synchronized void mark(final int readLimit) {
_mark = _value._next;
}

@Override
public void reset() throws IOException {
public synchronized void reset() throws IOException {
if (_mark < 0) {
throw new IOException("No mark");
} else {
Expand Down
Loading