hi,all:<div>I just commented out "<span style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:22px;background-color:rgb(255,255,255)">--</span><em style="font-weight:bold;font-style:normal;font-family:arial,sans-serif;line-height:22px;background-color:rgb(255,255,255)">enable-zero" </em><em style="font-style:normal;font-family:arial,sans-serif;line-height:22px;background-color:rgb(255,255,255)">option and recompiled the icedtea 2.3.2, and the problem has been solved.</em></div>
<div><font face="arial, sans-serif"><span style="line-height:22px">Thanks for all the help.</span></font></div><div><font face="arial, sans-serif"><span style="line-height:22px"><br></span></font></div><div><font face="arial, sans-serif"><span style="line-height:22px">All the best</span></font></div>
<div><font face="arial, sans-serif"><span style="line-height:22px">Leon</span></font></div><div><div><br><div class="gmail_quote">On 11 September 2012 07:33, <a href="mailto:the.6th.month@gmail.com">the.6th.month@gmail.com</a> <span dir="ltr"><<a href="mailto:the.6th.month@gmail.com" target="_blank">the.6th.month@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p>hi, chris, thanks very much indeed, hope icedtea could support g1 cuz it is simply a bloody good stuff</p><div class="HOEnZb">
<div class="h5">
<div class="gmail_quote">On Sep 11, 2012 2:01 AM, "Chris Phillips @ T O" <<a href="mailto:ChrisPhi@lgonqn.org" target="_blank">ChrisPhi@lgonqn.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Hi<br>
You should probably address this to the icedtea list or the Zero
list as zero is effectively<br>
unsupported by the maintainers of the g1 code (they don't build or
test with it...)<br>
In any event the code that you are using was re-enabled by me
recently so when<br>
I get some time (still working on jsr 292 atm), I'll try to
re-enable g1 with zero [no promises].<br>
If you can do it then submit a patch... <br>
<br>
Cheers!<br>
Chris<br>
<br>
On 10/09/12 01:49 PM, <a href="mailto:the.6th.month@gmail.com" target="_blank">the.6th.month@gmail.com</a> wrote:<br>
</div>
<blockquote type="cite">hi,all:
<div><br>
</div>
<div>I just compiled an icedtea-2.3.2 version on my laptop, the
kernel version is Linux-3.5.3. I manually built it for the
purpose of systemtap, and hence added --enable-systemtap compile
option.</div>
<div><br>
</div>
<div>Then I ran a simple test program with vm args: -Xms1024m
-Xmx1024m -Xmn256m -XX:PermSize=256m -XX:+UseG1GC, and I got a
core dump. The bt output from gdb is shown below:</div>
<div>
<div>Using host libthread_db library "/lib64/libthread_db.so.1".</div>
<div>Core was generated by `/usr/lib64/java/bin/java -Xms1024m
-Xmx1024m -Xmn256m -XX:PermSize=256m -XX:+Us'.</div>
<div>Program terminated with signal 6, Aborted.</div>
<div>#0 0x00007fcfb8950a25 in raise () from /lib64/libc.so.6</div>
<div>(gdb) bt</div>
<div>#0 0x00007fcfb8950a25 in raise () from /lib64/libc.so.6</div>
<div>#1 0x00007fcfb89521d8 in abort () from /lib64/libc.so.6</div>
<div>#2 0x00007fcfb853eaa1 in os::abort (dump_core=true)</div>
<div>
at
/tmp/icedtea-2.3.2/openjdk/hotspot/src/os/linux/vm/os_linux.cpp:1589</div>
<div>#3 0x00007fcfb85f18cf in VMError::report_and_die
(this=0x7fcfb970f7d0)</div>
<div> at
/tmp/icedtea-2.3.2/openjdk/hotspot/src/share/vm/utilities/vmError.cpp:1004</div>
<div>#4 0x00007fcfb836c95f in report_vm_error (detail_msg=0x0,
error_msg=0x7fcfb860cd26 "Unimplemented()", </div>
<div> line=<optimized out>, file=<optimized out>)</div>
<div> at
/tmp/icedtea-2.3.2/openjdk/hotspot/src/share/vm/utilities/debug.cpp:220</div>
<div>#5 report_vm_error (detail_msg=0x0,
error_msg=0x7fcfb860cd26 "Unimplemented()", line=<optimized
out>, </div>
<div> file=<optimized out>) at
/tmp/icedtea-2.3.2/openjdk/hotspot/src/share/vm/utilities/debug.cpp:260</div>
<div>#6 report_unimplemented (file=<optimized out>,
line=<optimized out>)</div>
<div> at
/tmp/icedtea-2.3.2/openjdk/hotspot/src/share/vm/utilities/debug.cpp:261</div>
<div>#7 0x00007fcfb836c15d in generate_Reference_get_entry
(this=0x7fcfb970fb00)</div>
<div> at
/tmp/icedtea-2.3.2/openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp:1649</div>
<div>#8 AbstractInterpreterGenerator::generate_method_entry
(this=0x7fcfb970fb00, kind=<optimized out>)</div>
<div> at
/tmp/icedtea-2.3.2/openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp:1725</div>
<div>#9 0x00007fcfb8368634 in
CppInterpreterGenerator::generate_all (this=0x7fcfb970fb00)</div>
<div> at
/tmp/icedtea-2.3.2/openjdk/hotspot/src/share/vm/interpreter/cppInterpreter.cpp:128</div>
<div>#10 0x00007fcfb8367be2 in CppInterpreter::initialize ()</div>
<div> at
/tmp/icedtea-2.3.2/openjdk/hotspot/src/share/vm/interpreter/cppInterpreter.cpp:45</div>
<div>#11 0x00007fcfb84182e9 in interpreter_init ()</div>
<div> at
/tmp/icedtea-2.3.2/openjdk/hotspot/src/share/vm/interpreter/interpreter.cpp:113</div>
<div>#12 0x00007fcfb83ea4d5 in init_globals () at
/tmp/icedtea-2.3.2/openjdk/hotspot/src/share/vm/runtime/init.cpp:102</div>
<div>#13 0x00007fcfb85c2bdc in Threads::create_vm
(args=<optimized out>, canTryAgain=0x7fcfb970fd90)</div>
<div> at
/tmp/icedtea-2.3.2/openjdk/hotspot/src/share/vm/runtime/thread.cpp:3182</div>
<div>#14 0x00007fcfb844a67f in JNI_CreateJavaVM
(vm=0x7fcfb970fe30, penv=0x7fcfb970fe40, args=<optimized
out>)</div>
<div> at
/tmp/icedtea-2.3.2/openjdk/hotspot/src/share/vm/prims/jni.cpp:5112</div>
<div>#15 0x00007fcfb90f56dc in InitializeJVM
(penv=0x7fcfb970fe40, pvm=0x7fcfb970fe30, ifn=<optimized
out>)</div>
<div> at ../../../src/share/bin/java.c:1115</div>
<div>---Type <return> to continue, or q <return> to
quit---</div>
<div>#16 JavaMain (_args=<optimized out>) at
../../../src/share/bin/java.c:360</div>
<div>#17 0x00007fcfb9306eae in start_thread () from
/lib64/libpthread.so.0</div>
<div>#18 0x00007fcfb8a0ffed in clone () from /lib64/libc.so.6</div>
</div>
<div><br>
</div>
<div>And I dug
into /tmp/icedtea-2.3.2/openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp:1649
following the stacktrace, and discovered that:</div>
<div>
<div>address
InterpreterGenerator::generate_Reference_get_entry(void) {</div>
<div>#ifndef SERIALGC</div>
<div> if (UseG1GC) {</div>
<div> // We need to generate have a routine that generates
code to:</div>
<div> // * load the value in the referent field</div>
<div> // * passes that value to the pre-barrier.</div>
<div> //</div>
<div> // In the case of G1 this will record the value of the</div>
<div> // referent in an SATB buffer if marking is active.</div>
<div> // This will cause concurrent marking to mark the
referent</div>
<div> // field as live.</div>
<div> Unimplemented();</div>
<div> }</div>
<div>#endif // SERIALGC</div>
<div><br>
</div>
<div> // If G1 is not enabled then attempt to go through the
accessor entry point</div>
<div> // Reference.get is an accessor</div>
<div> return generate_accessor_entry();</div>
<div>}</div>
</div>
<div><br>
</div>
<div>I am wondering how the generate_Reference_get_entry function
is triggered and why it runs into Unimplemented() when UseG1GC
enabled. Moreover, is the iced-tea 2.3.2 shipped with G1GC by
default or I should enable it with some sort of compilation
option?</div>
<div><br>
</div>
<div>Any help would be truly appreciated.</div>
<div><br>
</div>
<div>All the best,</div>
<div>Leon</div>
<div><br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
hotspot-gc-use mailing list
<a href="mailto:hotspot-gc-use@openjdk.java.net" target="_blank">hotspot-gc-use@openjdk.java.net</a>
<a href="http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use" target="_blank">http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div>
</div></div></blockquote></div><br></div></div>