Skip to content

Commit

Permalink
ISPN-2195 Avoid unneeded volatile read in MarshalledValue hotspot
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanne committed Aug 11, 2012
1 parent fff43c2 commit 013f2a8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -234,7 +234,7 @@ public boolean equals(Object o) {

MarshalledValueByteStream thisRaw = this.raw;
MarshalledValueByteStream thatRaw = that.raw;
if (thisRaw != null && thatRaw != null) return this.raw.equals(that.raw);
if (thisRaw != null && thatRaw != null) return thisRaw.equals(thatRaw);
if (thisInstance != null && thatInstance != null) return thisInstance.equals(thatInstance);

// if conversion of one representation to the other is necessary, then see which we prefer converting.
Expand Down

0 comments on commit 013f2a8

Please sign in to comment.