1Native bridge initialized.
2Checking for getEnvValues.
3Ready for native bridge tests.
4Checking for support.
5Getting trampoline for JNI_OnLoad with shorty (null).
6Test ART callbacks: all JNI function number is 12.
7    name:booleanMethod, signature:(ZZZZZZZZZZ)Z, shorty:ZZZZZZZZZZZ.
8    name:byteMethod, signature:(BBBBBBBBBB)B, shorty:BBBBBBBBBBB.
9    name:charMethod, signature:(CCCCCCCCCC)C, shorty:CCCCCCCCCCC.
10    name:shortMethod, signature:(SSSSSSSSSS)S, shorty:SSSSSSSSSSS.
11    name:testCallStaticVoidMethodOnSubClassNative, signature:()V, shorty:V.
12    name:testFindClassOnAttachedNativeThread, signature:()V, shorty:V.
13    name:testFindFieldOnAttachedNativeThreadNative, signature:()V, shorty:V.
14    name:testGetMirandaMethodNative, signature:()Ljava/lang/reflect/Method;, shorty:L.
15    name:testNewStringObject, signature:()V, shorty:V.
16    name:testSignal, signature:()I, shorty:I.
17    name:testSignalHandlerNotReturn, signature:()V, shorty:V.
18    name:testZeroLengthByteBuffers, signature:()V, shorty:V.
19trampoline_JNI_OnLoad called!
20JNI_OnLoad called
21Getting trampoline for Java_Main_testFindClassOnAttachedNativeThread with shorty V.
22trampoline_Java_Main_testFindClassOnAttachedNativeThread called!
23Getting trampoline for Java_Main_testFindFieldOnAttachedNativeThreadNative with shorty V.
24trampoline_Java_Main_testFindFieldOnAttachedNativeThreadNative called!
25Getting trampoline for Java_Main_testCallStaticVoidMethodOnSubClassNative with shorty V.
26trampoline_Java_Main_testCallStaticVoidMethodOnSubClassNative called!
27Getting trampoline for Java_Main_testGetMirandaMethodNative with shorty L.
28trampoline_Java_Main_testGetMirandaMethodNative called!
29Getting trampoline for Java_Main_testZeroLengthByteBuffers with shorty V.
30trampoline_Java_Main_testZeroLengthByteBuffers called!
31Getting trampoline for Java_Main_byteMethod with shorty BBBBBBBBBBB.
32trampoline_Java_Main_byteMethod called!
33trampoline_Java_Main_byteMethod called!
34trampoline_Java_Main_byteMethod called!
35trampoline_Java_Main_byteMethod called!
36trampoline_Java_Main_byteMethod called!
37trampoline_Java_Main_byteMethod called!
38trampoline_Java_Main_byteMethod called!
39Getting trampoline for Java_Main_shortMethod with shorty SSSSSSSSSSS.
40trampoline_Java_Main_shortMethod called!
41trampoline_Java_Main_shortMethod called!
42trampoline_Java_Main_shortMethod called!
43trampoline_Java_Main_shortMethod called!
44trampoline_Java_Main_shortMethod called!
45trampoline_Java_Main_shortMethod called!
46trampoline_Java_Main_shortMethod called!
47trampoline_Java_Main_shortMethod called!
48trampoline_Java_Main_shortMethod called!
49Getting trampoline for Java_Main_booleanMethod with shorty ZZZZZZZZZZZ.
50trampoline_Java_Main_booleanMethod called!
51trampoline_Java_Main_booleanMethod called!
52Getting trampoline for Java_Main_charMethod with shorty CCCCCCCCCCC.
53trampoline_Java_Main_charMethod called!
54trampoline_Java_Main_charMethod called!
55trampoline_Java_Main_charMethod called!
56trampoline_Java_Main_charMethod called!
57trampoline_Java_Main_charMethod called!
58trampoline_Java_Main_charMethod called!
59trampoline_Java_Main_charMethod called!
60trampoline_Java_Main_charMethod called!
61Getting trampoline for Java_Main_testNewStringObject with shorty V.
62trampoline_Java_Main_testNewStringObject called!
63Getting trampoline for Java_Main_testSignal with shorty I.
64NB signal handler with signal 11.
65NB signal handler with signal 4.
66NB signal handler with signal 11.
67NB signal handler with signal 4.
68Loading invalid library 'libinvalid.so' from Java, which will fail.
69Checking for support.
70Was to load 'libinvalid.so', force fail.
71getError() in native bridge.
72Catch UnsatisfiedLinkError exception as expected.
73Getting trampoline for Java_Main_testSignalHandlerNotReturn with shorty V.
74start testSignalHandlerNotReturn
75raising first SIGSEGV
76NB signal handler with signal 11.
77handling first SIGSEGV, will raise another
78unblock SIGSEGV in handler
79raising second SIGSEGV
80NB signal handler with signal 11.
81handling second SIGSEGV, will jump back to test function
82back to test from signal handler via siglongjmp(), and done!
83