Skip to content

GetPrimitiveArrayCritical should not be used #19

@bgilbert

Description

@bgilbert

The JNI code uses GetPrimitiveArrayCritical() to get destination buffers for read_region() and read_associated_image(). This was presumably done to avoid an extra buffer copy, but the JNI documentation cautions that the *Critical methods should not be used for long-running operations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions