Skip to content

JNA >= 5.7.0 breaks Java-Thread-Affinity on Windows #77

@JerryShea

Description

@JerryShea

JNA 5.7.0 breaks on Windows and so any other projects (which have been upgraded to JNA >= 5.7.0) which depend on Java-Thread-Affinity see see the below exceptions

com.sun.jna.LastErrorException: [6] The handle is invalid.
	at com.sun.jna.Native.invokeInt(Native Method)
	at com.sun.jna.Function.invoke(Function.java:426)
	at com.sun.jna.Function.invoke(Function.java:361)
	at com.sun.jna.Library$Handler.invoke(Library.java:265)
	at net.openhft.affinity.impl.$Proxy11.GetProcessAffinityMask(Unknown Source)
	at net.openhft.affinity.impl.WindowsJNAAffinity.getAffinity0(WindowsJNAAffinity.java:107)
	at net.openhft.affinity.impl.WindowsJNAAffinity.getAffinity(WindowsJNAAffinity.java:66)
	at net.openhft.affinity.impl.WindowsJNAAffinity.<clinit>(WindowsJNAAffinity.java:51)
	at net.openhft.affinity.Affinity.isWindowsJNAAffinityUsable(Affinity.java:87)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions