com.sun.jdi.event.EventSet Java Examples
The following examples show how to use
com.sun.jdi.event.EventSet.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: EventQueueImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
EventSet removeInternal() throws InterruptedException { EventSet eventSet; do { // Waiting forever, so removeUnfiltered() is never null eventSet = removeUnfiltered(0).internalFilter(); } while (eventSet == null || eventSet.isEmpty()); /* * Currently, no internal events are requested with a suspend * policy other than none, so we don't check for notifySuspend() * here. If this changes in the future, there is much * infrastructure that needs to be updated. */ return eventSet; }
Example #2
Source File: EventQueueImpl.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
EventSet removeInternal() throws InterruptedException { EventSet eventSet; do { // Waiting forever, so removeUnfiltered() is never null eventSet = removeUnfiltered(0).internalFilter(); } while (eventSet == null || eventSet.isEmpty()); /* * Currently, no internal events are requested with a suspend * policy other than none, so we don't check for notifySuspend() * here. If this changes in the future, there is much * infrastructure that needs to be updated. */ return eventSet; }
Example #3
Source File: EventQueueImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
EventSet removeInternal() throws InterruptedException { EventSet eventSet; do { // Waiting forever, so removeUnfiltered() is never null eventSet = removeUnfiltered(0).internalFilter(); } while (eventSet == null || eventSet.isEmpty()); /* * Currently, no internal events are requested with a suspend * policy other than none, so we don't check for notifySuspend() * here. If this changes in the future, there is much * infrastructure that needs to be updated. */ return eventSet; }
Example #4
Source File: EventQueueImpl.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
EventSet removeInternal() throws InterruptedException { EventSet eventSet; do { // Waiting forever, so removeUnfiltered() is never null eventSet = removeUnfiltered(0).internalFilter(); } while (eventSet == null || eventSet.isEmpty()); /* * Currently, no internal events are requested with a suspend * policy other than none, so we don't check for notifySuspend() * here. If this changes in the future, there is much * infrastructure that needs to be updated. */ return eventSet; }
Example #5
Source File: VMRemoteTarget.java From gravel with Apache License 2.0 | 6 votes |
private void eventLoop() throws InterruptedException { System.out.println("eventLoop started"); EventQueue eventQueue = vm.eventQueue(); boolean isRunning = true; while (isRunning) { EventSet eventSet = eventQueue.remove(); boolean mayResume = true; for (Event event : eventSet) { System.out.println(event); if (event instanceof VMDeathEvent || event instanceof VMDisconnectEvent) { isRunning = false; } else if (event instanceof ExceptionEvent) { mayResume = false; } } if (mayResume) eventSet.resume(); } }
Example #6
Source File: EventQueueImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
EventSet removeInternal() throws InterruptedException { EventSet eventSet; do { // Waiting forever, so removeUnfiltered() is never null eventSet = removeUnfiltered(0).internalFilter(); } while (eventSet == null || eventSet.isEmpty()); /* * Currently, no internal events are requested with a suspend * policy other than none, so we don't check for notifySuspend() * here. If this changes in the future, there is much * infrastructure that needs to be updated. */ return eventSet; }
Example #7
Source File: EventQueueImpl.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
EventSet removeInternal() throws InterruptedException { EventSet eventSet; do { // Waiting forever, so removeUnfiltered() is never null eventSet = removeUnfiltered(0).internalFilter(); } while (eventSet == null || eventSet.isEmpty()); /* * Currently, no internal events are requested with a suspend * policy other than none, so we don't check for notifySuspend() * here. If this changes in the future, there is much * infrastructure that needs to be updated. */ return eventSet; }
Example #8
Source File: EventQueueImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
EventSet removeInternal() throws InterruptedException { EventSet eventSet; do { // Waiting forever, so removeUnfiltered() is never null eventSet = removeUnfiltered(0).internalFilter(); } while (eventSet == null || eventSet.isEmpty()); /* * Currently, no internal events are requested with a suspend * policy other than none, so we don't check for notifySuspend() * here. If this changes in the future, there is much * infrastructure that needs to be updated. */ return eventSet; }
Example #9
Source File: EventQueueImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
EventSet removeInternal() throws InterruptedException { EventSet eventSet; do { // Waiting forever, so removeUnfiltered() is never null eventSet = removeUnfiltered(0).internalFilter(); } while (eventSet == null || eventSet.isEmpty()); /* * Currently, no internal events are requested with a suspend * policy other than none, so we don't check for notifySuspend() * here. If this changes in the future, there is much * infrastructure that needs to be updated. */ return eventSet; }
Example #10
Source File: EventQueueImpl.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
EventSet removeInternal() throws InterruptedException { EventSet eventSet; do { // Waiting forever, so removeUnfiltered() is never null eventSet = removeUnfiltered(0).internalFilter(); } while (eventSet == null || eventSet.isEmpty()); /* * Currently, no internal events are requested with a suspend * policy other than none, so we don't check for notifySuspend() * here. If this changes in the future, there is much * infrastructure that needs to be updated. */ return eventSet; }
Example #11
Source File: EventQueueImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
EventSet removeInternal() throws InterruptedException { EventSet eventSet; do { // Waiting forever, so removeUnfiltered() is never null eventSet = removeUnfiltered(0).internalFilter(); } while (eventSet == null || eventSet.isEmpty()); /* * Currently, no internal events are requested with a suspend * policy other than none, so we don't check for notifySuspend() * here. If this changes in the future, there is much * infrastructure that needs to be updated. */ return eventSet; }
Example #12
Source File: TargetVM.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
protected void handleEventCmdSet(Packet p) { EventSet eventSet = new EventSetImpl(vm, p); if (eventSet != null) { queueEventSet(eventSet); } }
Example #13
Source File: TargetVM.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected void handleEventCmdSet(Packet p) { EventSet eventSet = new EventSetImpl(vm, p); if (eventSet != null) { queueEventSet(eventSet); } }
Example #14
Source File: EventQueueImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Filter out events not for user's eyes. * Then filter out empty sets. */ public EventSet remove(long timeout) throws InterruptedException { if (timeout < 0) { throw new IllegalArgumentException("Timeout cannot be negative"); } EventSet eventSet; while (true) { EventSetImpl fullEventSet = removeUnfiltered(timeout); if (fullEventSet == null) { eventSet = null; // timeout break; } /* * Remove events from the event set for which * there is no corresponding enabled request ( * this includes our internally requested events.) * This never returns null */ eventSet = fullEventSet.userFilter(); if (!eventSet.isEmpty()) { break; } } if ((eventSet != null) && (eventSet.suspendPolicy() == JDWP.SuspendPolicy.ALL)) { vm.notifySuspend(); } return eventSet; }
Example #15
Source File: EventQueueImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Filter out events not for user's eyes. * Then filter out empty sets. */ public EventSet remove(long timeout) throws InterruptedException { if (timeout < 0) { throw new IllegalArgumentException("Timeout cannot be negative"); } EventSet eventSet; while (true) { EventSetImpl fullEventSet = removeUnfiltered(timeout); if (fullEventSet == null) { eventSet = null; // timeout break; } /* * Remove events from the event set for which * there is no corresponding enabled request ( * this includes our internally requested events.) * This never returns null */ eventSet = fullEventSet.userFilter(); if (!eventSet.isEmpty()) { break; } } if ((eventSet != null) && (eventSet.suspendPolicy() == JDWP.SuspendPolicy.ALL)) { vm.notifySuspend(); } return eventSet; }
Example #16
Source File: EventQueueImpl.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * Filter out events not for user's eyes. * Then filter out empty sets. */ public EventSet remove(long timeout) throws InterruptedException { if (timeout < 0) { throw new IllegalArgumentException("Timeout cannot be negative"); } EventSet eventSet; while (true) { EventSetImpl fullEventSet = removeUnfiltered(timeout); if (fullEventSet == null) { eventSet = null; // timeout break; } /* * Remove events from the event set for which * there is no corresponding enabled request ( * this includes our internally requested events.) * This never returns null */ eventSet = fullEventSet.userFilter(); if (!eventSet.isEmpty()) { break; } } if ((eventSet != null) && (eventSet.suspendPolicy() == JDWP.SuspendPolicy.ALL)) { vm.notifySuspend(); } return eventSet; }
Example #17
Source File: EventQueueImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Filter out events not for user's eyes. * Then filter out empty sets. */ public EventSet remove(long timeout) throws InterruptedException { if (timeout < 0) { throw new IllegalArgumentException("Timeout cannot be negative"); } EventSet eventSet; while (true) { EventSetImpl fullEventSet = removeUnfiltered(timeout); if (fullEventSet == null) { eventSet = null; // timeout break; } /* * Remove events from the event set for which * there is no corresponding enabled request ( * this includes our internally requested events.) * This never returns null */ eventSet = fullEventSet.userFilter(); if (!eventSet.isEmpty()) { break; } } if ((eventSet != null) && (eventSet.suspendPolicy() == JDWP.SuspendPolicy.ALL)) { vm.notifySuspend(); } return eventSet; }
Example #18
Source File: TargetVM.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private void queueEventSet(EventSet eventSet) { int maxQueueSize = 0; synchronized(eventQueues) { Iterator<EventQueue> iter = eventQueues.iterator(); while (iter.hasNext()) { EventQueueImpl queue = (EventQueueImpl)iter.next(); queue.enqueue(eventSet); maxQueueSize = Math.max(maxQueueSize, queue.size()); } } controlEventFlow(maxQueueSize); }
Example #19
Source File: TargetVM.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
protected void handleEventCmdSet(Packet p) { EventSet eventSet = new EventSetImpl(vm, p); if (eventSet != null) { queueEventSet(eventSet); } }
Example #20
Source File: TargetVM.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private void queueEventSet(EventSet eventSet) { int maxQueueSize = 0; synchronized(eventQueues) { Iterator<EventQueue> iter = eventQueues.iterator(); while (iter.hasNext()) { EventQueueImpl queue = (EventQueueImpl)iter.next(); queue.enqueue(eventSet); maxQueueSize = Math.max(maxQueueSize, queue.size()); } } controlEventFlow(maxQueueSize); }
Example #21
Source File: TargetVM.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private void queueEventSet(EventSet eventSet) { int maxQueueSize = 0; synchronized(eventQueues) { Iterator<EventQueue> iter = eventQueues.iterator(); while (iter.hasNext()) { EventQueueImpl queue = (EventQueueImpl)iter.next(); queue.enqueue(eventSet); maxQueueSize = Math.max(maxQueueSize, queue.size()); } } controlEventFlow(maxQueueSize); }
Example #22
Source File: TargetVM.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private void queueEventSet(EventSet eventSet) { int maxQueueSize = 0; synchronized(eventQueues) { Iterator<EventQueue> iter = eventQueues.iterator(); while (iter.hasNext()) { EventQueueImpl queue = (EventQueueImpl)iter.next(); queue.enqueue(eventSet); maxQueueSize = Math.max(maxQueueSize, queue.size()); } } controlEventFlow(maxQueueSize); }
Example #23
Source File: EventQueueImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Filter out events not for user's eyes. * Then filter out empty sets. */ public EventSet remove(long timeout) throws InterruptedException { if (timeout < 0) { throw new IllegalArgumentException("Timeout cannot be negative"); } EventSet eventSet; while (true) { EventSetImpl fullEventSet = removeUnfiltered(timeout); if (fullEventSet == null) { eventSet = null; // timeout break; } /* * Remove events from the event set for which * there is no corresponding enabled request ( * this includes our internally requested events.) * This never returns null */ eventSet = fullEventSet.userFilter(); if (!eventSet.isEmpty()) { break; } } if ((eventSet != null) && (eventSet.suspendPolicy() == JDWP.SuspendPolicy.ALL)) { vm.notifySuspend(); } return eventSet; }
Example #24
Source File: TargetVM.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
protected void handleEventCmdSet(Packet p) { EventSet eventSet = new EventSetImpl(vm, p); if (eventSet != null) { queueEventSet(eventSet); } }
Example #25
Source File: TargetVM.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private void queueEventSet(EventSet eventSet) { int maxQueueSize = 0; synchronized(eventQueues) { Iterator<EventQueue> iter = eventQueues.iterator(); while (iter.hasNext()) { EventQueueImpl queue = (EventQueueImpl)iter.next(); queue.enqueue(eventSet); maxQueueSize = Math.max(maxQueueSize, queue.size()); } } controlEventFlow(maxQueueSize); }
Example #26
Source File: EventQueueImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Filter out events not for user's eyes. * Then filter out empty sets. */ public EventSet remove(long timeout) throws InterruptedException { if (timeout < 0) { throw new IllegalArgumentException("Timeout cannot be negative"); } EventSet eventSet; while (true) { EventSetImpl fullEventSet = removeUnfiltered(timeout); if (fullEventSet == null) { eventSet = null; // timeout break; } /* * Remove events from the event set for which * there is no corresponding enabled request ( * this includes our internally requested events.) * This never returns null */ eventSet = fullEventSet.userFilter(); if (!eventSet.isEmpty()) { break; } } if ((eventSet != null) && (eventSet.suspendPolicy() == JDWP.SuspendPolicy.ALL)) { vm.notifySuspend(); } return eventSet; }
Example #27
Source File: EventQueueImpl.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Filter out events not for user's eyes. * Then filter out empty sets. */ public EventSet remove(long timeout) throws InterruptedException { if (timeout < 0) { throw new IllegalArgumentException("Timeout cannot be negative"); } EventSet eventSet; while (true) { EventSetImpl fullEventSet = removeUnfiltered(timeout); if (fullEventSet == null) { eventSet = null; // timeout break; } /* * Remove events from the event set for which * there is no corresponding enabled request ( * this includes our internally requested events.) * This never returns null */ eventSet = fullEventSet.userFilter(); if (!eventSet.isEmpty()) { break; } } if ((eventSet != null) && (eventSet.suspendPolicy() == JDWP.SuspendPolicy.ALL)) { vm.notifySuspend(); } return eventSet; }
Example #28
Source File: TargetVM.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
protected void handleEventCmdSet(Packet p) { EventSet eventSet = new EventSetImpl(vm, p); if (eventSet != null) { queueEventSet(eventSet); } }
Example #29
Source File: TargetVM.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private void queueEventSet(EventSet eventSet) { int maxQueueSize = 0; synchronized(eventQueues) { Iterator<EventQueue> iter = eventQueues.iterator(); while (iter.hasNext()) { EventQueueImpl queue = (EventQueueImpl)iter.next(); queue.enqueue(eventSet); maxQueueSize = Math.max(maxQueueSize, queue.size()); } } controlEventFlow(maxQueueSize); }
Example #30
Source File: TargetVM.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
protected void handleEventCmdSet(Packet p) { EventSet eventSet = new EventSetImpl(vm, p); if (eventSet != null) { queueEventSet(eventSet); } }