[Bug java/12957] JNI Performance Issues

bryce at mckinlay dot net dot nz gcc-bugzilla@gcc.gnu.org
Tue Apr 20 01:09:00 GMT 2004


------- Additional Comments From bryce at mckinlay dot net dot nz  2004-04-19 23:52 -------
Profiling:

$ ./invbench
native:          2705ms [541ns / call]
10000002
qprof: /home/mckinlay/invbench/invbench: 260 samples, 260 counts
libpthread.so.0(pthread_getspecific)                             1      (  0%)
libc.so.6                                                        1      (  0%)
libc.so.6(malloc)                                                33     ( 13%)
libc.so.6(__libc_free)                                           68     ( 26%)
libNativeJNI.so(Java_Native_a)                                   3      (  1%)
libgcj.so.6                                                      2      (  1%)
libgcj.so.6(_Z19_Jv_MallocUncheckedi)                            2      (  1%)
libgcj.so.6(_Jv_Free)                                            1      (  0%)
libgcj.so.6(_Jv_GetJNIEnvNewFrame)                               136    ( 52%)
libgcj.so.6(_Jv_JNI_PopSystemFrame)                              3      (  1%)
libgcj.so.6(_Z20_Jv_GetCurrentJNIEnvv)                           4      (  2%)
invbench(_Jv_JNI_PopSystemFrame)                                 2      (  1%)
Native::a()                                                      3      (  1%)
Bench::Bench()                                                   1      (  0%)


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2004-04-06 02:31:10         |2004-04-19 23:52:26
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12957



More information about the Gcc-bugs mailing list