why isn't it work?

lianshun Liu lsliu0507 at gmail.com
Mon Apr 20 13:24:23 PDT 2009


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/0249f1ba/attachment.html 


More information about the hotspot-dev mailing list