Commit 15d0ff29 authored by Deepti Gandluri's avatar Deepti Gandluri Committed by Commit Bot

[wasm] Remove commented out DCHECK

Change-Id: Ia9b5fd1e5247e4452e18a9212b041891d3ee44ea
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1586839Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
Commit-Queue: Deepti Gandluri <gdeepti@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61064}
parent ba081a32
......@@ -465,14 +465,7 @@ bool WasmMemoryTracker::CanFreeSharedMemory_Locked(const void* backing_store) {
const auto& value = isolates_per_buffer_.find(backing_store);
// If no isolates share this buffer, backing store can be freed.
// Erase the buffer entry.
if (value == isolates_per_buffer_.end()) return true;
if (value->second.empty()) {
// If no isolates share this buffer, the global handles to memory objects
// associated with this buffer should have been destroyed.
// DCHECK(shared_memory_map_.find(backing_store) ==
// shared_memory_map_.end());
return true;
}
if (value == isolates_per_buffer_.end() || value->second.empty()) return true;
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment