zhztheplayer commented on code in PR #5635:
URL: https://github.com/apache/incubator-gluten/pull/5635#discussion_r1594876192


##########
cpp/core/jni/JniCommon.h:
##########
@@ -368,10 +374,10 @@ class SparkAllocationListener final : public 
gluten::AllocationListener {
     if (granted < 0) {
       env->CallLongMethod(jListenerGlobalRef_, jUnreserveMethod_, -granted);
       checkException(env);
-      return;
+    } else {
+      env->CallLongMethod(jListenerGlobalRef_, jReserveMethod_, granted);
+      checkException(env);
     }

Review Comment:
   Is this change all about code style?



-- 
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