Searched refs:monitors (Results 1 - 25 of 50) sorted by relevance

12

/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/gui/
H A DMonitorListModel.java43 private final List<String> monitors = new ArrayList<String>(); field in class:MonitorListModel
56 return monitors.get(index);
61 return monitors.size();
65 monitors.add(expr);
66 int newIndex = monitors.size()-1; // order important
71 int index = monitors.indexOf(expr);
76 monitors.remove(index);
80 public List<String> monitors() { method in class:MonitorListModel
81 return Collections.unmodifiableList(monitors);
85 return monitors()
[all...]
H A DJDBMenuBar.java164 List monitors = env.getMonitorListModel().monitors();
168 monitors.toArray(),
169 monitors.get(monitors.size()-1));
/openjdk7/hotspot/src/share/vm/runtime/
H A DmonitorChunk.hpp30 // Data structure for holding monitors for one activation during
37 BasicObjectLock* monitors() const { return _monitors; } function in class:MonitorChunk
51 // Returns the number of monitors
55 BasicObjectLock* at(int index) { assert(index >= 0 && index < number_of_monitors(), "out of bounds check"); return &monitors()[index]; }
61 // Tells whether the addr point into the monitors.
62 bool contains(void* addr) const { return (addr >= (void*) monitors()) && (addr < (void*) (monitors() + number_of_monitors())); }
H A DmonitorChunk.cpp38 FreeHeap(monitors());
H A Dvframe_hp.cpp195 GrowableArray<MonitorInfo*>* compiledVFrame::monitors() const { function in class:compiledVFrame
207 GrowableArray<MonitorInfo*> *monitors = new GrowableArray<MonitorInfo*>(1); local
212 monitors->push(info);
213 return monitors;
215 GrowableArray<MonitorValue*>* monitors = scope()->monitors(); local
216 if (monitors == NULL) {
219 GrowableArray<MonitorInfo*>* result = new GrowableArray<MonitorInfo*>(monitors->length());
220 for (int index = 0; index < monitors->length(); index++) {
221 MonitorValue* mv = monitors
[all...]
H A DbiasedLocking.cpp125 GrowableArray<MonitorInfo*> *monitors = vf->monitors(); local
126 if (monitors != NULL) {
127 int len = monitors->length();
128 // Walk monitors youngest to oldest
130 MonitorInfo* mon_info = monitors->at(i);
433 // Walk the thread list clearing out the cached monitors
687 // monitors in a prepass and, if they are biased, preserve their
699 GrowableArray<MonitorInfo*> *monitors = vf->monitors(); local
[all...]
/openjdk7/hotspot/src/share/vm/prims/
H A DjvmtiRawMonitor.hpp64 // Onload pending raw monitors
73 inline static GrowableArray<JvmtiRawMonitor*>* monitors() { return _monitors; } function in class:JvmtiPendingMonitors
76 delete monitors();
81 monitors()->append(monitor);
85 return monitors()->length();
89 while (monitors()->contains(monitor)) {
90 monitors()->remove(monitor);
96 if (monitors()->contains(monitor)) {
97 monitors()->remove(monitor);
/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/
H A DPerfDataBufferImpl.java53 protected Map<String, Monitor> monitors; field in class:PerfDataBufferImpl
82 this.monitors = new TreeMap<String, Monitor>();
118 if (monitors.isEmpty()) {
119 buildMonitorMap(monitors);
209 m = (Monitor)monitors.get(alias);
240 if (monitors.isEmpty()) {
241 buildMonitorMap(monitors);
246 m = monitors.get(name);
248 // not found - load any new monitors, and try again.
249 getNewMonitors(monitors);
[all...]
/openjdk7/jdk/test/com/sun/jdi/
H A DMonitorFrameInfo.java74 List monitors; field in class:MonitorFrameInfo
120 System.out.println("Get monitors");
121 monitors = mainThread.ownedMonitorsAndFrames();
122 if (monitors.size() != expectedCount) {
123 failure("monitors count is not equal to expected count");
126 for (int j=0; j < monitors.size(); j++) {
127 mon = (MonitorInfo)monitors.get(j);
152 System.out.println("can not get monitors frame info");
/openjdk7/jdk/src/solaris/sample/dtrace/hotspot/
H A Dmonitors.d38 * 1. monitors.d -c "java ..."
39 * 2. monitors.d -p JAVA_PID
65 SAMPLE_NAME = "hotspot monitors tracing";
124 monitors[arg1] = self->class_name;
128 threads[arg0], arg1, monitors[arg1]);
138 threads[arg0], arg1, monitors[arg1]);
/openjdk7/hotspot/src/share/vm/code/
H A DdebugInfoRec.hpp98 // by add_non_safepoint, and the locals, expressions, and monitors
108 DebugToken* monitors = NULL);
120 DebugToken* create_monitor_values(GrowableArray<MonitorValue*>* monitors);
192 int serialize_monitor_values(GrowableArray<MonitorValue*>* monitors);
H A DdebugInfoRec.cpp175 int DebugInformationRecorder::serialize_monitor_values(GrowableArray<MonitorValue*>* monitors) { argument
176 if (monitors == NULL || monitors->is_empty()) return DebugInformationRecorder::serialized_null;
179 stream()->write_int(monitors->length());
180 for (int index = 0; index < monitors->length(); index++) {
181 monitors->at(index)->write_on(stream());
290 DebugToken* monitors) {
317 // serialize the locals/expressions/monitors
320 stream()->write_int((intptr_t) monitors);
387 DebugToken* DebugInformationRecorder::create_monitor_values(GrowableArray<MonitorValue*>* monitors) { argument
282 describe_scope(int pc_offset, ciMethod* method, int bci, bool reexecute, bool is_method_handle_invoke, bool return_oop, DebugToken* locals, DebugToken* expressions, DebugToken* monitors) argument
[all...]
H A DscopeDesc.hpp78 GrowableArray<MonitorValue*>* monitors();
/openjdk7/jdk/test/java/lang/management/ThreadMXBean/
H A DLockingThread.java29 * - a stack frame acquires one or more monitors
125 MonitorInfo[] monitors = info.getLockedMonitors();
126 if (monitors.length != numOwnedMonitors) {
128 throw new RuntimeException("Number of locked monitors = " +
129 monitors.length +
134 for (MonitorInfo m : monitors) {
144 checkMonitor(e.getKey(), l, monitors);
218 void checkMonitor(String methodName, Lock l, MonitorInfo[] monitors) { argument
221 for (MonitorInfo m : monitors) {
H A DSynchronizerLockingThread.java28 * monitors.
129 MonitorInfo[] monitors = info.getLockedMonitors();
130 if (monitors.length != numOwnedMonitors) {
132 throw new RuntimeException("Number of locked monitors = " +
133 monitors.length +
138 for (MonitorInfo m : monitors) {
148 checkMonitor(e.getKey(), l, monitors);
235 void checkMonitor(String methodName, Lock l, MonitorInfo[] monitors) { argument
238 for (MonitorInfo m : monitors) {
H A DMyOwnSynchronizer.java68 MonitorInfo[] monitors = ti.getLockedMonitors();
69 if (monitors.length != 0) {
71 " has non-empty locked monitors = " + monitors.length);
88 " has non-empty locked monitors = " +
H A DThreadDump.java54 MonitorInfo[] monitors = ti.getLockedMonitors();
59 for (MonitorInfo mi : monitors) {
/openjdk7/jdk/src/share/demo/jvmti/hprof/
H A Dhprof_monitor.c45 * Two monitors with the same trace and signature will be treated
70 MonitorIndex *monitors; member in struct:IterateInfo
163 iterate->monitors[iterate->count++] = index;
265 iterate.monitors = HPROF_MALLOC(n_entries*(int)sizeof(MonitorIndex));
266 (void)memset(iterate.monitors, 0, n_entries*(int)sizeof(MonitorIndex));
276 qsort(iterate.monitors, n_entries, sizeof(MonitorIndex),
287 index = iterate.monitors[i];
294 iterate.monitors[n_items++] = index;
314 index = iterate.monitors[i];
330 HPROF_FREE(iterate.monitors);
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/
H A DCompiledVFrame.java131 List monitors = getScope().getMonitors();
132 if (monitors == null) {
135 List result = new ArrayList(monitors.size());
136 for (int i = 0; i < monitors.size(); i++) {
137 MonitorValue mv = (MonitorValue) monitors.get(i);
/openjdk7/jdk/src/share/demo/management/FullThreadDump/
H A DThreadMonitor.java145 MonitorInfo[] monitors = ti.getLockedMonitors();
149 for (MonitorInfo mi : monitors) {
179 MonitorInfo[] monitors = ti.getLockedMonitors();
180 System.out.println(INDENT + "Locked monitors: count = " + monitors.length);
181 for (MonitorInfo mi : monitors) {
/openjdk7/hotspot/src/cpu/sparc/vm/
H A Dframe_sparc.hpp55 // [monitors ]
57 // [monitors ] <-- Lmonitors (same as Llocals + 6*4 if none)
86 // Lmonitors the base pointer for accessing active monitors
281 // monitors:
286 void interpreter_frame_set_monitors(BasicObjectLock* monitors) { *interpreter_frame_monitors_addr() = monitors; } argument
/openjdk7/jdk/src/share/back/
H A DThreadReferenceImpl.c372 jobject *monitors = NULL; local
375 (gdata->jvmti, thread, &count, &monitors);
382 jobject monitor = monitors[i];
387 if (monitors != NULL)
388 jvmtiDeallocate(monitors);
543 jvmtiMonitorStackDepthInfo *monitors=NULL; local
546 (gdata->jvmti, thread, &count, &monitors);
554 jobject monitor = monitors[i].monitor;
557 (void)outStream_writeInt(out,monitors[i].stack_depth);
560 if (monitors !
[all...]
/openjdk7/jdk/test/java/lang/management/ManagementFactory/
H A DThreadMXBeanProxy.java132 MonitorInfo[] monitors = info.getLockedMonitors();
133 if (monitors.length != OWNED_MONITORS) {
134 throw new RuntimeException("Number of locked monitors = " +
135 monitors.length +
138 MonitorInfo m = monitors[0];
/openjdk7/jdk/make/mksample/dtrace/
H A DMakefile55 $(SAMPLE_DST_DIR)/hotspot/monitors.d \
/openjdk7/jdk/src/share/classes/java/lang/management/
H A DThreadInfo.java57 * <li>List of object monitors locked by the thread.</li>
150 * @param lockedMonitors List of locked monitors
157 Object[] monitors,
160 int numMonitors = (monitors == null ? 0 : monitors.length);
167 Object lock = monitors[i];
213 * @param lockedMonitors List of locked monitors
811 * the object monitors locked by the thread.
153 ThreadInfo(Thread t, int state, Object lockObj, Thread lockOwner, long blockedCount, long blockedTime, long waitedCount, long waitedTime, StackTraceElement[] stackTrace, Object[] monitors, int[] stackDepths, Object[] synchronizers) argument

Completed in 288 milliseconds

12