how to bring jvm to safepoint
guanxiaohua at gmail.com
Thu Jul 29 22:58:52 PDT 2010
Thanks a lot!
I am copying the content to below, and for convenience, the full log
file is attached.
# A fatal error has been detected by the Java Runtime Environment:
# Internal Error
# Error: Possible safepoint reached by thread that does not allow it
# JRE version: 7.0
# Java VM: OpenJDK 64-Bit Server VM (17.0-b07291505-internal-debug
mixed mode linux-amd64 )
# If you would like to submit a bug report, please visit:
--------------- T H R E A D ---------------
Current thread (0x00000000012ed000): JavaThread "RMI TCP
Connection(idle)" daemon [_thread_in_Java, id=30929,
sp=0x0000000040839d60, free space=3fb0000000000000000k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
(above is the stack, please see the attachment for more information)
Tony (Xiaohua Guan)
On Thu, Jul 29, 2010 at 8:07 PM, David Holmes <David.Holmes at oracle.com> wrote:
> I don't see anything obviously wrong with what you attempted. Can you show
> the full stack dump from the error.
> David Holmes
> Tony Guan said the following on 07/30/10 07:29:
>> Dear all,
>> I want to invoke the GC at a certain time, for example, when a certain
>> method is called at runtime, so I created a new subtype of
>> VM_GC_Operation class, and initialized it with an object op, finally,
>> executed using:VMThread::execute(&op)
>> then I got the following error message:
>> # Internal Error
>> pid=29652, tid=1096460624
>> # Error: Possible safepoint reached by thread that does not allow it
>> The reason for the fail is that
>> Thread::check_for_valid_safepoint_state() didn't pass because the
>> currentThread is not a VMThread.
>> My question is: how do I bring the current thread to a safepoint? or
>> how do I call a GC operation properly? is there any prerequisite for
>> doing so?
>> Tony (Xiaohua Guan)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 17808 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/attachments/20100730/56944ecd/attachment-0001.obj
More information about the hotspot-runtime-dev