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
hotspot-8003348 Cdiff agent/src/share/classes/sun/jvm/hotspot/debugger/bsd/BsdThread.java
agent/src/share/classes/sun/jvm/hotspot/debugger/bsd/BsdThread.java
Print this page
8003348: SA can not read core file on OS X
*** 1,7 ****
/*
! * Copyright (c) 2002, 2003, 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.
--- 1,7 ----
/*
! * 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 ****
this.unique_thread_id = uniqueThreadIdAddr.getCIntegerAt(0, 8, true);
}
BsdThread(BsdDebugger debugger, long id) {
this.debugger = debugger;
! this.thread_id = (int) id;
}
public boolean equals(Object obj) {
if ((obj == null) || !(obj instanceof BsdThread)) {
return false;
}
! return (((BsdThread) obj).thread_id == thread_id);
}
public int hashCode() {
return thread_id;
}
--- 42,61 ----
this.unique_thread_id = uniqueThreadIdAddr.getCIntegerAt(0, 8, true);
}
BsdThread(BsdDebugger debugger, long id) {
this.debugger = debugger;
! // 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