Skip to content

Commit f58c07b

Browse files
author
Mihail Slavchev
committed
bug fix
1 parent 53186ed commit f58c07b

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/jni/ObjectManager.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,6 @@ void ObjectManager::MarkReachableObjects(Isolate *isolate, const Local<Object>&
461461
auto hasImplObject = HasImplObject(isolate, o);
462462
if (hasImplObject)
463463
{
464-
jsInfo->IsJavaObjectWeak = false;
465464
m_implObjStrong[jsInfo->JavaObjectID] = nullptr;
466465
}
467466
o->SetHiddenValue(propName, curGCNumValue);

src/src/com/tns/Runtime.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ private void checkWeakObjectAreAlive(ByteBuffer input, ByteBuffer output, int le
671671
}
672672
else
673673
{
674-
isReleased = 1;
674+
isReleased = (strongInstances.get(javaObjectId) == null) ? 1 : 0;
675675
}
676676

677677
output.putInt(isReleased);

0 commit comments

Comments
 (0)