Compiling libjvm.so as PIC
omajid at redhat.com
Tue Dec 16 11:44:19 PST 2008
Ionana and I have been trying to get icedtea to work when built as a
normal user with SELinux enabled. SELinux stops java from loading
libjvm.so which is built as non-PIC. Please see
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6538311 for more
The bug report states that building libjvm.so as PIC has performance
penalties. Ioana and I have been comparing the performance of a JVM
built as PIC with one built as non-PIC for the last few days. For the
JVM built as PIC, the fastest run was about 3% faster than the slowest.
For the JVM built as non-PIC, the fastest run was about 1% faster than
the slowest. Comparing the average performance, the PIC JVM seems to be
faster by 0.59% which indicates that any difference in performance is
Building libjmv.so as PIC should also result in memory savings as the
code segment will be shared across processes.
The attached patch will build libjvm.so as PIC. Any objections to
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1410 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20081216/1c489bd8/pic.patch
More information about the distro-pkg-dev