Code review request for 7049079: NTSYSTEM CLASS IS LEAKING 3 WINDOWS TOKENS (original) (raw)
Seán Coffey sean.coffey at oracle.com
Fri Sep 2 15:15:07 UTC 2011
- Previous message (by thread): hg: jdk8/tl/jdk: 7082971: More performance tuning of BigDecimal and other java.math classes
- Next message (by thread): Code review request for 7049079: NTSYSTEM CLASS IS LEAKING 3 WINDOWS TOKENS
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message (by thread): hg: jdk8/tl/jdk: 7082971: More performance tuning of BigDecimal and other java.math classes
- Next message (by thread): Code review request for 7049079: NTSYSTEM CLASS IS LEAKING 3 WINDOWS TOKENS
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]