Commit bf8c49e1 authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

Print message when LocalHeap::IsHandleDereferenceAllowed fails

Change-Id: I0aede0a2a188fc17492c10c0c13568c052282548
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2534822
Commit-Queue: Georg Neis <neis@chromium.org>
Auto-Submit: Georg Neis <neis@chromium.org>
Reviewed-by: 's avatarDominik Inführ <dinfuehr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#71170}
parent 0625c066
......@@ -45,8 +45,11 @@ bool HandleBase::IsDereferenceAllowed() const {
LocalHeap* local_heap = LocalHeap::Current();
if (FLAG_local_heaps && local_heap) {
// Local heap can't access handles when parked
if (!local_heap->IsHandleDereferenceAllowed()) return false;
if (!local_heap->IsHandleDereferenceAllowed()) {
StdoutStream{} << "Cannot dereference handle owned by "
<< "non-running local heap\n";
return false;
}
if (local_heap->ContainsPersistentHandle(location_) ||
local_heap->ContainsLocalHandle(location_)) {
......
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