Java Code Examples for com.sun.jdi.request.ClassPrepareRequest#addClassFilter()

The following examples show how to use com.sun.jdi.request.ClassPrepareRequest#addClassFilter() . 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: FieldMonitor.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private static void addClassWatch(VirtualMachine vm) {
  EventRequestManager erm = vm.eventRequestManager();
  ClassPrepareRequest classPrepareRequest = erm
      .createClassPrepareRequest();
  classPrepareRequest.addClassFilter(CLASS_NAME);
  classPrepareRequest.setEnabled(true);
}
 
Example 2
Source File: PatternReferenceTypeSpec.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public ClassPrepareRequest createPrepareRequest() {
    ClassPrepareRequest request =
        Env.vm().eventRequestManager().createClassPrepareRequest();
    request.addClassFilter(classId);
    request.addCountFilter(1);
    return request;
}
 
Example 3
Source File: PatternReferenceTypeSpec.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public ClassPrepareRequest createPrepareRequest() {
    ClassPrepareRequest request =
        Env.vm().eventRequestManager().createClassPrepareRequest();
    request.addClassFilter(classId);
    request.addCountFilter(1);
    return request;
}
 
Example 4
Source File: FieldMonitor.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private static void addClassWatch(VirtualMachine vm) {
  EventRequestManager erm = vm.eventRequestManager();
  ClassPrepareRequest classPrepareRequest = erm
      .createClassPrepareRequest();
  classPrepareRequest.addClassFilter(CLASS_NAME);
  classPrepareRequest.setEnabled(true);
}
 
Example 5
Source File: FieldMonitor.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private static void addClassWatch(VirtualMachine vm) {
  EventRequestManager erm = vm.eventRequestManager();
  ClassPrepareRequest classPrepareRequest = erm
      .createClassPrepareRequest();
  classPrepareRequest.addClassFilter(CLASS_NAME);
  classPrepareRequest.setEnabled(true);
}
 
Example 6
Source File: PatternReferenceTypeSpec.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
@Override
public ClassPrepareRequest createPrepareRequest() {
    ClassPrepareRequest request =
        Env.vm().eventRequestManager().createClassPrepareRequest();
    request.addClassFilter(classId);
    request.addCountFilter(1);
    return request;
}
 
Example 7
Source File: PatternReferenceTypeSpec.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public ClassPrepareRequest createPrepareRequest() {
    ClassPrepareRequest request =
        Env.vm().eventRequestManager().createClassPrepareRequest();
    request.addClassFilter(classId);
    request.addCountFilter(1);
    return request;
}
 
Example 8
Source File: PatternReferenceTypeSpec.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public ClassPrepareRequest createPrepareRequest() {
    ClassPrepareRequest request =
        Env.vm().eventRequestManager().createClassPrepareRequest();
    request.addClassFilter(classId);
    request.addCountFilter(1);
    return request;
}
 
Example 9
Source File: PatternReferenceTypeSpec.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public ClassPrepareRequest createPrepareRequest() {
    ClassPrepareRequest request =
        Env.vm().eventRequestManager().createClassPrepareRequest();
    request.addClassFilter(classId);
    request.addCountFilter(1);
    return request;
}
 
Example 10
Source File: PatternReferenceTypeSpec.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public ClassPrepareRequest createPrepareRequest() {
    ClassPrepareRequest request =
        Env.vm().eventRequestManager().createClassPrepareRequest();
    request.addClassFilter(classId);
    request.addCountFilter(1);
    return request;
}
 
Example 11
Source File: GetObjectLockCount.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private static void addClassWatch(VirtualMachine vm) {
    EventRequestManager erm = vm.eventRequestManager();
    ClassPrepareRequest classPrepareRequest = erm
            .createClassPrepareRequest();
    classPrepareRequest.addClassFilter(CLASS_NAME);
    classPrepareRequest.setEnabled(true);
}
 
Example 12
Source File: PatternReferenceTypeSpec.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
@Override
public ClassPrepareRequest createPrepareRequest() {
    ClassPrepareRequest request =
        Env.vm().eventRequestManager().createClassPrepareRequest();
    request.addClassFilter(classId);
    request.addCountFilter(1);
    return request;
}
 
Example 13
Source File: FieldMonitor.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private static void addClassWatch(VirtualMachine vm) {
  EventRequestManager erm = vm.eventRequestManager();
  ClassPrepareRequest classPrepareRequest = erm
      .createClassPrepareRequest();
  classPrepareRequest.addClassFilter(CLASS_NAME);
  classPrepareRequest.setEnabled(true);
}
 
Example 14
Source File: PatternReferenceTypeSpec.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
@Override
public ClassPrepareRequest createPrepareRequest() {
    ClassPrepareRequest request =
        Env.vm().eventRequestManager().createClassPrepareRequest();
    request.addClassFilter(classId);
    request.addCountFilter(1);
    return request;
}
 
Example 15
Source File: PatternReferenceTypeSpec.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public ClassPrepareRequest createPrepareRequest() {
    ClassPrepareRequest request =
        Env.vm().eventRequestManager().createClassPrepareRequest();
    request.addClassFilter(classId);
    request.addCountFilter(1);
    return request;
}
 
Example 16
Source File: PatternReferenceTypeSpec.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public ClassPrepareRequest createPrepareRequest() {
    ClassPrepareRequest request =
        Env.vm().eventRequestManager().createClassPrepareRequest();
    request.addClassFilter(classId);
    request.addCountFilter(1);
    return request;
}
 
Example 17
Source File: PatternReferenceTypeSpec.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public ClassPrepareRequest createPrepareRequest() {
    ClassPrepareRequest request =
        Env.vm().eventRequestManager().createClassPrepareRequest();
    request.addClassFilter(classId);
    request.addCountFilter(1);
    return request;
}
 
Example 18
Source File: FieldMonitor.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private static void addClassWatch(VirtualMachine vm) {
  EventRequestManager erm = vm.eventRequestManager();
  ClassPrepareRequest classPrepareRequest = erm
      .createClassPrepareRequest();
  classPrepareRequest.addClassFilter(CLASS_NAME);
  classPrepareRequest.setEnabled(true);
}
 
Example 19
Source File: DynamothCodeGenesisImpl.java    From nopol with GNU General Public License v2.0 4 votes vote down vote up
private void watchBuggyClass() {
    EventRequestManager erm = vm.eventRequestManager();
    ClassPrepareRequest classPrepareRequest = erm.createClassPrepareRequest();
    classPrepareRequest.addClassFilter(location.getContainingClassName());
    classPrepareRequest.setEnabled(true);
}
 
Example 20
Source File: DynamothCollector.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
private void watchBuggyClass() {
	EventRequestManager erm = vm.eventRequestManager();
	ClassPrepareRequest classPrepareRequest = erm.createClassPrepareRequest();
	classPrepareRequest.addClassFilter(location.getContainingClassName());
	classPrepareRequest.setEnabled(true);
}