阅读背景:

什么会导致Java本机函数(在C中)在进入时出现segfault ?

来源:互联网 

The Project

I'm writing a Java command line interface to a C library of internal networking and network testing tools using the Java Native Interface. The C code (which I didn't write) is complex and low level, often manipulates memory at the bit level, and uses raw sockets exclusively. The application is multi-threaded from the C side (pthreads running in the background) as well as the Java side (ScheduledThreadPoolExecutors running threads that call native code). That said, the C library should be mostly stable. The Java and JNI interface code, as it turns out, is causing problems.I'm writing a Java command line i




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: