Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make FFI callabacks work properly on 64 bit Windows OSes.
- Loading branch information
Showing
3 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2156983
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Artem, thanks so much for this fix!!!!! I believe this was the one the caused me to stop working on it for some time, and ultimately just open source it. I wasn't sure anyone else would be able (or willing) to track it down. I had dealt with and fixed many such issues during corman lisp development. However when I hit this issue specific to 64-bit OS (and those were fairly rare then, but of course now ubiquitous) I spent some evenings and just decided I couldn't do it any more. I got as far as noticing that the callback code broke and was getting a garbled address (I think an 8 byte address/4 byte address mismatch), and this probably happened when an access violation occurs (these are employed for garbage collection heap management). Now that I see it is working well on 64-bit systems I am inspired to get back into it.
2156983
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your kind words! Should I say getting this message from Corman Lisp author is very inspiring too!
To be fair, I do not really know how I tracked down this issue. At some point, something clicked in my head that it might be SEH-related. I decided to check it and voila!
I am really glad you are inspired to start working on it again. I did not do any work on it for a last month or so but it always was on the back of my mind. I initially planned to make 3.1 release before this New Year but have not had enough spare time recently. All in all, this is a very interesting project with a lot of interesting and well-written code - I hope I will return to working on it soon. I am generally interested in programming languages and their implementation and this project seems to be a good one for understanding important techniques (at this point this is kind of hobby).
Again, thank you for open sourcing this project! I believe it is of great educational value.
2156983
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2156983
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merry Christmas! That's great news!
By the way, you should have direct access to this repository at the moment.
2156983
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've invited you both to the @sharplispers/cormanlisp-maintainers team. Happy holidays!
2156983
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.