Skip to content

Conversation

@xerial
Copy link
Owner

@xerial xerial commented Mar 30, 2016

For avoiding JNI overhead, reported in apache/spark#12074

@xerial xerial merged commit acaeaed into 1.1.2.x Mar 31, 2016
@SaintBacchus
Copy link

Hi @xerial , I notice that System.arraycoy is also a native method, and how can this modify reduce the JNI calls reported in spark?

    public static native void arraycopy(Object src,  int  srcPos,
                                        Object dest, int destPos,
                                        int length);

@ijuma
Copy link

ijuma commented Apr 12, 2016

@SaintBacchus arraycopy is usually a VM intrinsic and it doesn't incur JNI overhead (that's the case for HotSpot for example).

@xerial
Copy link
Owner Author

xerial commented Apr 12, 2016

@SaintBacchus As @ijuma mentioned, VM intrinsic native code has no overhead compared to user defined one.

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.

3 participants