alexeykudinkin commented on a change in pull request #5060:
URL: https://github.com/apache/hudi/pull/5060#discussion_r829607531
##########
File path:
hudi-common/src/main/java/org/apache/hudi/common/util/ObjectSizeCalculator.java
##########
@@ -92,6 +92,7 @@ public static long getObjectSize(Object obj) throws
UnsupportedOperationExceptio
private final Set<Object> alreadyVisited = Collections.newSetFromMap(new
IdentityHashMap<>());
private final Deque<Object> pending = new ArrayDeque<>(64);
private long size;
+ private static final ThreadLocal<ObjectSizeCalculator> objectSizeCalculator
= ThreadLocal.withInitial(() -> new ObjectSizeCalculator(CurrentLayout.SPEC));
Review comment:
Let's bubble this up to the top of the declarations list (where all the
static members are)
--
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]