| 885 | } |
| 886 | |
| 887 | extern "C" AVIAN_EXPORT int64_t JNICALL |
| 888 | Avian_java_lang_Runtime_nativeLoad(Thread* t, object, uintptr_t* arguments) |
| 889 | { |
| 890 | GcString* name = cast<GcString>(t, reinterpret_cast<object>(arguments[0])); |
| 891 | PROTECT(t, name); |
| 892 | |
| 893 | unsigned length = name->length(t); |
| 894 | THREAD_RUNTIME_ARRAY(t, char, n, length + 1); |
| 895 | stringChars(t, name, RUNTIME_ARRAY_BODY(n)); |
| 896 | |
| 897 | if (loadLibrary(t, "", RUNTIME_ARRAY_BODY(n), false, true)) { |
| 898 | return 0; |
| 899 | } else { |
| 900 | return reinterpret_cast<uintptr_t>(name); |
| 901 | } |
| 902 | } |
| 903 | |
| 904 | extern "C" AVIAN_EXPORT void JNICALL |
| 905 | Avian_java_lang_System_arraycopy(Thread* t, object, uintptr_t* arguments) |
nothing calls this directly
no test coverage detected