tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: svn commit: r1159673 - in /tomcat/tc7.0.x/trunk: java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java webapps/docs/changelog.xml webapps/docs/config/listeners.xml
Date Fri, 19 Aug 2011 16:34:43 GMT
2011/8/19  <schultz@apache.org>:
> +    private boolean awtThreadProtection = false;
> +    public boolean isAWTThreadProtection() { return awtThreadProtection; }
> +    public void setAWTThreadProtection(boolean awtThreadProtection) {
> +      this.awtThreadProtection = awtThreadProtection;
> +    }

> +      <attribute name="awtThreadProtection" required="false">

Looking at the getter and setter methods, I think the actual name of
the property is "AWTThread...". I have not tried it though.

Wouldn't you forget to apply the same change to trunk (aka Tomcat 8)?

> +        <p>Enables protection so that calls to
> +        <code>java.awt.Toolkit.getDefaultToolkit()</code> triggered
by a web
> +        application do not result in a memory leak.
> +        Defaults to <code>false</code> because an AWT thread is launched.</p>
> +      </attribute>

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message