comparison agent/src/share/classes/sun/jvm/hotspot/runtime/Threads.java @ 3960:f08d439fab8c

7089790: integrate bsd-port changes Reviewed-by: kvn, twisti, jrose Contributed-by: Kurt Miller <kurt@intricatesoftware.com>, Greg Lewis <glewis@eyesbeyond.com>, Jung-uk Kim <jkim@freebsd.org>, Christos Zoulas <christos@zoulas.com>, Landon Fuller <landonf@plausible.coop>, The FreeBSD Foundation <board@freebsdfoundation.org>, Michael Franz <mvfranz@gmail.com>, Roger Hoover <rhoover@apple.com>, Alexander Strange <astrange@apple.com>
author never
date Sun, 25 Sep 2011 16:03:29 -0700
parents bf8517f4e4d0
children 78d2ae5ab35b
comparison
equal deleted inserted replaced
3959:eda6988c0d81 3960:f08d439fab8c
35 import sun.jvm.hotspot.runtime.win32_ia64.Win32IA64JavaThreadPDAccess; 35 import sun.jvm.hotspot.runtime.win32_ia64.Win32IA64JavaThreadPDAccess;
36 import sun.jvm.hotspot.runtime.linux_x86.LinuxX86JavaThreadPDAccess; 36 import sun.jvm.hotspot.runtime.linux_x86.LinuxX86JavaThreadPDAccess;
37 import sun.jvm.hotspot.runtime.linux_ia64.LinuxIA64JavaThreadPDAccess; 37 import sun.jvm.hotspot.runtime.linux_ia64.LinuxIA64JavaThreadPDAccess;
38 import sun.jvm.hotspot.runtime.linux_amd64.LinuxAMD64JavaThreadPDAccess; 38 import sun.jvm.hotspot.runtime.linux_amd64.LinuxAMD64JavaThreadPDAccess;
39 import sun.jvm.hotspot.runtime.linux_sparc.LinuxSPARCJavaThreadPDAccess; 39 import sun.jvm.hotspot.runtime.linux_sparc.LinuxSPARCJavaThreadPDAccess;
40 import sun.jvm.hotspot.runtime.bsd_x86.BsdX86JavaThreadPDAccess;
41 import sun.jvm.hotspot.runtime.bsd_amd64.BsdAMD64JavaThreadPDAccess;
40 import sun.jvm.hotspot.utilities.*; 42 import sun.jvm.hotspot.utilities.*;
41 43
42 public class Threads { 44 public class Threads {
43 private static JavaThreadFactory threadFactory; 45 private static JavaThreadFactory threadFactory;
44 private static AddressField threadListField; 46 private static AddressField threadListField;
88 } else if (cpu.equals("amd64")) { 90 } else if (cpu.equals("amd64")) {
89 access = new LinuxAMD64JavaThreadPDAccess(); 91 access = new LinuxAMD64JavaThreadPDAccess();
90 } else if (cpu.equals("sparc")) { 92 } else if (cpu.equals("sparc")) {
91 access = new LinuxSPARCJavaThreadPDAccess(); 93 access = new LinuxSPARCJavaThreadPDAccess();
92 } 94 }
93 95 } else if (os.equals("bsd")) {
96 if (cpu.equals("x86")) {
97 access = new BsdX86JavaThreadPDAccess();
98 } else if (cpu.equals("amd64")) {
99 access = new BsdAMD64JavaThreadPDAccess();
100 }
94 } 101 }
95 102
96 if (access == null) { 103 if (access == null) {
97 throw new RuntimeException("OS/CPU combination " + os + "/" + cpu + 104 throw new RuntimeException("OS/CPU combination " + os + "/" + cpu +
98 " not yet supported"); 105 " not yet supported");