Searched refs:Thread (Results 1 - 25 of 1812) sorted by relevance

1234567891011>>

/openjdk7/hotspot/src/os_cpu/bsd_zero/vm/
H A DthreadLS_bsd_zero.hpp31 static Thread* thread() {
32 return (Thread*) os::thread_local_storage_at(thread_index());
/openjdk7/hotspot/src/os_cpu/linux_sparc/vm/
H A DthreadLS_linux_sparc.hpp29 static Thread* thread() {
30 return (Thread*) os::thread_local_storage_at(thread_index());
/openjdk7/hotspot/src/os_cpu/linux_zero/vm/
H A DthreadLS_linux_zero.hpp31 static Thread* thread() {
32 return (Thread*) os::thread_local_storage_at(thread_index());
/openjdk7/hotspot/src/os_cpu/windows_x86/vm/
H A DthreadLS_windows_x86.hpp36 // Java Thread
37 static inline Thread* thread() {
38 return (Thread*)TlsGetValue(thread_index());
41 static inline Thread* get_thread() {
42 return (Thread*)TlsGetValue(thread_index());
/openjdk7/jdk/test/java/lang/ThreadGroup/
H A DSuspend.java35 private static final Thread first = new Thread(group, new Suspend());
36 private static final Thread second = new Thread(group, new Suspend());
41 Thread.sleep(100);
42 if (Thread.currentThread() == first) {
61 Thread.sleep(100);
63 Thread.sleep(1000);
67 Thread.sleep(1000);
H A DStop.java36 private static final Thread first = new Thread(group, new Stop());
37 private static final Thread second = new Thread(group, new Stop());
43 Thread.sleep(1000);
48 if (Thread.currentThread() == first) {
73 Thread.sleep(1000);
/openjdk7/hotspot/src/os_cpu/linux_x86/vm/
H A DthreadLS_linux_x86.hpp36 static Thread* _sp_map[1UL << (SP_BITLENGTH - PAGE_SHIFT)];
40 static Thread** sp_map_addr() { return _sp_map; }
42 static Thread* thread() {
52 static Thread* thread() {
53 return (Thread*) os::thread_local_storage_at(thread_index());
/openjdk7/jdk/src/share/classes/sun/awt/
H A DMutex.java30 private Thread owner;
33 if (locked && Thread.currentThread() == owner) {
39 owner = Thread.currentThread();
47 } while (owner != Thread.currentThread());
51 if (Thread.currentThread() != owner) {
60 return (locked && Thread.currentThread() == owner);
/openjdk7/jdk/test/java/nio/channels/AsynchronousFileChannel/
H A DMyThreadFactory.java29 private static final Set<Thread> threads = new HashSet<Thread>();
31 static boolean created(Thread t) {
41 public Thread newThread(Runnable r) {
42 Thread t = new Thread(r);
/openjdk7/hotspot/src/os_cpu/solaris_sparc/vm/
H A DthreadLS_solaris_sparc.cpp41 void ThreadLocalStorage::set_thread_in_slot (Thread * self) {}
43 extern "C" Thread* get_thread() {
H A DthreadLS_solaris_sparc.hpp29 // Java Thread - force inlining
30 static inline Thread* thread() ;
33 static Thread* _get_thread_cache[]; // index by [(raw_id>>9)^(raw_id>>20) % _pd_cache_size]
34 static Thread* get_thread_via_cache_slowly(uintptr_t raw_id, int index);
48 static void set_thread_in_slot (Thread *) ;
/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DThreadFactory.java40 * removes hardwiring of calls to {@link Thread#Thread(Runnable) new Thread},
47 * public Thread newThread(Runnable r) {
48 * return new Thread(r);
62 * Constructs a new {@code Thread}. Implementations may also initialize
69 Thread newThread(Runnable r);
/openjdk7/hotspot/src/os_cpu/bsd_x86/vm/
H A DthreadLS_bsd_x86.hpp37 static Thread* _sp_map[1UL << (SP_BITLENGTH - PAGE_SHIFT)];
43 static Thread** sp_map_addr() { return _sp_map; }
46 static Thread* thread() {
48 return (Thread*) os::thread_local_storage_at(thread_index());
/openjdk7/jdk/make/tools/reorder/tests/
H A DSleep.java32 Thread.sleep(5000);
/openjdk7/jdk/test/java/lang/Thread/
H A DMainThreadTest.java32 ThreadGroup tg = Thread.currentThread().getThreadGroup();
34 Thread[] ts = new Thread[n];
37 if (Thread.currentThread() == ts[i]) {
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DInterruptible.java34 public void interrupt(Thread t);
/openjdk7/hotspot/src/share/vm/utilities/
H A DpreserveException.hpp45 Thread* _thread;
51 PreserveExceptionMark(Thread*& thread);
61 Thread* _thread;
67 CautiouslyPreserveExceptionMark(Thread* thread);
77 Thread* _thread;
86 WeakPreserveExceptionMark(Thread* pThread) : _thread(pThread), _preserved_exception_oop() {
102 #define PRESERVE_EXCEPTION_MARK Thread* THREAD; PreserveExceptionMark __em(THREAD);
/openjdk7/jdk/test/java/nio/channels/AsynchronousChannelGroup/
H A DPrivilegedThreadFactory.java40 public Thread newThread(final Runnable r) {
41 return AccessController.doPrivileged(new PrivilegedAction<Thread>() {
43 public Thread run() {
44 Thread t = new Thread(r);
/openjdk7/jdk/test/java/lang/System/finalization/
H A DFinThreads.java33 static Thread mainThread;
36 static Thread finalizerThread = null;
37 static Thread finalizedBy = null;
50 Thread t = new Thread(new Runnable() {
67 finalizerThread = Thread.currentThread();
73 Thread.sleep(Long.MAX_VALUE);
77 finalizedBy = Thread.currentThread();
86 static void alarm(final Thread sleeper, final long delay)
89 Thread
[all...]
/openjdk7/hotspot/test/runtime/7158988/
H A DTestPostFieldModification.java32 new Thread() {
43 Thread d = new Thread() {
47 Thread.sleep(100);
/openjdk7/hotspot/src/share/vm/runtime/
H A DthreadLocalStorage.hpp35 extern "C" Thread* get_thread();
42 static void set_thread(Thread* thread);
43 static Thread* get_thread_slow();
95 static void pd_set_thread(Thread* thread);
/openjdk7/jdk/test/java/util/Timer/
H A DKillThread.java35 final Thread[] tdThread = new Thread[1];
41 tdThread[0] = Thread.currentThread();
49 Thread.sleep(100);
/openjdk7/jdk/src/share/classes/java/util/concurrent/locks/
H A DAbstractOwnableSynchronizer.java64 private transient Thread exclusiveOwnerThread;
72 protected final void setExclusiveOwnerThread(Thread t) {
83 protected final Thread getExclusiveOwnerThread() {
/openjdk7/jaxp/src/com/sun/org/apache/xml/internal/utils/
H A DThreadControllerWrapper.java35 public static Thread runThread(Runnable runnable, int priority)
40 public static void waitThread(Thread worker, Runnable task)
47 * Thread controller utility class for incremental SAX source. Must
58 final class SafeThread extends Thread {
66 if (Thread.currentThread() != this) {
96 public Thread run(Runnable task, int priority)
99 Thread t = new SafeThread(task);
117 public void waitThread(Thread worker, Runnable task)
/openjdk7/jdk/src/share/classes/java/lang/
H A DApplicationShutdownHooks.java39 private static IdentityHashMap<Thread, Thread> hooks;
64 static synchronized void add(Thread hook) {
80 static synchronized boolean remove(Thread hook) {
95 Collection<Thread> threads;
101 for (Thread hook : threads) {
104 for (Thread hook : threads) {

Completed in 77 milliseconds

1234567891011>>