Skip to content

Commit

Permalink
add volatile flag to SerializedString byte[] fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredstehler committed Apr 25, 2024
1 parent 514d9c8 commit 4c2dfeb
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -42,11 +42,11 @@ public class SerializedString
* and hopefully beyond.
*/

protected /*volatile*/ byte[] _quotedUTF8Ref;
protected volatile byte[] _quotedUTF8Ref;

protected /*volatile*/ byte[] _unquotedUTF8Ref;
protected volatile byte[] _unquotedUTF8Ref;

protected /*volatile*/ char[] _quotedChars;
protected volatile char[] _quotedChars;

public SerializedString(String v) {
if (v == null) {
Expand Down

0 comments on commit 4c2dfeb

Please sign in to comment.