jdk15 buildlog on -current

Ken Yamada ken at tydfam.jp
Sun Jun 10 13:54:15 UTC 2007


From: "Poul-Henning Kamp" <phk at phk.freebsd.dk>
> 
> Isn't a more likely explanation that it is a SMP race ?

  I experienced that the compilation goes without any problems on Uniprocess kernel, but that it halts on the way showing several javac/java pausing - linux-sun-jdk1.5.0 on SMP kernel which did not disappear with kill pid. (ps -alx|grep java result shown below).

  Successfully compiled uniprocess jdk1.5.0 does not run on multiprocess kernel though it runs fine on uniprocess kernel. 

  These java related compilation issues makes me suspect some racing condition on SMP, but it is seemingly only with java related.  Others work fine on SMP.

# ps -alx | grep java
    0  1379  1350   0   8  0  3600  1700 wait   I+    p2    0:00.00 /bin/sh -ec cd /usr/ports/java
    0  2319  2318   4   8  0  4192  1644 wait   I+    p2    0:00.01 gmake -f /usr/ports/java/jdk15
    0  2994  2911 107  20  0 761464 74308 pause  I+    p2    0:03.57 [java]
    0  2995  2994   0  96  0 761464 74308 select S+    p2    0:00.14 [java]
    0  2996  2995   0  20  0 761464 74308 pause  I+    p2    0:00.03 [java]
    0  2997  2995   0  20  0 761464 74308 pause  I+    p2    0:00.03 [java]
    0  2998  2995   0  20  0 761464 74308 pause  I+    p2    0:00.03 [java]
    0  2999  2995   0  20  0 761464 74308 pause  I+    p2    0:00.03 [java]
    0  3000  2995   0   8  0 761464 74308 nanslp S+    p2    0:00.76 [java]
    0  3001  2995   0  20  0 761464 74308 pause  I+    p2    0:00.00 [java]
    0  3002  2995   0  20  0 761464 74308 pause  I+    p2    0:00.00 [java]
    0  3003  2995   0  20  0 761464 74308 pause  I+    p2    0:00.00 [java]
    0  3004  2995   0  20  0 761464 74308 pause  I+    p2    0:00.01 [java]
    0  3005  2995 107  20  0 761464 74308 pause  I+    p2    0:03.40 [java]
    0  3006  2995 105  20  0 761464 74308 pause  I+    p2    0:03.37 [java]
    0  3007  2995   0  20  0 761464 74308 pause  I+    p2    0:00.00 [java]
    0  3008  2995   0  20  0 761464 74308 pause  I+    p2    0:00.00 [java]

>>>>> Compilation log >>>>>
  :           :          :           :
gmake[3]: Entering directory `/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product'
/usr/local/linux-sun-jdk1.5.0/bin/javac -g -d ../generated/jvmtifiles /usr/ports/java/jdk15/work/hotspot/src/share/vm/prims/jvmtiGen.java
Note: /usr/ports/java/jdk15/work/hotspot/src/share/vm/prims/jvmtiGen.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Generating ../generated/jvmtifiles/jvmdiEnter.cpp
/usr/local/linux-sun-jdk1.5.0/bin/java -classpath ../generated/jvmtifiles jvmtiGen -IN /usr/ports/java/jdk15/work/hotspot/src/share/vm/prims/jvmti.xml -XSL /usr/ports/java/jdk15/work/hotspot/src/share/vm/prims/jvmdiEnter.xsl -OUT ../generated/jvmtifiles/jvmdiEnter.cpp -PARAM interface jvmdi
Generating ../generated/jvmtifiles/jvmdiEnterTrace.cpp
/usr/local/linux-sun-jdk1.5.0/bin/java -classpath ../generated/jvmtifiles jvmtiGen -IN /usr/ports/java/jdk15/work/hotspot/src/share/vm/prims/jvmti.xml -XSL /usr/ports/java/jdk15/work/hotspot/src/share/vm/prims/jvmdiEnter.xsl -OUT ../generated/jvmtifiles/jvmdiEnterTrace.cpp -PARAM interface jvmdi -PARAM trace Trace
Generating ../generated/jvmtifiles/jvmtiEnv.hpp
/usr/local/linux-sun-jdk1.5.0/bin/java -classpath ../generated/jvmtifiles jvmtiGen -IN /usr/ports/java/jdk15/work/hotspot/src/share/vm/prims/jvmti.xml -XSL /usr/ports/java/jdk15/work/hotspot/src/share/vm/prims/jvmtiHpp.xsl -OUT ../generated/jvmtifiles/jvmtiEnv.hpp
Generating ../generated/jvmtifiles/jvmtiEnter.cpp
/usr/local/linux-sun-jdk1.5.0/bin/java -classpath ../generated/jvmtifiles jvmtiGen -IN /usr/ports/java/jdk15/work/hotspot/src/share/vm/prims/jvmti.xml -XSL /usr/ports/java/jdk15/work/hotspot/src/share/vm/prims/jvmtiEnter.xsl -OUT ../generated/jvmtifiles/jvmtiEnter.cpp -PARAM interface jvmti
-------------- stops at here ---------------

I see files supposed to be built from above as follows; 
# ls -l control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/generated/jvmtifiles/       total 660
-rw-r--r--  1 root  wheel  113605  6 10 16:00 jvmdiEnter.cpp
-rw-r--r--  1 root  wheel  361972  6 10 16:00 jvmdiEnterTrace.cpp
-rw-r--r--  1 root  wheel  147455  6 10 16:00 jvmtiEnter.cpp
-rw-r--r--  1 root  wheel   12977  6 10 16:00 jvmtiEnv.hpp
-rw-r--r--  1 root  wheel    5302  6 10 16:00 jvmtiGen.class



More information about the freebsd-java mailing list