com.sun.jdi.request.ClassPrepareRequest Java Examples
The following examples show how to use
com.sun.jdi.request.ClassPrepareRequest.
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: PatternReferenceTypeSpec.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
@Override public ClassPrepareRequest createPrepareRequest() { ClassPrepareRequest request = Env.vm().eventRequestManager().createClassPrepareRequest(); request.addClassFilter(classId); request.addCountFilter(1); return request; }
Example #2
Source File: PatternReferenceTypeSpec.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
@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 jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@Override public ClassPrepareRequest createPrepareRequest() { ClassPrepareRequest request = Env.vm().eventRequestManager().createClassPrepareRequest(); request.addClassFilter(classId); request.addCountFilter(1); return request; }
Example #4
Source File: PatternReferenceTypeSpec.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
@Override public ClassPrepareRequest createPrepareRequest() { ClassPrepareRequest request = Env.vm().eventRequestManager().createClassPrepareRequest(); request.addClassFilter(classId); request.addCountFilter(1); return request; }
Example #5
Source File: PatternReferenceTypeSpec.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Override public ClassPrepareRequest createPrepareRequest() { ClassPrepareRequest request = Env.vm().eventRequestManager().createClassPrepareRequest(); request.addClassFilter(classId); request.addCountFilter(1); return request; }
Example #6
Source File: FieldMonitor.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private static void addClassWatch(VirtualMachine vm) { EventRequestManager erm = vm.eventRequestManager(); ClassPrepareRequest classPrepareRequest = erm .createClassPrepareRequest(); classPrepareRequest.addClassFilter(CLASS_NAME); classPrepareRequest.setEnabled(true); }
Example #7
Source File: PatternReferenceTypeSpec.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Override public ClassPrepareRequest createPrepareRequest() { ClassPrepareRequest request = Env.vm().eventRequestManager().createClassPrepareRequest(); request.addClassFilter(classId); request.addCountFilter(1); return request; }
Example #8
Source File: FieldMonitor.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private static void addClassWatch(VirtualMachine vm) { EventRequestManager erm = vm.eventRequestManager(); ClassPrepareRequest classPrepareRequest = erm .createClassPrepareRequest(); classPrepareRequest.addClassFilter(CLASS_NAME); classPrepareRequest.setEnabled(true); }
Example #9
Source File: PatternReferenceTypeSpec.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override public ClassPrepareRequest createPrepareRequest() { ClassPrepareRequest request = Env.vm().eventRequestManager().createClassPrepareRequest(); request.addClassFilter(classId); request.addCountFilter(1); return request; }
Example #10
Source File: FieldMonitor.java From hottub with GNU General Public License v2.0 | 5 votes |
private static void addClassWatch(VirtualMachine vm) { EventRequestManager erm = vm.eventRequestManager(); ClassPrepareRequest classPrepareRequest = erm .createClassPrepareRequest(); classPrepareRequest.addClassFilter(CLASS_NAME); classPrepareRequest.setEnabled(true); }
Example #11
Source File: PatternReferenceTypeSpec.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@Override public ClassPrepareRequest createPrepareRequest() { ClassPrepareRequest request = Env.vm().eventRequestManager().createClassPrepareRequest(); request.addClassFilter(classId); request.addCountFilter(1); return request; }
Example #12
Source File: PatternReferenceTypeSpec.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@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-jdk9 with GNU General Public License v2.0 | 5 votes |
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: GetObjectLockCount.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private static void addClassWatch(VirtualMachine vm) { EventRequestManager erm = vm.eventRequestManager(); ClassPrepareRequest classPrepareRequest = erm .createClassPrepareRequest(); classPrepareRequest.addClassFilter(CLASS_NAME); classPrepareRequest.setEnabled(true); }
Example #15
Source File: PatternReferenceTypeSpec.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override public ClassPrepareRequest createPrepareRequest() { ClassPrepareRequest request = Env.vm().eventRequestManager().createClassPrepareRequest(); request.addClassFilter(classId); request.addCountFilter(1); return request; }
Example #16
Source File: FieldMonitor.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private static void addClassWatch(VirtualMachine vm) { EventRequestManager erm = vm.eventRequestManager(); ClassPrepareRequest classPrepareRequest = erm .createClassPrepareRequest(); classPrepareRequest.addClassFilter(CLASS_NAME); classPrepareRequest.setEnabled(true); }
Example #17
Source File: PatternReferenceTypeSpec.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override public ClassPrepareRequest createPrepareRequest() { ClassPrepareRequest request = Env.vm().eventRequestManager().createClassPrepareRequest(); request.addClassFilter(classId); request.addCountFilter(1); return request; }
Example #18
Source File: PatternReferenceTypeSpec.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override public ClassPrepareRequest createPrepareRequest() { ClassPrepareRequest request = Env.vm().eventRequestManager().createClassPrepareRequest(); request.addClassFilter(classId); request.addCountFilter(1); return request; }
Example #19
Source File: FieldMonitor.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private static void addClassWatch(VirtualMachine vm) { EventRequestManager erm = vm.eventRequestManager(); ClassPrepareRequest classPrepareRequest = erm .createClassPrepareRequest(); classPrepareRequest.addClassFilter(CLASS_NAME); classPrepareRequest.setEnabled(true); }
Example #20
Source File: FieldMonitor.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private static void addClassWatch(VirtualMachine vm) { EventRequestManager erm = vm.eventRequestManager(); ClassPrepareRequest classPrepareRequest = erm .createClassPrepareRequest(); classPrepareRequest.addClassFilter(CLASS_NAME); classPrepareRequest.setEnabled(true); }
Example #21
Source File: FieldMonitor.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private static void addClassWatch(VirtualMachine vm) { EventRequestManager erm = vm.eventRequestManager(); ClassPrepareRequest classPrepareRequest = erm .createClassPrepareRequest(); classPrepareRequest.addClassFilter(CLASS_NAME); classPrepareRequest.setEnabled(true); }
Example #22
Source File: PatternReferenceTypeSpec.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override public ClassPrepareRequest createPrepareRequest() { ClassPrepareRequest request = Env.vm().eventRequestManager().createClassPrepareRequest(); request.addClassFilter(classId); request.addCountFilter(1); return request; }
Example #23
Source File: ExternalFilePositionManager.java From intellij with Apache License 2.0 | 4 votes |
@Override public List<ClassPrepareRequest> createPrepareRequests( ClassPrepareRequestor requestor, SourcePosition position) throws NoDataException { indexQualifiedClassNames(position.getFile()); return super.createPrepareRequests(requestor, position); }
Example #24
Source File: DynamothCodeGenesisImpl.java From nopol with GNU General Public License v2.0 | 4 votes |
private void watchBuggyClass() { EventRequestManager erm = vm.eventRequestManager(); ClassPrepareRequest classPrepareRequest = erm.createClassPrepareRequest(); classPrepareRequest.addClassFilter(location.getContainingClassName()); classPrepareRequest.setEnabled(true); }
Example #25
Source File: DynamothCollector.java From astor with GNU General Public License v2.0 | 4 votes |
private void watchBuggyClass() { EventRequestManager erm = vm.eventRequestManager(); ClassPrepareRequest classPrepareRequest = erm.createClassPrepareRequest(); classPrepareRequest.addClassFilter(location.getContainingClassName()); classPrepareRequest.setEnabled(true); }
Example #26
Source File: VMTargetStarter.java From gravel with Apache License 2.0 | 4 votes |
public VMRemoteTarget createJVM() throws IOException, InterruptedException, IncompatibleThreadStateException { Process process = startSecondJVM(VMLocalTarget.class); sleep(90); // connect VirtualMachine vm = new VMAcquirer().connect(debugPort); ClassPrepareRequest createClassPrepareRequest = vm .eventRequestManager().createClassPrepareRequest(); createClassPrepareRequest.addClassFilter(VMLocalTarget.class.getName()); createClassPrepareRequest.enable(); vm.resume(); List<ThreadReference> allThreads = vm.allThreads(); for (ThreadReference threadReference : allThreads) { System.out.println(threadReference+" isSuspended: "+threadReference.isSuspended()+" suspendCount: "+threadReference.suspendCount()); } // process events EventQueue eventQueue = vm.eventQueue(); while (true) { EventSet eventSet = eventQueue.remove(); for (Event event : eventSet) { if (event instanceof ClassPrepareEvent) { event.request().disable(); installHaltPoint(vm); } if (event instanceof VMDeathEvent || event instanceof VMDisconnectEvent) { return null; } if (event instanceof BreakpointEvent) { event.request().disable(); ThreadReference thread = ((BreakpointEvent) event).thread(); return new VMRemoteTarget(process, vm, thread, debugPort); } } eventSet.resume(); } }
Example #27
Source File: JDIExampleDebugger.java From tutorials with MIT License | 4 votes |
/** * Creates a request to prepare the debug class, add filter as the debug class and enables it * @param vm */ public void enableClassPrepareRequest(VirtualMachine vm) { ClassPrepareRequest classPrepareRequest = vm.eventRequestManager().createClassPrepareRequest(); classPrepareRequest.addClassFilter(debugClass.getName()); classPrepareRequest.enable(); }
Example #28
Source File: ReferenceTypeSpec.java From jdk8u-dev-jdk with GNU General Public License v2.0 | votes |
ClassPrepareRequest createPrepareRequest();
Example #29
Source File: ReferenceTypeSpec.java From jdk8u-jdk with GNU General Public License v2.0 | votes |
ClassPrepareRequest createPrepareRequest();
Example #30
Source File: ReferenceTypeSpec.java From dragonwell8_jdk with GNU General Public License v2.0 | votes |
ClassPrepareRequest createPrepareRequest();