[concurrency-interest] Nested synchronized

Howard Lovatt howard.lovatt at gmail.com
Thu Jan 5 23:21:36 EST 2012


I did recode with ReentrantLock and it works just fine.

 -- Howard.

On 6 January 2012 15:05, David Holmes <davidcholmes at aapt.net.au> wrote:

> **
> Yeah not much help without symbolic information. It's the two pool threads
> that are of interest.
>
> David
>
>  -----Original Message-----
> *From:* Howard Lovatt [mailto:howard.lovatt at gmail.com]
> *Sent:* Friday, 6 January 2012 1:43 PM
> *To:* dholmes at ieee.org
> *Cc:* concurrency-interest at cs.oswego.edu
> *Subject:* Re: [concurrency-interest] Nested synchronized
>
> Hi,
>
> Finally got a stack trace, but from native tools so I am not sure how much
> use it is. When hung it consumes negligible CPU. Stack trace below.
>
>      2274 Thread_7277683: Java: pool-1-thread-1
>
>     + 2274 ???  (in <unknown binary>)  [0x105a66a78]
>
>     +   2274 ???  (in <unknown binary>)  [0x105a5fa48]
>
>     +     2274 JVM_IsInterrupted  (in libjvmlinkage.dylib) + 59
> [0x10574078b]
>
>     +       2274 JVM_IsInterrupted  (in libclient64.dylib) + 149
> [0x1051cf69d]
>
>     +         2274 ???  (in libclient64.dylib)  load address 0x105041000 +
> 0x7c198  [0x1050bd198]
>
>     +           2274 ???  (in libclient64.dylib)  load address 0x105041000
> + 0x1b5c4d  [0x1051f6c4d]
>
>     +             2274 ???  (in libclient64.dylib)  load address
> 0x105041000 + 0x12b0f  [0x105053b0f]
>
>     +               2274 ???  (in libclient64.dylib)  load address
> 0x105041000 + 0x12bcd  [0x105053bcd]
>
>     +                 2274 ???  (in libclient64.dylib)  load address
> 0x105041000 + 0x13d42  [0x105054d42]
>
>     +                   2274 ???  (in libclient64.dylib)  load address
> 0x105041000 + 0x13de3  [0x105054de3]
>
>     +                     2274 ???  (in libclient64.dylib)  load address
> 0x105041000 + 0x13f23  [0x105054f23]
>
>     +                       2274 mach_msg  (in libsystem_kernel.dylib) +
> 73  [0x7fff89906d71]
>
>     +                         2274 mach_msg_trap  (in
> libsystem_kernel.dylib) + 10  [0x7fff8990767a]
>
>     2274 Thread_7277684: Java: pool-1-thread-2
>
>     + 2274 ???  (in <unknown binary>)  [0x105a65287]
>
>     +   2274 ???  (in libclient64.dylib)  load address 0x105041000 +
> 0x1e3d25  [0x105224d25]
>
>     +     2274 ???  (in libclient64.dylib)  load address 0x105041000 +
> 0xd12cd  [0x1051122cd]
>
>     +       2274 ???  (in libclient64.dylib)  load address 0x105041000 +
> 0x14125  [0x105055125]
>
>     +         2274 mach_msg  (in libsystem_kernel.dylib) + 73
> [0x7fff89906d71]
>
>     +           2274 mach_msg_trap  (in libsystem_kernel.dylib) + 10
> [0x7fff8990767a]
>
>     2274 Thread_7277753   DispatchQueue_4: com.apple.root.low-priority
> (concurrent)
>
>       2274 start_wqthread  (in libsystem_c.dylib) + 13  [0x7fff88b16b85]
>
>         2274 _pthread_wqthread  (in libsystem_c.dylib) + 316
> [0x7fff88b153da]
>
>           2274 _dispatch_worker_thread2  (in libdispatch.dylib) + 198
> [0x7fff88c1f760]
>
>             2274 _dispatch_queue_invoke  (in libdispatch.dylib) + 71
> [0x7fff88c1ff77]
>
>               2274 _dispatch_source_invoke  (in libdispatch.dylib) + 635
> [0x7fff88c232b6]
>
>                 2274 _dispatch_after_timer_callback  (in
> libdispatch.dylib) + 16  [0x7fff88c20c07]
>
>                   2274 _dispatch_call_block_and_release  (in
> libdispatch.dylib) + 18  [0x7fff88c1e8ba]
>
>                     2274 ???  (in libjava.jnilib)  load address
> 0x1058a3000 + 0xda1c  [0x1058b0a1c]
>
>                       2274 JNFPerformEnvBlock  (in JavaNativeFoundation) +
> 27  [0x10589414f]
>
>                         2274 JNFObtainEnv  (in JavaNativeFoundation) +
> 171  [0x105893f5a]
>
>                           2274 ???  (in libclient64.dylib)  load address
> 0x105041000 + 0x1a0f41  [0x1051e1f41]
>
>                             2274 ???  (in libclient64.dylib)  load address
> 0x105041000 + 0xcf404  [0x105110404]
>
>                               2274 ???  (in libclient64.dylib)  load
> address 0x105041000 + 0x12b0f  [0x105053b0f]
>
>                                 2274 ???  (in libclient64.dylib)  load
> address 0x105041000 + 0x12bcd  [0x105053bcd]
>
>                                   2274 ???  (in libclient64.dylib)  load
> address 0x105041000 + 0x13d42  [0x105054d42]
>
>                                     2274 ???  (in libclient64.dylib)  load
> address 0x105041000 + 0x13de3  [0x105054de3]
>
>                                       2274 ???  (in libclient64.dylib)
> load address 0x105041000 + 0x13f23  [0x105054f23]
>
>                                         2274 mach_msg  (in
> libsystem_kernel.dylib) + 73  [0x7fff89906d71]
>
>                                           2274 mach_msg_trap  (in
> libsystem_kernel.dylib) + 10  [0x7fff8990767a]
>
>
>
>
>


-- 
  -- Howard.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20120106/ce6c0ec6/attachment-0001.html>


More information about the Concurrency-interest mailing list