Skip to content

Commit

Permalink
Revert "fix DeleteLocalRef (zhkl0228#481)" (zhkl0228#533)
Browse files Browse the repository at this point in the history
This reverts commit a90c356.
  • Loading branch information
zhkl0228 authored Apr 9, 2023
1 parent 94a9585 commit d2102b4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,6 @@ public long handle(Emulator<?> emulator) {
if (log.isDebugEnabled()) {
log.debug("DeleteLocalRef object=" + object);
}
ObjRef ref = object == null ? null : localObjectMap.remove(object.toIntPeer());
if (ref != null) {
ref.obj.onDeleteRef();
}
if (verbose) {
System.out.printf("JNIEnv->DeleteLocalRef(%s) was called from %s%n", ref, context.getLRPointer());
}
return 0;
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,13 +298,6 @@ public long handle(Emulator<?> emulator) {
if (log.isDebugEnabled()) {
log.debug("DeleteLocalRef object=" + object);
}
ObjRef ref = object == null ? null : localObjectMap.remove(object.toIntPeer());
if (ref != null) {
ref.obj.onDeleteRef();
}
if (verbose) {
System.out.printf("JNIEnv->DeleteLocalRef(%s) was called from %s%n", ref, context.getLRPointer());
}
return 0;
}
});
Expand Down

0 comments on commit d2102b4

Please sign in to comment.