NSAmelchev commented on code in PR #9983:
URL: https://github.com/apache/ignite/pull/9983#discussion_r851774318
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/evict/Random2LruPageEvictionTracker.java:
##########
@@ -69,7 +69,7 @@ public Random2LruPageEvictionTracker(
/** {@inheritDoc} */
@Override public void start() throws IgniteException {
- trackingArrPtr = GridUnsafe.allocateMemory(trackingSize * 8);
+ trackingArrPtr = GridUnsafe.allocateMemory((long)trackingSize * 8);
Review Comment:
A long constant can be used instead of casting for better readability: `8L`,
`4L`
--
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]