mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
51eb96903c568935342d56c3c4f623acd827c860
The JVM doesn't always do a good job of telling JNI modules that the JVM is going away, which results in a crash in the JavaGlobal and/or JavaWeakGlobal destructors as they try to delete the associated references after the JVM has already gone away. To protect against this, the Notifier now has a static variable that's set when the Notifier instance (a singleton) is destroyed. This is used by JavaGlobal and JavaWeakGlobal to detect when a process exit is in process.
Description
WPILib - FRC Robotics Library
Languages
C++
53%
Java
32.7%
Python
7.6%
C
2.6%
Jinja
1.6%
Other
2.4%