why isn't it work?

Coleen Phillimore - Sun Microsystems Coleen.Phillimore at Sun.COM
Tue Apr 21 13:24:59 PDT 2009

The two code bits look equivalent to me. If you want to debug the
Hotspot VM on windows you can build a "debug" target and use the Visual
C++ debugger. The command is something like:
cd make/windows
<will tell you the arguments, pick "debug">
build <arguments from above>

If you get a Java exception you can break into the Windows debugger with
the command line (when you run the java code) by giving the option (in
your case):


Both will give you a dialog box to go into the windows debugger.

The C++ interpreter is not fully tested on Windows so if there are bugs
with the version you have not modified, please let us know about them
(with suggested fixes preferably).


On 04/20/09 16:24, lianshun Liu wrote:
> Hi,
> I am doing nonsense things but found some puzzles. I need your help.
> Below code snippet is quote from classFileParser.cpp.
> if (code_length > 0) {
> memcpy(m->code_base(), code_start, code_length);
> }
> I changed it like this:
> if (code_length > 0) {
> address dest = m->code_base();
> for(int i= 0; i < code_length; ++i)
> *dest++ = *code_start++;
> }
> Then I build the hotspot successfully, but when start "java -version",
> an error occured:
> E:\openjdk\build\windows-i586\bin>java
> Error occurred during initialization of VM
> java.lang.IllegalThreadStateException
> at java.lang.ThreadGroup.add(ThreadGroup.java:796)
> at java.lang.ThreadGroup.<init>(ThreadGroup.java:125)
> I wanna know why?
> Best regards
> Lianshun Liu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-dev/attachments/20090421/69a525c3/attachment.html 

More information about the hotspot-dev mailing list