Skip to content

Commit

Permalink
[VL] Fix usage of uninitialized variables
Browse files Browse the repository at this point in the history
Use of Uninitialized Variables
  • Loading branch information
jkhaliqi committed Jan 10, 2025
1 parent 4bdda17 commit 8db3e30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/velox/memory/VeloxMemoryManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class ListenableArbitrator : public velox::memory::MemoryArbitrator {
uint64_t shrinkCapacity(uint64_t targetBytes, bool allowSpill, bool allowAbort) override {
velox::memory::ScopedMemoryArbitrationContext ctx{};
facebook::velox::exec::MemoryReclaimer::Stats status;
velox::memory::MemoryPool* pool;
velox::memory::MemoryPool* pool = nullptr;
{
std::unique_lock guard{mutex_};
VELOX_CHECK_EQ(candidates_.size(), 1, "ListenableArbitrator should only be used within a single root pool");
Expand Down Expand Up @@ -178,7 +178,7 @@ class ListenableArbitrator : public velox::memory::MemoryArbitrator {
return freeBytes;
}

gluten::AllocationListener* listener_;
gluten::AllocationListener* listener_ = nullptr;
const uint64_t memoryPoolInitialCapacity_; // FIXME: Unused.
const uint64_t memoryPoolTransferCapacity_;
const uint64_t memoryReclaimMaxWaitMs_;
Expand Down

0 comments on commit 8db3e30

Please sign in to comment.