Java Code Examples for com.sun.jdi.event.EventSet#suspendPolicy()

The following examples show how to use com.sun.jdi.event.EventSet#suspendPolicy() . 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 dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 2
Source File: EventQueueImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 3
Source File: EventQueueImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 4
Source File: EventQueueImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 5
Source File: EventQueueImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 6
Source File: EventQueueImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 7
Source File: EventQueueImpl.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 8
Source File: EventQueueImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 9
Source File: EventQueueImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 10
Source File: EventQueueImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 11
Source File: EventQueueImpl.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 12
Source File: EventQueueImpl.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 13
Source File: EventQueueImpl.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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;
}