Patch: Add methods to GCInfo to allow GC_free_space_divisor to be manipulated.

David Daney ddaney@avtrex.com
Thu Oct 18 19:36:00 GMT 2007


David Daney wrote:
> +  /**
> +   * @throws SecurityException if there is a SecurityManager installed
> +   * and UtilPermission("dumpHeap") is not granted.
> +   */
> +  private static void checkParametersPermission()
> +  {
> +    SecurityManager sm = System.getSecurityManager();
> +    if (sm != null)
> +      sm.checkPermission(new UtilPermission("changeGCParameters"));
> +  }

OK, that javadoc is incorrect.  I will fix it to read "changeGCParameters".

David Daney



More information about the Java-patches mailing list