Re: runhprof not working in JDK7 builds

2012-01-21 Thread Henri Gomez
Note to all,

Building mlvm for osx is still tricky, based on bsd-port (old) with mq patches 
system which exclude some commits. 

So it's hard to know from hg commits if a new build is requiered for osx :-(

We really need osx code back in jdk8 and some guidelines on how patches are 
included/excluded. 

Cheers

Le 20 janv. 2012 à 05:23, Charles Oliver Nutter  a écrit :

> I found the problem, The switch at java_crw_demo.c:662 is not handling
> the two new constant types JVM_CONSTANT_MethodHandle and
> JVM_CONSTANT_MethodType. I'm not sure how they're actually structured,
> so I'll leave a fix to those who do :)
> 
> Probably worth auditing the codebase for other places the JVM_CONSTANT
> constants are accessed and make sure they handle the new ones too.
> 
> - Charlie
> 
> On Thu, Jan 19, 2012 at 8:20 PM, Charles Oliver Nutter
>  wrote:
>> Actually it is not working in the official build either. Same error.
>> 
>> On Thu, Jan 19, 2012 at 8:13 PM, Charles Oliver Nutter
>>  wrote:
>>> Hello friends and Henri Gomez!
>>> 
>>> I have just learned that another user building OpenJDK on Linux sees
>>> the same runhprof error I do when I run on OS X. Basically, if you try
>>> to -Xrunhprof, you get this:
>>> 
>>> HPROF ERROR: Unknown constant
>>> [../../../src/share/demo/jvmti/java_crw_demo/java_crw_demo.c:693]
>>> [hprof_init.c:210]
>>> HPROF TERMINATED PROCESS
>>> 
>>> What's the dilly-o? I needs me my runhprof!
>>> 
>>> - Charlie
> ___
> mlvm-dev mailing list
> mlvm-dev@openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
___
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev


Re: runhprof not working in JDK7 builds

2012-01-19 Thread Charles Oliver Nutter
I found the problem, The switch at java_crw_demo.c:662 is not handling
the two new constant types JVM_CONSTANT_MethodHandle and
JVM_CONSTANT_MethodType. I'm not sure how they're actually structured,
so I'll leave a fix to those who do :)

Probably worth auditing the codebase for other places the JVM_CONSTANT
constants are accessed and make sure they handle the new ones too.

- Charlie

On Thu, Jan 19, 2012 at 8:20 PM, Charles Oliver Nutter
 wrote:
> Actually it is not working in the official build either. Same error.
>
> On Thu, Jan 19, 2012 at 8:13 PM, Charles Oliver Nutter
>  wrote:
>> Hello friends and Henri Gomez!
>>
>> I have just learned that another user building OpenJDK on Linux sees
>> the same runhprof error I do when I run on OS X. Basically, if you try
>> to -Xrunhprof, you get this:
>>
>> HPROF ERROR: Unknown constant
>> [../../../src/share/demo/jvmti/java_crw_demo/java_crw_demo.c:693]
>> [hprof_init.c:210]
>> HPROF TERMINATED PROCESS
>>
>> What's the dilly-o? I needs me my runhprof!
>>
>> - Charlie
___
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev


Re: runhprof not working in JDK7 builds

2012-01-19 Thread Charles Oliver Nutter
Actually it is not working in the official build either. Same error.

On Thu, Jan 19, 2012 at 8:13 PM, Charles Oliver Nutter
 wrote:
> Hello friends and Henri Gomez!
>
> I have just learned that another user building OpenJDK on Linux sees
> the same runhprof error I do when I run on OS X. Basically, if you try
> to -Xrunhprof, you get this:
>
> HPROF ERROR: Unknown constant
> [../../../src/share/demo/jvmti/java_crw_demo/java_crw_demo.c:693]
> [hprof_init.c:210]
> HPROF TERMINATED PROCESS
>
> What's the dilly-o? I needs me my runhprof!
>
> - Charlie
___
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev


runhprof not working in JDK7 builds

2012-01-19 Thread Charles Oliver Nutter
Hello friends and Henri Gomez!

I have just learned that another user building OpenJDK on Linux sees
the same runhprof error I do when I run on OS X. Basically, if you try
to -Xrunhprof, you get this:

HPROF ERROR: Unknown constant
[../../../src/share/demo/jvmti/java_crw_demo/java_crw_demo.c:693]
[hprof_init.c:210]
HPROF TERMINATED PROCESS

What's the dilly-o? I needs me my runhprof!

- Charlie
___
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev