jnigi icon indicating copy to clipboard operation
jnigi copied to clipboard

JNI ID caching

Open timob opened this issue 1 year ago • 0 comments

Currently we cache class IDs (uintptr) so they don't need to be found using the findClass JNI function.

But not method IDs which we call getMethodID for in each CallMethod. The same is true for field IDs. We could start caching these two types of IDs too.

We currently create global references to class IDs (which are objects), so method and field IDs should remain valid while we hold this global reference.

timob avatar Jan 03 '24 22:01 timob