Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix ClassCastException and native crash when using kqueue transport. #8665
How we did the mapping from native code to AbstractKQueueChannel was not safe and could lead to heap corruption. This then sometimes produced ClassCastExceptions or could also lead to crashes. This happened sometimes when running the testsuite.
Use a Map for the mapping (just as we do in the native epoll transport).
No more heap corruption / crashes.