是否需要在JNI_OnUnload中将stub等全局变量设为NULL? #44
Answered
by
caikelun
zhbzhbzhbz
asked this question in
Q&A
-
如题,谢谢~ |
Beta Was this translation helpful? Give feedback.
Answered by
caikelun
Jun 7, 2022
Replies: 1 comment 1 reply
-
不需要。在unhook后可以将stub设置为NULL,这是为了防止之后误用。你如果hook后确认不需要unhook了,那stub值也不用保留。 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zhbzhbzhbz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
不需要。在unhook后可以将stub设置为NULL,这是为了防止之后误用。你如果hook后确认不需要unhook了,那stub值也不用保留。
这和 JNI_OnUnload 完全无关。