Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/test/hotspot/jtreg/vmTestbase/nsk/share/jdi/DebuggeeEventData.java
41161 views
1
/*
2
* Copyright (c) 2006, 2018, Oracle and/or its affiliates. All rights reserved.
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
package nsk.share.jdi;
24
25
/*
26
* Classes included in this class represent JDI events on debuggee VM's side
27
* All this classes contain information about JDI event which should be generated during test execution
28
*/
29
public class DebuggeeEventData {
30
// base event data class
31
public static class DebugEventData {
32
}
33
34
/*
35
* debug information about monitor event
36
*/
37
public static class DebugMonitorEventData extends DebugEventData {
38
public DebugMonitorEventData(Object monitor, Thread thread, Object eventObject) {
39
this.monitor = monitor;
40
this.thread = thread;
41
this.eventObject = eventObject;
42
}
43
44
public Object monitor;
45
46
public Thread thread;
47
48
public Object eventObject;
49
}
50
51
/*
52
* information about MonitorContendedEnterEvent
53
*/
54
public static class DebugMonitorEnterEventData extends DebugMonitorEventData {
55
public DebugMonitorEnterEventData(Object monitor, Thread thread, Object eventObject) {
56
super(monitor, thread, eventObject);
57
}
58
}
59
60
/*
61
* information about MonitorContendedEnteredEvent
62
*/
63
public static class DebugMonitorEnteredEventData extends DebugMonitorEventData {
64
public DebugMonitorEnteredEventData(Object monitor, Thread thread, Object eventObject) {
65
super(monitor, thread, eventObject);
66
}
67
}
68
69
/*
70
* information about MonitorWaitEvent
71
*/
72
public static class DebugMonitorWaitEventData extends DebugMonitorEventData {
73
public long timeout;
74
75
public DebugMonitorWaitEventData(Object monitor, Thread thread, long timeout, Object eventObject) {
76
super(monitor, thread, eventObject);
77
this.timeout = timeout;
78
}
79
}
80
81
/*
82
* information about MonitorWaitedEvent
83
*/
84
public static class DebugMonitorWaitedEventData extends DebugMonitorEventData {
85
public boolean timedout;
86
87
public DebugMonitorWaitedEventData(Object monitor, Thread thread, boolean timedout, Object eventObject) {
88
super(monitor, thread, eventObject);
89
this.timedout = timedout;
90
}
91
}
92
93
}
94
95