agent/src/share/classes/sun/jvm/hotspot/debugger/bsd/BsdThread.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/agent/src/share/classes/sun/jvm/hotspot/debugger/bsd/BsdThread.java	Wed Mar 13 23:31:49 2013
--- new/agent/src/share/classes/sun/jvm/hotspot/debugger/bsd/BsdThread.java	Wed Mar 13 23:31:48 2013

*** 1,7 **** --- 1,7 ---- /* ! * Copyright (c) 2002, 2003, Oracle and/or its affiliates. All rights reserved. ! * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 42,60 **** --- 42,61 ---- this.unique_thread_id = uniqueThreadIdAddr.getCIntegerAt(0, 8, true); } BsdThread(BsdDebugger debugger, long id) { this.debugger = debugger; this.thread_id = (int) id; + // use unique_thread_id to identify thread + this.unique_thread_id = id; } public boolean equals(Object obj) { if ((obj == null) || !(obj instanceof BsdThread)) { return false; } ! return (((BsdThread) obj).unique_thread_id == unique_thread_id); } public int hashCode() { return thread_id; }
*** 78,83 **** --- 79,89 ---- public void setContext(ThreadContext context) throws IllegalThreadStateException, DebuggerException { throw new DebuggerException("Unimplemented"); } + + /** this is not interface function, used in core file to get unique thread id on Macosx*/ + public long getUniqueThreadId() { + return unique_thread_id; + } }

agent/src/share/classes/sun/jvm/hotspot/debugger/bsd/BsdThread.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File