<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Suraj --<br>
    <br>
    Either:<br>
    <br>
    (1) use a non-product build where the flag is available, OR<br>
    <br>
    (2) rebuild with Verbose declared a product flag (but you will have
    to deal with<br>
         develop->product contagion which will require more such
    changes), OR<br>
    <br>
    (3) (probably the easiest in a specific product build) rebuild with
    Verbose changed to<br>
          a new product flag of your choice for the specific sites where
    you want to print the info<br>
          but want to retain the option of turning it off. Depending on
    where you do this, this<br>
          may also cause a develop->product contagion, but it will be
    a more controlled burn, if<br>
          i may be allowed to mix my metaphors.<br>
    <br>
    (..) anything else?<br>
    <br>
    The above are all one-off's for use in a specific build.<br>
    <br>
    There may be good reason to protect some of these more useful
    messages with a product<br>
    flag rather than with a develop flag. I recall Krystal Mok also
    mentioning something similar.<br>
    Perhaps the community can work on what are the kinds of messages one
    might want to<br>
    see in production (under control of a suitable manageable/product
    flag), and submit an OpenJDK<br>
    patch with those changes (hopefully the performance impact of the
    check or enablement<br>
    will be minor enough when these changes are for example
    communicating ergonomic<br>
    decisions etc. -- this should of course be performance checked
    before a patch is submitted).<br>
    <br>
    I'm also hoping that in the future some of these may be captured by
    the logging framework<br>
    under construction. Those working on or planning to work on the
    logging framework may hav<br>
     more to add. So I am cc'ing the serviceability alias as well.<br>
    <br>
    -- ramki<br>
    <br>
    On 8/25/2011 12:58 PM, suraj puvvada wrote:
    <blockquote
cite="mid:CA+DdUfF6RTju=WUCjZr-Lkvu1rgWqrs710MKsSjwKztpZo-eUg@mail.gmail.com"
      type="cite"><font face="tahoma,sans-serif">Hi,<br>
        <br>
        How can I enable DEVELOP mode flags like "Verbose" ? I'm
        interested in seeing what the GC code logs - for example :<br>
        <br>
        if (PrintGCDetails && Verbose) {<br>
             
        gclog_or_tty->print_cr("ConcurrentMarkSweepGeneration::shrink_by:"<br>
                " desired_bytes " SIZE_FORMAT<br>
                " shrinkable_size_in_bytes " SIZE_FORMAT<br>
                " aligned_shrinkable_size_in_bytes " SIZE_FORMAT<br>
                "  bytes  " SIZE_FORMAT,<br>
                desired_bytes, shrinkable_size_in_bytes,<br>
                aligned_shrinkable_size_in_bytes, bytes);<br>
              gclog_or_tty->print_cr("          old_end  "
        SIZE_FORMAT<br>
                "  unallocated_start  " SIZE_FORMAT,<br>
                old_end, unallocated_start);<br>
            }<br>
        <br>
        <br>
        -Suraj<br>
      </font>
    </blockquote>
  </body>
</html>