All of lore.kernel.org
 help / color / mirror / Atom feed
* openjdk-6-vm-shark on armv6 (ARM1176)
@ 2011-01-12 23:25 Michael Smith
  2011-01-13  9:42 ` Henning Heinold
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Michael Smith @ 2011-01-12 23:25 UTC (permalink / raw)
  To: openembedded-devel

Hey,

Maybe OT for here, but I'm wondering if anyone else has tried to run the 
OE-built shark VM on armv6. For me it crashes the first time it tries to 
JIT anything.

LLVM llc/lli fail to run the hello world app from here:

http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg08264.html 


/tmp # llvm-as hello.ll
/tmp # lli hello.bc
Stack dump:
0.      Program arguments: lli hello.bc
1.      Running pass 'ARM Instruction Selection' on function '@main'
Segmentation fault

/tmp # llc hello.bc
Stack dump:
0.      Program arguments: llc hello.bc
1.      Running pass 'ARM Instruction Selection' on function '@main'
Segmentation fault

I'll look further; just wondering if this is known not to work.

Thanks,
Mike



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: openjdk-6-vm-shark on armv6 (ARM1176)
  2011-01-12 23:25 openjdk-6-vm-shark on armv6 (ARM1176) Michael Smith
@ 2011-01-13  9:42 ` Henning Heinold
       [not found] ` <AANLkTinfpFWJSY6JfTU+KaO4b6J1aJowir+Z97OnHNUm@mail.gmail.com>
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Henning Heinold @ 2011-01-13  9:42 UTC (permalink / raw)
  To: openembedded-devel

Hi,

it isn't, most tests werde done on armv7 arch's or armv4t.

Bye Henning



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: openjdk-6-vm-shark on armv6 (ARM1176)
       [not found] ` <AANLkTinfpFWJSY6JfTU+KaO4b6J1aJowir+Z97OnHNUm@mail.gmail.com>
@ 2011-01-13 13:43   ` Michael Smith
       [not found]     ` <AANLkTi=qTS0YRq1Q9N8GcMz+neaYJD+NzRQ6hDPjpNtW@mail.gmail.com>
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Smith @ 2011-01-13 13:43 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ken Gilmer

Ken Gilmer wrote:
>   I have built OpenJDK with shark for armv6 (iMX.31) and have not had 
> any problems.  I haven't done a whole lot of testing, but enough to say 
> it should work.  More details here:
> 
> http://community.buglabs.net/kgilmer/posts/213-OpenJDK-on-BUG-1-3-Devices-Update-now-with-shark-

Cool, thanks. I'm also using iMX.31. Do you have time to try something?

java -shark -Xbatch \
     -XX:+PrintCompilation -XX:CompileThreshold=100 -version

That will force it to compile code after fewer iterations, and for me it 
fails the first time it tries to compile anything:

   1   b   java.lang.String::hashCode (60 bytes)
Stack dump:
0.      Running pass 'ARM Instruction Selection' on function 
'@"java.lang.String::hashCode"'

Mike



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: openjdk-6-vm-shark on armv6 (ARM1176)
  2011-01-12 23:25 openjdk-6-vm-shark on armv6 (ARM1176) Michael Smith
  2011-01-13  9:42 ` Henning Heinold
       [not found] ` <AANLkTinfpFWJSY6JfTU+KaO4b6J1aJowir+Z97OnHNUm@mail.gmail.com>
@ 2011-01-13 13:59 ` Robert Schuster
  2011-01-13 14:14   ` Michael Smith
  2011-01-13 19:05 ` Michael Smith
  3 siblings, 1 reply; 8+ messages in thread
From: Robert Schuster @ 2011-01-13 13:59 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 1279 bytes --]

Hi Michael,
can you check whether your llvm build definitely has multithread
support? Check the build logfiles. If it is not enabled there will be
warning message somewhere.

Regards
Robert

Am 13.01.2011 00:25, schrieb Michael Smith:
> Hey,
> 
> Maybe OT for here, but I'm wondering if anyone else has tried to run the
> OE-built shark VM on armv6. For me it crashes the first time it tries to
> JIT anything.
> 
> LLVM llc/lli fail to run the hello world app from here:
> 
> http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg08264.html
> 
> 
> /tmp # llvm-as hello.ll
> /tmp # lli hello.bc
> Stack dump:
> 0.      Program arguments: lli hello.bc
> 1.      Running pass 'ARM Instruction Selection' on function '@main'
> Segmentation fault
> 
> /tmp # llc hello.bc
> Stack dump:
> 0.      Program arguments: llc hello.bc
> 1.      Running pass 'ARM Instruction Selection' on function '@main'
> Segmentation fault
> 
> I'll look further; just wondering if this is known not to work.
> 
> Thanks,
> Mike
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel





[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 270 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: openjdk-6-vm-shark on armv6 (ARM1176)
  2011-01-13 13:59 ` Robert Schuster
