harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Salikh Zakirov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-1847) [drlvm] -verbose option does nothing
Date Fri, 13 Oct 2006 12:28:36 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1847?page=all ]

Salikh Zakirov updated HARMONY-1847:
------------------------------------

    Attachment: workaround-fflush-log.patch

There are two separate issues with -verbose.

First, there is a bug which prevents -verbose to print anything. I suspect this because of
missing flush() calls in the logger. The attached workaround-fflush-log.patch provides a dirty
workaround, which assumes that logger uses stderr for its output (which is the case by default).
With the workaround, the expected output on HelloWord aplication is

  GC init called

  GC v4.1 Wed Oct 11 22:07:28 2006 (debug)
  GC type = 0
  GC will use adaptive algorithm selection
  min heap size 16 mb
  max heap size 256 mb
  GC use small pages

  Hi!

The second problem is that -verbose:class does not report loaded jar files and loaded classes.
('-verbose' is equivalent to '-verbose:gc -verbose:jni -verbose:class').

> [drlvm] -verbose option does nothing
> ------------------------------------
>
>                 Key: HARMONY-1847
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1847
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Any just java -version test
>            Reporter: Jean-Frederic Clere
>            Priority: Minor
>         Attachments: workaround-fflush-log.patch
>
>
> java -verbose does not print any information
> To debug an application it is very helpfull to know which classes and in which order
they are loaded.
> Something like what RI gives would be enough.
> [Opened C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Opened C:\tools\sun1.5.0\jre\lib\charsets.jar]
> [Loaded java.lang.Object from C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Loaded java.io.Serializable from C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Loaded java.lang.Comparable from C:\tools\sun1.5.0\jre\lib\rt.jar] 
> Xtrace:classloader contains the information but it is too verbose.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message