-
Bug
-
Resolution: Won't Fix
-
P3
-
None
-
5.0u7
-
x86
-
linux
When the attached program(bid6266681.c/bid6266681.java) is executed in 5.0, a hang will occurs.
The following is the trace information with gdb.
(gdb) where
#0 0xb75d227d in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
#1 0xb75d27cd in pthread_cond_wait@GLIBC_2.0 () from /lib/tls/libpthread.so.0
#2 0xb6f7bf8e in os::Linux::safe_cond_wait ()
from /JavaL3/users/ooooo/java-bin/jdk1.5.0_07/jre/lib/i386/client/libjvm.so
#3 0xb6f683b4 in Monitor::wait ()
from /JavaL3/users/ooooo/java-bin/jdk1.5.0_07/jre/lib/i386/client/libjvm.so
#4 0xb6e31c9d in GC_locker::stall_until_clear ()
from /JavaL3/users/ooooo/java-bin/jdk1.5.0_07/jre/lib/i386/client/libjvm.so
#5 0xb6df2529 in TwoGenerationCollectorPolicy::mem_allocate_work ()
from /JavaL3/users/ooooo/java-bin/jdk1.5.0_07/jre/lib/i386/client/libjvm.so
#6 0xb6e3551d in GenCollectedHeap::mem_allocate ()
from /JavaL3/users/ooooo/java-bin/jdk1.5.0_07/jre/lib/i386/client/libjvm.so
#7 0xb6d2a038 in CollectedHeap::common_mem_allocate_noinit ()
from /JavaL3/users/ooooo/java-bin/jdk1.5.0_07/jre/lib/i386/client/libjvm.so
#8 0xb6e4cb17 in instanceKlass::allocate_instance ()
from /JavaL3/users/ooooo/java-bin/jdk1.5.0_07/jre/lib/i386/client/libjvm.so
#9 0xb6db08ae in Runtime1::new_instance ()
from /JavaL3/users/ooooo/java-bin/jdk1.5.0_07/jre/lib/i386/client/libjvm.so
NOTE:
The attached program tries to do
1) One thread tries to allocate repeatedly.(GC will occurs periodically)
2) Another thread tries to lock/unlock thru jvmpi
The following is the trace information with gdb.
(gdb) where
#0 0xb75d227d in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
#1 0xb75d27cd in pthread_cond_wait@GLIBC_2.0 () from /lib/tls/libpthread.so.0
#2 0xb6f7bf8e in os::Linux::safe_cond_wait ()
from /JavaL3/users/ooooo/java-bin/jdk1.5.0_07/jre/lib/i386/client/libjvm.so
#3 0xb6f683b4 in Monitor::wait ()
from /JavaL3/users/ooooo/java-bin/jdk1.5.0_07/jre/lib/i386/client/libjvm.so
#4 0xb6e31c9d in GC_locker::stall_until_clear ()
from /JavaL3/users/ooooo/java-bin/jdk1.5.0_07/jre/lib/i386/client/libjvm.so
#5 0xb6df2529 in TwoGenerationCollectorPolicy::mem_allocate_work ()
from /JavaL3/users/ooooo/java-bin/jdk1.5.0_07/jre/lib/i386/client/libjvm.so
#6 0xb6e3551d in GenCollectedHeap::mem_allocate ()
from /JavaL3/users/ooooo/java-bin/jdk1.5.0_07/jre/lib/i386/client/libjvm.so
#7 0xb6d2a038 in CollectedHeap::common_mem_allocate_noinit ()
from /JavaL3/users/ooooo/java-bin/jdk1.5.0_07/jre/lib/i386/client/libjvm.so
#8 0xb6e4cb17 in instanceKlass::allocate_instance ()
from /JavaL3/users/ooooo/java-bin/jdk1.5.0_07/jre/lib/i386/client/libjvm.so
#9 0xb6db08ae in Runtime1::new_instance ()
from /JavaL3/users/ooooo/java-bin/jdk1.5.0_07/jre/lib/i386/client/libjvm.so
NOTE:
The attached program tries to do
1) One thread tries to allocate repeatedly.(GC will occurs periodically)
2) Another thread tries to lock/unlock thru jvmpi
- relates to
-
JDK-6186200 RFE: Stall allocation requests while heap is full and GC locker is held
- Resolved