Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JNI ID caching #80

Open
timob opened this issue Jan 3, 2024 · 0 comments
Open

JNI ID caching #80

timob opened this issue Jan 3, 2024 · 0 comments

Comments

@timob
Copy link
Owner

timob commented Jan 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant