Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Jython with JPype #19

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Replace Jython with JPype #19

wants to merge 9 commits into from

Conversation

twizmwazin
Copy link
Member

@twizmwazin twizmwazin commented Jan 9, 2024

This PR replaces the Jython and IPC layers of Pysoot with JPype. This fixes wheel support, windows support, Mac support, non-x86 support, removes Jython and Python 2 code. I've also upgraded the IR itself to use dataclasses (with types!) which I found made things easier to debug. Actual interface changes should be minimal, angr's test_java.py passes locally without any changes.

@twizmwazin twizmwazin changed the title Replace Jython with Joyce Replace Jython with Jpype Jan 9, 2024
@twizmwazin twizmwazin changed the title Replace Jython with Jpype Replace Jython with JPype Jan 9, 2024
@twizmwazin
Copy link
Member Author

So this now works, angr tests pass locally, no changes! However there seem to be some stability issues on the JPype end of things. It seems to segfault frequently, based on timing alone I suspect that it is something to do with badly deallocating things.

@twizmwazin twizmwazin force-pushed the refactor/jpype branch 3 times, most recently from a3123a8 to 98d5b92 Compare January 11, 2024 23:26
@twizmwazin twizmwazin force-pushed the refactor/jpype branch 2 times, most recently from c86fba3 to 35d4b64 Compare January 12, 2024 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant