RFR: 8227587: Add internal privileged System.loadLibrary
mandy.chung at oracle.com
Tue Jul 16 16:42:56 UTC 2019
On 7/16/19 6:48 AM, Claes Redestad wrote:
> refactored to use a BootLoader::loadLibrary API that is only visible
> within the java.base module:
Nit: in JavaLangAccess
321 void loadLibrary(Class<?> klass, String library);
> I've retained the bridge to ClassLoader::loadLibrary for performance,
> but without any magic or privilege escalation involved. Moving sys_path
> / systemNativeLibraries out of ClassLoader seems quite complicated, so
> I've not attempted that refactoring for this RFE.
Yes, it is non-trivial. I will file a RFE for this possible clean up.
More information about the core-libs-dev