author | dtitov |
Thu, 28 Feb 2019 13:12:26 -0800 | |
changeset 53960 | 6c3fd94de35a |
parent 53869 | 34906de6c017 |
permissions | -rw-r--r-- |
50018 | 1 |
/* |
53869
34906de6c017
8219388: Misleading log message "issuspended002a debuggee launched"
gadams
parents:
50018
diff
changeset
|
2 |
* Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved. |
50018 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
20 |
* or visit www.oracle.com if you need additional information or have any |
|
21 |
* questions. |
|
22 |
*/ |
|
23 |
||
24 |
package nsk.jdi.ThreadReference.suspend; |
|
25 |
||
53960
6c3fd94de35a
8207367: 10 vmTestbase/nsk/jdi tests timed out when running with jtreg
dtitov
parents:
53869
diff
changeset
|
26 |
import jdk.test.lib.Utils; |
50018 | 27 |
import nsk.share.*; |
28 |
import nsk.share.jpda.*; |
|
29 |
import nsk.share.jdi.*; |
|
30 |
||
31 |
import com.sun.jdi.*; |
|
32 |
import java.util.*; |
|
33 |
import java.io.*; |
|
34 |
||
35 |
import com.sun.jdi.event.*; |
|
36 |
import com.sun.jdi.request.*; |
|
37 |
||
38 |
/** |
|
39 |
* The test for the implementation of an object of the type <BR> |
|
40 |
* ThreadReference. <BR> |
|
41 |
* <BR> |
|
42 |
* The test checks up that results of the method <BR> |
|
43 |
* <code>com.sun.jdi.ThreadReference.suspend()</code> <BR> |
|
44 |
* complies with its spec. <BR> |
|
45 |
* <BR> |
|
46 |
* The cases for testing are as follows. <BR> |
|
47 |
* After being started up, <BR> |
|
48 |
* a debuggee creates a 'lockingObject' for synchronizing threads, <BR> |
|
49 |
* enters a synchronized block in which it creates new thread, thread2, <BR> |
|
50 |
* informs a debugger of the thread2 creation, and is waiting for reply.<BR> |
|
51 |
* Since thread2 uses the same locking object in its 'run' method <BR> |
|
52 |
* it is locked up until first thread leaves the synchronized block. <BR> |
|
53 |
* Upon the receiption a message from the debuggee, the debugger <BR> |
|
54 |
* sets up breakpoints within thread2's methods and checks up that <BR> |
|
55 |
* call to the method thread2.suspend() does suspend the thread2 when <BR> |
|
56 |
* - the thread2 is not suspended and when <BR> |
|
57 |
* - it is suspended at a breakpoint <BR> |
|
58 |
* In both cases is expected that resuming the thread2 results in <BR> |
|
59 |
* timeout for waiting for the thread2 gets stopping at a breakpoint. <BR> |
|
60 |
*/ |
|
61 |
||
62 |
public class suspend001 { |
|
63 |
||
64 |
//----------------------------------------------------- templete section |
|
65 |
static final int PASSED = 0; |
|
66 |
static final int FAILED = 2; |
|
67 |
static final int PASS_BASE = 95; |
|
68 |
||
69 |
//----------------------------------------------------- templete parameters |
|
70 |
static final String |
|
71 |
sHeader1 = "\n==> nsk/jdi/ThreadReference/suspend/suspend001 ", |
|
72 |
sHeader2 = "--> debugger: ", |
|
73 |
sHeader3 = "##> debugger: "; |
|
74 |
||
75 |
//----------------------------------------------------- main method |
|
76 |
||
77 |
public static void main (String argv[]) { |
|
78 |
int result = run(argv, System.out); |
|
79 |
System.exit(result + PASS_BASE); |
|
80 |
} |
|
81 |
||
82 |
public static int run (String argv[], PrintStream out) { |
|
83 |
return new suspend001().runThis(argv, out); |
|
84 |
} |
|
85 |
||
86 |
//-------------------------------------------------- log procedures |
|
87 |
||
88 |
private static Log logHandler; |
|
89 |
||
90 |
private static void log1(String message) { |
|
91 |
logHandler.display(sHeader1 + message); |
|
92 |
} |
|
93 |
private static void log2(String message) { |
|
94 |
logHandler.display(sHeader2 + message); |
|
95 |
} |
|
96 |
private static void log3(String message) { |
|
97 |
logHandler.complain(sHeader3 + message); |
|
98 |
} |
|
99 |
||
100 |
// ************************************************ test parameters |
|
101 |
||
102 |
private String debuggeeName = |
|
103 |
"nsk.jdi.ThreadReference.suspend.suspend001a"; |
|
104 |
||
105 |
private String testedClassName = |
|
106 |
"nsk.jdi.ThreadReference.suspend.Threadsuspend001a"; |
|
107 |
||
108 |
//String mName = "nsk.jdi.ThreadReference.suspend"; |
|
109 |
||
110 |
//====================================================== test program |
|
111 |
//------------------------------------------------------ common section |
|
112 |
||
113 |
static ArgumentHandler argsHandler; |
|
114 |
||
115 |
static int waitTime; |
|
116 |
||
117 |
static VirtualMachine vm = null; |
|
118 |
static EventRequestManager eventRManager = null; |
|
119 |
static EventQueue eventQueue = null; |
|
120 |
static EventSet eventSet = null; |
|
121 |
||
122 |
ReferenceType testedclass = null; |
|
123 |
ThreadReference thread2 = null; |
|
124 |
ThreadReference mainThread = null; |
|
125 |
||
126 |
static int testExitCode = PASSED; |
|
127 |
||
128 |
static final int returnCode0 = 0; |
|
129 |
static final int returnCode1 = 1; |
|
130 |
static final int returnCode2 = 2; |
|
131 |
static final int returnCode3 = 3; |
|
132 |
static final int returnCode4 = 4; |
|
133 |
||
134 |
//------------------------------------------------------ methods |
|
135 |
||
136 |
private int runThis (String argv[], PrintStream out) { |
|
137 |
||
138 |
Debugee debuggee; |
|
139 |
||
140 |
argsHandler = new ArgumentHandler(argv); |
|
141 |
logHandler = new Log(out, argsHandler); |
|
142 |
Binder binder = new Binder(argsHandler, logHandler); |
|
143 |
||
144 |
if (argsHandler.verbose()) { |
|
145 |
debuggee = binder.bindToDebugee(debuggeeName + " -vbs"); |
|
146 |
} else { |
|
147 |
debuggee = binder.bindToDebugee(debuggeeName); |
|
148 |
} |
|
149 |
||
150 |
waitTime = argsHandler.getWaitTime(); |
|
151 |
||
152 |
||
153 |
IOPipe pipe = new IOPipe(debuggee); |
|
154 |
||
155 |
debuggee.redirectStderr(out); |
|
53869
34906de6c017
8219388: Misleading log message "issuspended002a debuggee launched"
gadams
parents:
50018
diff
changeset
|
156 |
log2(debuggeeName + " debuggee launched"); |
50018 | 157 |
debuggee.resume(); |
158 |
||
159 |
String line = pipe.readln(); |
|
160 |
if ((line == null) || !line.equals("ready")) { |
|
161 |
log3("signal received is not 'ready' but: " + line); |
|
162 |
return FAILED; |
|
163 |
} else { |
|
164 |
log2("'ready' recieved"); |
|
165 |
} |
|
166 |
||
167 |
vm = debuggee.VM(); |
|
168 |
||
169 |
//------------------------------------------------------ testing section |
|
170 |
||
171 |
log1(" TESTING BEGINS"); |
|
172 |
||
173 |
for (int i = 0; ; i++) { |
|
174 |
||
175 |
pipe.println("newcheck"); |
|
176 |
line = pipe.readln(); |
|
177 |
||
178 |
if (line.equals("checkend")) { |
|
179 |
log2(" : returned string is 'checkend'"); |
|
180 |
break ; |
|
181 |
} else if (!line.equals("checkready")) { |
|
182 |
log3("ERROR: returned string is not 'checkready'"); |
|
183 |
testExitCode = FAILED; |
|
184 |
break ; |
|
185 |
} |
|
186 |
||
187 |
log1("new checkready: #" + i); |
|
188 |
||
189 |
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variable part |
|
190 |
||
191 |
int expresult = returnCode0; |
|
192 |
||
193 |
||
194 |
eventRManager = vm.eventRequestManager(); |
|
195 |
eventQueue = vm.eventQueue(); |
|
196 |
||
197 |
String threadName = "testedThread"; |
|
198 |
||
199 |
String breakpointMethod1 = "runt1"; |
|
200 |
String breakpointMethod2 = "runt2"; |
|
201 |
||
202 |
String bpLine1 = "breakpointLineNumber1"; |
|
203 |
String bpLine2 = "breakpointLineNumber2"; |
|
204 |
//String bpLine3 = "breakpointLineNumber3"; |
|
205 |
||
206 |
||
207 |
List allThreads = null; |
|
208 |
ListIterator listIterator = null; |
|
209 |
List classes = null; |
|
210 |
||
211 |
BreakpointRequest breakpRequest1 = null; |
|
212 |
BreakpointRequest breakpRequest2 = null; |
|
213 |
//BreakpointRequest breakpRequest3 = null; |
|
214 |
||
215 |
||
216 |
label0: { |
|
217 |
||
218 |
log2("getting ThreadReference objects and setting up breakponts"); |
|
219 |
try { |
|
220 |
allThreads = vm.allThreads(); |
|
221 |
classes = vm.classesByName(testedClassName); |
|
222 |
testedclass = (ReferenceType) classes.get(0); |
|
223 |
} catch ( Exception e) { |
|
224 |
log3("ERROR: Exception at very beginning !? : " + e); |
|
225 |
expresult = returnCode1; |
|
226 |
break label0; |
|
227 |
} |
|
228 |
||
229 |
listIterator = allThreads.listIterator(); |
|
230 |
for (;;) { |
|
231 |
try { |
|
232 |
thread2 = (ThreadReference) listIterator.next(); |
|
233 |
if (thread2.name().equals(threadName)) |
|
234 |
break ; |
|
235 |
} catch ( NoSuchElementException e ) { |
|
236 |
log3("ERROR: NoSuchElementException for listIterator.next()"); |
|
237 |
log3("ERROR: NO THREAD2 ?????????!!!!!!!"); |
|
238 |
expresult = returnCode1; |
|
239 |
break label0; |
|
240 |
} |
|
241 |
} |
|
242 |
||
243 |
log2("setting up breakpoints"); |
|
244 |
||
245 |
breakpRequest1 = settingBreakpoint(breakpointMethod1, bpLine1, "one"); |
|
246 |
if (breakpRequest1 == null) { |
|
247 |
expresult = returnCode1; |
|
248 |
break label0; |
|
249 |
} |
|
250 |
breakpRequest2 = settingBreakpoint(breakpointMethod2, bpLine2, "two"); |
|
251 |
if (breakpRequest2 == null) { |
|
252 |
expresult = returnCode1; |
|
253 |
break label0; |
|
254 |
} |
|
255 |
} |
|
256 |
||
257 |
||
258 |
label1: { |
|
259 |
if (expresult != returnCode0) |
|
260 |
break label1; |
|
261 |
||
262 |
log2("......checking up that thread2.suspend() does suspend the non-suspended thread2"); |
|
263 |
||
264 |
log2(" suspending the thread2"); |
|
265 |
thread2.suspend(); |
|
266 |
||
267 |
log2(" enabling breakpRequest1"); |
|
268 |
breakpRequest1.enable(); |
|
269 |
||
270 |
log2(" forcing the main thread to leave synchronized block"); |
|
271 |
pipe.println("continue"); |
|
272 |
line = pipe.readln(); |
|
273 |
if (!line.equals("docontinue")) { |
|
274 |
log3("ERROR: returned string is not 'docontinue'"); |
|
275 |
expresult = returnCode4; |
|
276 |
} |
|
277 |
||
278 |
if (expresult != returnCode0) |
|
279 |
break label1; |
|
280 |
||
281 |
log2(" checking up that the thread2 is not at breakpoint1 because of suspension"); |
|
282 |
expresult = breakpoint(); |
|
283 |
if (expresult != returnCode3) { |
|
284 |
log3("ERROR: no timeout for waiting for BreakpointEvent when the thread2 is suspended"); |
|
285 |
expresult = returnCode1; |
|
286 |
break label1; |
|
287 |
} else |
|
288 |
expresult = returnCode0; |
|
289 |
||
290 |
||
291 |
log2("......checking up that thread2.suspend() does suspend the suspended thread2"); |
|
292 |
||
293 |
log2(" resuming the thread2 with thread2.resume();"); |
|
294 |
thread2.resume(); |
|
295 |
||
296 |
log2(" getting BreakpointEvent"); |
|
297 |
expresult = breakpoint(); |
|
298 |
if (expresult != returnCode0) |
|
299 |
break label1; |
|
300 |
log2(" thread2 is at breakpoint"); |
|
301 |
||
302 |
if (!thread2.isSuspended()) { |
|
303 |
log3("ERROR: !thread2.isSuspended() at the breakpoint ???"); |
|
304 |
expresult = returnCode1; |
|
305 |
break label1; |
|
306 |
} |
|
307 |
||
308 |
log2(" suspending the thread2"); |
|
309 |
thread2.suspend(); |
|
310 |
||
311 |
log2(" enabling breakpRequest2"); |
|
312 |
breakpRequest2.enable(); |
|
313 |
||
314 |
log2(" resuming the thread2 with eventSet.resume();"); |
|
315 |
eventSet.resume(); |
|
316 |
||
317 |
log2(" checking up that the thread2 is not at breakpoint2 because of suspension"); |
|
318 |
expresult = breakpoint(); |
|
319 |
if (expresult != returnCode3) { |
|
320 |
log3("ERROR: no timeout for waiting for BreakpointEvent when the thread2 is suspended"); |
|
321 |
expresult = returnCode1; |
|
322 |
break label1; |
|
323 |
} else |
|
324 |
expresult = returnCode0; |
|
325 |
||
326 |
log2(" resuming the thread2 with thread2.resume();"); |
|
327 |
thread2.resume(); |
|
328 |
||
329 |
log2(" getting BreakpointEvent"); |
|
330 |
expresult = breakpoint(); |
|
331 |
if (expresult == returnCode0) { |
|
332 |
log2(" thread2 is at breakpoint"); |
|
333 |
log2(" resuming the thread2 with eventSet.resume();"); |
|
334 |
eventSet.resume(); |
|
335 |
} else { |
|
336 |
log3("ERROR: breakpoint was not reached"); |
|
337 |
expresult = returnCode1; |
|
338 |
break label1; |
|
339 |
} |
|
340 |
} |
|
341 |
if (expresult != returnCode0) |
|
342 |
testExitCode = FAILED; |
|
343 |
} |
|
344 |
log1(" TESTING ENDS"); |
|
345 |
||
346 |
//-------------------------------------------------- test summary section |
|
347 |
//------------------------------------------------- standard end section |
|
348 |
||
349 |
pipe.println("quit"); |
|
350 |
log2("waiting for the debuggee to finish ..."); |
|
351 |
debuggee.waitFor(); |
|
352 |
||
353 |
int status = debuggee.getStatus(); |
|
354 |
if (status != PASSED + PASS_BASE) { |
|
355 |
log3("debuggee returned UNEXPECTED exit status: " + |
|
356 |
status + " != PASS_BASE"); |
|
357 |
testExitCode = FAILED; |
|
358 |
} else { |
|
359 |
log2("debuggee returned expected exit status: " + |
|
360 |
status + " == PASS_BASE"); |
|
361 |
} |
|
362 |
||
363 |
if (testExitCode != PASSED) { |
|
364 |
logHandler.complain("TEST FAILED"); |
|
365 |
} |
|
366 |
return testExitCode; |
|
367 |
} |
|
368 |
||
369 |
||
370 |
/* |
|
371 |
* private BreakpointRequest settingBreakpoint(String, String, String) |
|
372 |
* |
|
373 |
* It sets up a breakpoint within a given method at given line number |
|
374 |
* for the thread2 only. |
|
375 |
* Third parameter is required for any case in future debugging, as if. |
|
376 |
* |
|
377 |
* Return codes: |
|
378 |
* = BreakpointRequest object in case of success |
|
379 |
* = null in case of an Exception thrown within the method |
|
380 |
*/ |
|
381 |
||
382 |
private BreakpointRequest settingBreakpoint ( String methodName, |
|
383 |
String bpLine, |
|
384 |
String property) { |
|
385 |
||
386 |
log2("setting up a breakpoint: method: '" + methodName + "' line: " + bpLine ); |
|
387 |
||
388 |
List alllineLocations = null; |
|
389 |
Location lineLocation = null; |
|
390 |
BreakpointRequest breakpRequest = null; |
|
391 |
||
392 |
try { |
|
393 |
Method method = (Method) testedclass.methodsByName(methodName).get(0); |
|
394 |
||
395 |
alllineLocations = method.allLineLocations(); |
|
396 |
||
397 |
int n = |
|
398 |
( (IntegerValue) testedclass.getValue(testedclass.fieldByName(bpLine) ) ).value(); |
|
399 |
if (n > alllineLocations.size()) { |
|
400 |
log3("ERROR: TEST_ERROR_IN_settingBreakpoint(): number is out of bound of method's lines"); |
|
401 |
} else { |
|
402 |
lineLocation = (Location) alllineLocations.get(n); |
|
403 |
try { |
|
404 |
breakpRequest = eventRManager.createBreakpointRequest(lineLocation); |
|
405 |
breakpRequest.putProperty("number", property); |
|
406 |
breakpRequest.addThreadFilter(thread2); |
|
407 |
breakpRequest.setSuspendPolicy( EventRequest.SUSPEND_EVENT_THREAD); |
|
408 |
} catch ( Exception e1 ) { |
|
409 |
log3("ERROR: inner Exception within settingBreakpoint() : " + e1); |
|
410 |
breakpRequest = null; |
|
411 |
} |
|
412 |
} |
|
413 |
} catch ( Exception e2 ) { |
|
414 |
log3("ERROR: ATTENTION: outer Exception within settingBreakpoint() : " + e2); |
|
415 |
breakpRequest = null; |
|
416 |
} |
|
417 |
||
418 |
if (breakpRequest == null) |
|
419 |
log2(" A BREAKPOINT HAS NOT BEEN SET UP"); |
|
420 |
else |
|
421 |
log2(" a breakpoint has been set up"); |
|
422 |
||
423 |
return breakpRequest; |
|
424 |
} |
|
425 |
||
426 |
||
427 |
/* |
|
428 |
* private int breakpoint () |
|
429 |
* |
|
430 |
* It removes events from EventQueue until gets first BreakpointEvent. |
|
431 |
* To get next EventSet value, it uses the method |
|
432 |
* EventQueue.remove(int timeout) |
|
53960
6c3fd94de35a
8207367: 10 vmTestbase/nsk/jdi tests timed out when running with jtreg
dtitov
parents:
53869
diff
changeset
|
433 |
* The timeout argument passed to the method, is "waitTime*1000" adjusted to |
6c3fd94de35a
8207367: 10 vmTestbase/nsk/jdi tests timed out when running with jtreg
dtitov
parents:
53869
diff
changeset
|
434 |
* test.timeout.factor system property. |
50018 | 435 |
* Note: the value of waitTime is set up with |
436 |
* the method ArgumentHandler.getWaitTime() at the beginning of the test. |
|
437 |
* |
|
438 |
* Return codes: |
|
439 |
* = returnCode0 - success; |
|
440 |
* = returnCode2 - Exception when "eventSet = eventQueue.remove()" is executed |
|
441 |
* = returnCode3 - default case when loop of processing an event, that is, |
|
442 |
* an unspecified event was taken from the EventQueue |
|
443 |
*/ |
|
444 |
||
445 |
private int breakpoint () { |
|
446 |
||
447 |
int returnCode = returnCode0; |
|
448 |
||
449 |
log2(" waiting for BreakpointEvent"); |
|
450 |
||
451 |
labelBP: |
|
452 |
for (;;) { |
|
453 |
||
454 |
log2(" new: eventSet = eventQueue.remove();"); |
|
455 |
try { |
|
53960
6c3fd94de35a
8207367: 10 vmTestbase/nsk/jdi tests timed out when running with jtreg
dtitov
parents:
53869
diff
changeset
|
456 |
eventSet = eventQueue.remove(Utils.adjustTimeout(waitTime*1000)); |
50018 | 457 |
if (eventSet == null) { |
458 |
log2(":::::: timeout when waiting for a BreakpintEvent"); |
|
459 |
// log3("ERROR: timeout for waiting for a BreakpintEvent"); |
|
460 |
returnCode = returnCode3; |
|
461 |
break labelBP; |
|
462 |
} |
|
463 |
} catch ( Exception e ) { |
|
464 |
log3("ERROR: Exception for eventSet = eventQueue.remove(); : " + e); |
|
465 |
returnCode = 1; |
|
466 |
break labelBP; |
|
467 |
} |
|
468 |
||
469 |
if (eventSet != null) { |
|
470 |
||
471 |
log2(" : eventSet != null; size == " + eventSet.size()); |
|
472 |
||
473 |
EventIterator eIter = eventSet.eventIterator(); |
|
474 |
Event ev = null; |
|
475 |
||
476 |
for (; eIter.hasNext(); ) { |
|
477 |
||
478 |
if (returnCode != returnCode0) |
|
479 |
break; |
|
480 |
||
481 |
ev = eIter.nextEvent(); |
|
482 |
||
483 |
ll: for (int ifor =0; ; ifor++) { |
|
484 |
||
485 |
try { |
|
486 |
switch (ifor) { |
|
487 |
||
488 |
case 0: AccessWatchpointEvent awe = (AccessWatchpointEvent) ev; |
|
489 |
log2(" AccessWatchpointEvent removed"); |
|
490 |
break ll; |
|
491 |
case 1: BreakpointEvent be = (BreakpointEvent) ev; |
|
492 |
log2(" BreakpointEvent removed"); |
|
493 |
break labelBP; |
|
494 |
case 2: ClassPrepareEvent cpe = (ClassPrepareEvent) ev; |
|
495 |
log2(" ClassPreparEvent removed"); |
|
496 |
break ll; |
|
497 |
case 3: ClassUnloadEvent cue = (ClassUnloadEvent) ev; |
|
498 |
log2(" ClassUnloadEvent removed"); |
|
499 |
break ll; |
|
500 |
case 4: ExceptionEvent ee = (ExceptionEvent) ev; |
|
501 |
log2(" ExceptionEvent removed"); |
|
502 |
break ll; |
|
503 |
case 5: MethodEntryEvent mene = (MethodEntryEvent) ev; |
|
504 |
log2(" MethodEntryEvent removed"); |
|
505 |
break ll; |
|
506 |
case 6: MethodExitEvent mexe = (MethodExitEvent) ev; |
|
507 |
log2(" MethodExiEvent removed"); |
|
508 |
break ll; |
|
509 |
case 7: ModificationWatchpointEvent mwe = (ModificationWatchpointEvent) ev; |
|
510 |
log2(" ModificationWatchpointEvent removed"); |
|
511 |
break ll; |
|
512 |
case 8: StepEvent se = (StepEvent) ev; |
|
513 |
log2(" StepEvent removed"); |
|
514 |
break ll; |
|
515 |
case 9: ThreadDeathEvent tde = (ThreadDeathEvent) ev; |
|
516 |
log2(" ThreadDeathEvent removed"); |
|
517 |
break ll; |
|
518 |
case 10: ThreadStartEvent tse = (ThreadStartEvent) ev; |
|
519 |
log2(" ThreadStartEvent removed"); |
|
520 |
break ll; |
|
521 |
case 11: VMDeathEvent vmde = (VMDeathEvent) ev; |
|
522 |
log2(" VMDeathEvent removed"); |
|
523 |
break ll; |
|
524 |
case 12: VMStartEvent vmse = (VMStartEvent) ev; |
|
525 |
log2(" VMStartEvent removed"); |
|
526 |
break ll; |
|
527 |
case 13: WatchpointEvent we = (WatchpointEvent) ev; |
|
528 |
log2(" WatchpointEvent removed"); |
|
529 |
break ll; |
|
530 |
||
531 |
default: log3("ERROR: default case for casting event"); |
|
532 |
returnCode = returnCode3; |
|
533 |
break ll; |
|
534 |
} // switch |
|
535 |
} catch ( ClassCastException e ) { |
|
536 |
} // try |
|
537 |
} // ll: for (int ifor =0; ; ifor++) |
|
538 |
} // for (; ev.hasNext(); ) |
|
539 |
} |
|
540 |
} |
|
541 |
if (returnCode == returnCode0) |
|
542 |
log2(" : eventSet == null: EventQueue is empty"); |
|
543 |
||
544 |
return returnCode; |
|
545 |
} |
|
546 |
||
547 |
} |