[Mono-list] JVM interactions

David Curylo curylod at asme.org
Wed Sep 6 19:54:30 UTC 2017


Julian

This project is incredibly outdated, but it is a starting point, so better than nothing:

https://github.com/olympum/caffeine <https://github.com/olympum/caffeine>

-Dave

> On Sep 6, 2017, at 2:55 PM, Julian Dolby <dolby at us.ibm.com> wrote:
> 
>  I have been trying to use C# code together with Java code, to provide program analysis of .NET code as part of WALA (https://github.com/wala/WALA).  Given the seeming end of work on IKVM, I have been exploring using a small amount of C++ code and JNI to bridge the two systems.  I have tried two options:
>  
> 1) a C++ program that create a Mono VM and a JVM, loading the needed code into both and then calls functions in the them.  The Java code contains 'native' methods that call back into C++ and from there to Mono.
>  
> 2) a Java program that calls C++ using JNI, which creates a Mono VM and calls code in it, passing results (integers and strings) back to Java.
>  
>  In both cases, I get code that works fine up to a point, and then crashes with what appears to be a segmentation fault in the Mono memory allocator.  Depending on what GC I choose, I get slightly different errors.
>  
>  Does anyone have a recommended recipe for doing what I need?
>  
>     Thanks,
>           Julian
>  
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.dot.net
> http://lists.dot.net/mailman/listinfo/mono-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-list/attachments/20170906/20391dc0/attachment.html>


More information about the Mono-list mailing list