"Patrick J. McNerthney" wrote:
> 
> I was just trying to figure how to do this in Linux, I am use to the
> CTRL-BREAK combo in NT.
> 
> I just tried this on my Linux machine and it didn't work.  Any obvious
> things to check ???

It runs straight out of the box for me (RedHat 6.1, Blackdown jdk1.2pre2
with default settings):

  $ /usr/local/jdk1.2/bin/javac A.java
  $ JAVA_COMPILER=NONE /usr/local/jdk1.2/bin/java A
  [CTRL][\]

Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v2, native threads):
    "Finalizer" (TID:0x404cd320, sys_thread_t:0x80cc868, state:CW, native ID:0xc04) 
prio=8
        at java.lang.Object.wait(Native Method)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:112)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
    "Reference Handler" (TID:0x404cd3b0, sys_thread_t:0x80c7f80, state:CW, native 
ID:0x803) prio=10
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:424)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
    "SIGQUIT handler" (TID:0x404cd3e0, sys_thread_t:0x80c0a08, state:R, native 
ID:0x402) prio=5
    "main" (TID:0x404cd1e0, sys_thread_t:0x804c0c0, state:CW, native ID:0x400) prio=5
        at java.lang.Thread.sleep(Native Method)
        at Reflect.main(Reflect.java:12)
Monitor Cache Dump:
    java.lang.ref.ReferenceQueue$Lock@404CD338/40503028: <unowned>
        Waiting to be notified:
            "Finalizer" (0x80cc868)
    java.lang.ref.Reference$Lock@404CD3C0/40502B20: <unowned>
        Waiting to be notified:
            "Reference Handler" (0x80c7f80)
Registered Monitor Dump:
    utf8 hash table: <unowned>
    JNI pinning lock: <unowned>
    JNI global reference lock: <unowned>
    BinClass lock: <unowned>
    Class linking lock: <unowned>
    System class loader lock: <unowned>
    Code rewrite lock: <unowned>
    Heap lock: <unowned>
    Monitor cache lock: owner "SIGQUIT handler" (0x80c0a08) 1 entry
    Thread queue lock: owner "SIGQUIT handler" (0x80c0a08) 1 entry
    Dynamic loading lock: <unowned>
    Monitor registry: owner "SIGQUIT handler" (0x80c0a08) 1 entry

You can also achieve the same thing by sending a QUIT signal to the
appropriate process/threads.

-- 
Chris Kakris          http://www.dynamic.net.au/christos/
ZDS Services Pty Ltd  414 Gilbert Road, Preston, Victoria 3072, Australia


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to