timob / jnigi

Golang Java JNI library
BSD 2-Clause "Simplified" License
166 stars 44 forks source link

Fix: fixed memory leak problem #71

Closed RecurTree closed 1 year ago

RecurTree commented 1 year ago

Hello, when I used this project for development, I found a memory leak bug, that is, when calling AttachCurrentThread, a global cache will be created, but when DetachCurrentThread, the global reference object is not released. This problem will cause the CPU load to continue to increase when processing large-scale requests.