Skip to content

JNI ID caching #80

@timob

Description

@timob

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions