Should we get rid of libnpt.so ?

Dmitry Samersoff dmitry.samersoff at oracle.com
Fri Apr 4 16:28:33 UTC 2014


Hi Everybody,

  We have an libnpt.so[1] in JDK. This library contains bunch of UTF
related functions. On a brief investigation it looks like most of these
functions are not used. Six functions below called one time each from
share/back/* and hprof_init.c [2]

  Should I file a CR to have it cleaned up - remove npt library as a
separate entity and move few utf functions that really used to place
where it actually called.


[1] Library sources location

src/share/npt
src/solaris/npt
src/windows/npt

[2] Library usage

src/share/back/transport.c:

utf8FromPlatform
utf8ToPlatform

src/share/back/inStream.c:

utf8sToUtf8m
utf8sToUtf8mLength

src/share/back/outStream.c:

utf8mToUtf8s
utf8mToUtf8sLength


src/share/demo/jvmti/hprof/hprof_init.c

utf8ToPlatform


-Dmitry

-- 
Dmitry Samersoff
Oracle Java development team, Saint Petersburg, Russia
* I would love to change the world, but they won't give me the sources.


More information about the serviceability-dev mailing list