[lsb-discuss] LSB 3.2 Compliance Report: Sun JRE 6 (update 5) on x86

Wichmann, Mats D mats.d.wichmann at intel.com
Thu Apr 10 19:33:02 PDT 2008


Sorry to send these piecemeal. 

dl_iterate_phdr is used to workaround a bug in "old"
dladdr.  According to the comments, this workaround
could be removed once the minimum requirement is
moved forward to glibc 2.3.x (in the LSB context, that's
already been a requirement for a long time).

gnu_get_libc_version and gnu_get_libc_release are
used as a fallback for confstr(_CS_GNU_LIBPTHREAD_VERSION)
which is also not in LSB; these are used to try to
make a determination between LinuxThreads and NPTL.
Again in current LSB context this is not an issue
since NPTL is required.  Note that in a non-glibc
situation (say, mobile with a different libc), the
nptl question may not be as definitively answered.

pthread_getattr_np is used even though Java considers
it buggy so it has to have some special workarounds.
these are only in arch-specific Linux pieces.

sysinfo is used to determine available memory:
sysinfo(&si);
return si.freeram * si_mem_unit;

I'm not sure why this can't use the sysconf
_SC_AVPHYS_PAGES call instead but there's probably
a valid reason.

Note that *all* of this stuff is in the hotspot
subdirectory tree.

there are sendfile references outside this area,
but it's hard to tell what gets included in which
flavor of build.





More information about the lsb-discuss mailing list