Code review request for 7049079: NTSYSTEM CLASS IS LEAKING 3 WINDOWS TOKENS

Seán Coffey sean.coffey at oracle.com
Fri Sep 2 15:15:07 UTC 2011


This is a forward port to JDK 8 of a fix gone into jdk 5 and jdk6 releases.
It'll be ported to 7u shortly after jdk8.

Bug id is not public.

NTSystem() obtains a native Token instance for each constructor call.
This is unnecessary and Token instances should only be requested when
called for, i.e. at getImpersonationToken() time.

No auto testcase but fix has been verified though use of the MS handle
tool and a simple java testcase.

http://cr.openjdk.java.net/~coffeys/webrev.7049079.jdk8/

Regards,
Sean.



More information about the security-dev mailing list