openjdk-6-vm-shark on armv6 (ARM1176)
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/[email protected]/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
Hi,
it isn't, most tests werde done on armv7 arch's or armv4t.
Bye Henning
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · Ken Gilmer
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
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · Ken Gilmer
root@BUG:~# java -shark -Xbatch \Quoted 1 line
-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
Quoted 10 lines · Michael Smith
Quoted 7 lines · Ken Gilmer
root@BUG:~# java -shark -Xbatch \Quoted 1 line
-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)
Quoted 3 lines
Nice! What version of gcc are you using?
Mike
bug 2.0 is armv7a, same as beagleboard.
Bye Henning
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:
Quoted 33 lines
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/[email protected]/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 faultI'll look further; just wondering if this is known not to work.
Thanks,
Mike_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 4 lines · Robert Schuster
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
Quoted 3 lines · Michael Smith
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