wForget commented on code in PR #9461:
URL: https://github.com/apache/incubator-gluten/pull/9461#discussion_r2067742551


##########
cpp/velox/memory/VeloxMemoryManager.cc:
##########
@@ -170,10 +170,10 @@ class ListenableArbitrator : public 
velox::memory::MemoryArbitrator {
     auto neededBytes = velox::bits::roundUp(bytes - reclaimedFreeBytes, 
memoryPoolTransferCapacity_);
     try {
       listener_->allocationChanged(neededBytes);
-    } catch (const std::exception& e) {
+    } catch (const std::exception&) {
       // if allocationChanged failed, we need to free the reclaimed bytes
       listener_->allocationChanged(-reclaimedFreeBytes);
-      throw e;
+      std::rethrow_exception(std::current_exception());

Review Comment:
   > Why not simply use throw; here?
   
   Are they the same effect?



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