dcapwell commented on code in PR #2104:
URL: https://github.com/apache/cassandra/pull/2104#discussion_r1119279736


##########
src/java/org/apache/cassandra/streaming/StreamingState.java:
##########
@@ -70,6 +72,15 @@ public class StreamingState implements StreamEventHandler
     // API for state changes
     public final Phase phase = new Phase();
 
+    @Override
+    public long unsharedHeapSize()
+    {
+        long costOfPeers = peers().size() * (InetAddressAndPort.IPV6_SIZE + 
48); // 48 represents the datastructure cost computed by the JOL
+        long costOfCompleteMessage = ObjectSizes.sizeOf(completeMessage());
+        long weight = costOfPeers + costOfCompleteMessage + EMPTY;;

Review Comment:
   you have an extra `;`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to