@ 2011-01-13 14:14   ` Michael Smith
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Smith @ 2011-01-13 14:14 UTC (permalink / raw)
  To: openembedded-devel

Robert Schuster wrote:
> Hi Michael,
> can you check whether your llvm build definitely has multithread
> support? Check the build logfiles. If it is not enabled there will be
> warning message somewhere.

 From llvm do_configure:

-- Performing Test LLVM_MULTITHREADED
-- Performing Test LLVM_MULTITHREADED - Success

Thanks,
Mike



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: openjdk-6-vm-shark on armv6 (ARM1176)
  2011-01-12 23:25 openjdk-6-vm-shark on armv6 (ARM1176) Michael Smith
                   ` (2 preceding siblings ...)
  2011-01-13 13:59 ` Robert Schuster
@ 2011-01-13 19:05 ` Michael Smith
  3 siblings, 0 replies; 8+ messages in thread
From: Michael Smith @ 2011-01-13 19:05 UTC (permalink / raw)
  To: openembedded-devel

Michael Smith wrote:
> Maybe OT for here, but I'm wondering if anyone else has tried to run the 
> OE-built shark VM on armv6. For me it crashes the first time it tries to 
> JIT anything.
> 
> LLVM llc/lli fail to run the hello world app from here:

Shark and lli work (slowly :) on armv6 if llvm is built with 
-DCMAKE_BUILD_TYPE:STRING=Debug. I'm using gcc 4.3.3; maybe it's just an 
optimization bug fixed in a later version.

Mike



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: openjdk-6-vm-shark on armv6 (ARM1176)
       [not found]     ` <AANLkTi=qTS0YRq1Q9N8GcMz+neaYJD+NzRQ6hDPjpNtW@mail.gmail.com>
@ 2011-01-14 13:59       ` Michael Smith
  2011-01-14 23:34         ` Henning Heinold
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Smith @ 2011-01-14 13:59 UTC (permalink / raw)
  To: Ken Gilmer; +Cc: openembedded-devel

On Fri, 14 Jan 2011, Ken Gilmer wrote:

> root@BUG:~# java -shark -Xbatch \
> >    -XX:+PrintCompilation -XX:CompileThreshold=100 -version
>   1   b   java.lang.String::hashCode (60 bytes)
>   2   b   java.lang.String::equals (88 bytes)
>   3   b   java.lang.System::getSecurityManager (4 bytes)
>   4  !b   sun.nio.cs.US_ASCII$Encoder::encodeArrayLoop (279 bytes)
> java version "1.6.0_18"  5   b   java.lang.String::indexOf (151 bytes)

Nice! What version of gcc are you using?

Mike



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: openjdk-6-vm-shark on armv6 (ARM1176)
  2011-01-14 13:59       ` Michael Smith
@ 2011-01-14 23:34         ` Henning Heinold
  0 siblings, 0 replies; 8+ messages in thread
From: Henning Heinold @ 2011-01-14 23:34 UTC (permalink / raw)
  To: openembedded-devel

On Fri, Jan 14, 2011 at 08:59:52AM -0500, Michael Smith wrote:
> On Fri, 14 Jan 2011, Ken Gilmer wrote:
> 
> > root@BUG:~# java -shark -Xbatch \
> > >    -XX:+PrintCompilation -XX:CompileThreshold=100 -version
> >   1   b   java.lang.String::hashCode (60 bytes)
> >   2   b   java.lang.String::equals (88 bytes)
> >   3   b   java.lang.System::getSecurityManager (4 bytes)
> >   4  !b   sun.nio.cs.US_ASCII$Encoder::encodeArrayLoop (279 bytes)
> > java version "1.6.0_18"  5   b   java.lang.String::indexOf (151 bytes)
> 
> Nice! What version of gcc are you using?
> 
> Mike

bug 2.0 is armv7a, same as beagleboard.

Bye Henning



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-01-14 23:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-12 23:25 openjdk-6-vm-shark on armv6 (ARM1176) Michael Smith
2011-01-13  9:42 ` Henning Heinold
     [not found] ` <AANLkTinfpFWJSY6JfTU+KaO4b6J1aJowir+Z97OnHNUm@mail.gmail.com>
2011-01-13 13:43   ` Michael Smith
     [not found]     ` <AANLkTi=qTS0YRq1Q9N8GcMz+neaYJD+NzRQ6hDPjpNtW@mail.gmail.com>
2011-01-14 13:59       ` Michael Smith
2011-01-14 23:34         ` Henning Heinold
2011-01-13 13:59 ` Robert Schuster
2011-01-13 14:14   ` Michael Smith
2011-01-13 19:05 ` Michael Smith

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.