You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Salikh Zakirov <Sa...@Intel.com> on 2006/10/13 14:39:19 UTC

[drlvm] An easy task for a DRLVM newby: fix -verbose:class

Hi,

as discussed in HARMONY-1847, -verbose:class currently does not produce output
which is reasonable to expect.

For example, running HelloWorld on JRockit 1.5 produces something like
the below text (only several lines provided).

The right way to fix is to put logging lines in the class loading code,
like

    INFO2("class", "[load] opened zip " << zip_file_name);

INFO2 is a macro available by

    #include <cxxlog.h>

First argument is the logging category "class",
the second argument is the iostream-style printed message,
concatenated together with operator <<.

The task will take some reading through enhanced/drlvm/trunk/vm/vmcore/src/class_support/*.c

Any undertakers?

[load   ] opened zip c:\java5\jre\lib\jrockit.jar
[load   ] opened zip c:\java5\jre\lib\rt.jar
[load   ] opened zip c:\java5\jre\lib\jsse.jar
[load   ] opened zip c:\java5\jre\lib\jce.jar
[load   ] opened zip c:\java5\jre\lib\charsets.jar
[load   ] opened zip c:\java5\jre\lib\managementapi.jar
[load   ] initiated ? (0x2)   0 0x00000000/java/lang/Object
[load   ] define ? (0x2) #  0 java/lang/Object
          loader=0x00000000, src=c:\java5\jre\lib\jrockit.jar
[load   ] loading ? (0x2)   0 0x00000000/java/lang/Object success (0.41 ms)
[load   ] initiated ? (0x2)   1 0x00000000/java/io/Serializable
[load   ] define ? (0x2) #  1 java/io/Serializable
          loader=0x00000000, src=c:\java5\jre\lib\rt.jar
[load   ] loading ? (0x2)   1 0x00000000/java/io/Serializable success (0.05 ms)
[load   ] initiated ? (0x2)   2 0x00000000/java/lang/Class
[load   ] define ? (0x2) #  2 java/lang/Class
          loader=0x00000000, src=c:\java5\jre\lib\jrockit.jar
... many similar lines snipped


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [drlvm] An easy task for a DRLVM newby: fix -verbose:class

Posted by Mikhail Fursov <mi...@gmail.com>.
BTW, you asked several days ago what would be the content of our wiki page.
The  list with easy but useful tasks for newbies can be a good idea :)

On 10/13/06, Salikh Zakirov <Sa...@intel.com> wrote:
>
> Hi,
>
> as discussed in HARMONY-1847, -verbose:class currently does not produce
> output
> which is reasonable to expect.
>
> For example, running HelloWorld on JRockit 1.5 produces something like
> the below text (only several lines provided).
>
> The right way to fix is to put logging lines in the class loading code,
> like
>
>     INFO2("class", "[load] opened zip " << zip_file_name);
>
> INFO2 is a macro available by
>
>     #include <cxxlog.h>
>
> First argument is the logging category "class",
> the second argument is the iostream-style printed message,
> concatenated together with operator <<.
>
> The task will take some reading through
> enhanced/drlvm/trunk/vm/vmcore/src/class_support/*.c
>
> Any undertakers?
>
> [load   ] opened zip c:\java5\jre\lib\jrockit.jar
> [load   ] opened zip c:\java5\jre\lib\rt.jar
> [load   ] opened zip c:\java5\jre\lib\jsse.jar
> [load   ] opened zip c:\java5\jre\lib\jce.jar
> [load   ] opened zip c:\java5\jre\lib\charsets.jar
> [load   ] opened zip c:\java5\jre\lib\managementapi.jar
> [load   ] initiated ? (0x2)   0 0x00000000/java/lang/Object
> [load   ] define ? (0x2) #  0 java/lang/Object
>           loader=0x00000000, src=c:\java5\jre\lib\jrockit.jar
> [load   ] loading ? (0x2)   0 0x00000000/java/lang/Object success (0.41ms)
> [load   ] initiated ? (0x2)   1 0x00000000/java/io/Serializable
> [load   ] define ? (0x2) #  1 java/io/Serializable
>           loader=0x00000000, src=c:\java5\jre\lib\rt.jar
> [load   ] loading ? (0x2)   1 0x00000000/java/io/Serializable success (
> 0.05 ms)
> [load   ] initiated ? (0x2)   2 0x00000000/java/lang/Class
> [load   ] define ? (0x2) #  2 java/lang/Class
>           loader=0x00000000, src=c:\java5\jre\lib\jrockit.jar
> ... many similar lines snipped
>
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>


-- 
Mikhail Fursov

Re: [drlvm] An easy task for a DRLVM newby: fix -verbose:class

Posted by "Geir Magnusson Jr." <ge...@pobox.com>.

Salikh Zakirov wrote:
> Hi,
> 
> as discussed in HARMONY-1847, -verbose:class currently does not produce output
> which is reasonable to expect.
> 
> For example, running HelloWorld on JRockit 1.5 produces something like
> the below text (only several lines provided).
> 
> The right way to fix is to put logging lines in the class loading code,
> like
> 
>     INFO2("class", "[load] opened zip " << zip_file_name);
> 
> INFO2 is a macro available by
> 
>     #include <cxxlog.h>
> 
> First argument is the logging category "class",
> the second argument is the iostream-style printed message,
> concatenated together with operator <<.
> 
> The task will take some reading through enhanced/drlvm/trunk/vm/vmcore/src/class_support/*.c
> 
> Any undertakers?

For the record, an "undertaker" is a person that runs a funeral home.  I 
think you meant "takers" :)

This is a good task.  Feel free to add it to JIRA to make it easy for 
someone to find.

geir

> 
> [load   ] opened zip c:\java5\jre\lib\jrockit.jar
> [load   ] opened zip c:\java5\jre\lib\rt.jar
> [load   ] opened zip c:\java5\jre\lib\jsse.jar
> [load   ] opened zip c:\java5\jre\lib\jce.jar
> [load   ] opened zip c:\java5\jre\lib\charsets.jar
> [load   ] opened zip c:\java5\jre\lib\managementapi.jar
> [load   ] initiated ? (0x2)   0 0x00000000/java/lang/Object
> [load   ] define ? (0x2) #  0 java/lang/Object
>           loader=0x00000000, src=c:\java5\jre\lib\jrockit.jar
> [load   ] loading ? (0x2)   0 0x00000000/java/lang/Object success (0.41 ms)
> [load   ] initiated ? (0x2)   1 0x00000000/java/io/Serializable
> [load   ] define ? (0x2) #  1 java/io/Serializable
>           loader=0x00000000, src=c:\java5\jre\lib\rt.jar
> [load   ] loading ? (0x2)   1 0x00000000/java/io/Serializable success (0.05 ms)
> [load   ] initiated ? (0x2)   2 0x00000000/java/lang/Class
> [load   ] define ? (0x2) #  2 java/lang/Class
>           loader=0x00000000, src=c:\java5\jre\lib\jrockit.jar
> ... many similar lines snipped
> 
> 
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> 


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org