Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
JDK 11 jdk.jdi.jmod - JDI Tool
JDK 11 jdk.jdi.jmod is the JMOD file for JDK 11 JDI (Java Debug Interface) tool.
JDK 11 JDI tool compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.jdi.jmod.
JDK 11 JDI tool compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 JDI tool source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.jdi.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/tools/jdi/ThreadGroupReferenceImpl.java
/*
* Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.tools.jdi;
import java.util.Arrays;
import java.util.List;
import com.sun.jdi.ThreadGroupReference;
import com.sun.jdi.ThreadReference;
import com.sun.jdi.VirtualMachine;
public class ThreadGroupReferenceImpl extends ObjectReferenceImpl
implements ThreadGroupReference
{
// Cached components that cannot change
String name;
ThreadGroupReference parent;
boolean triedParent;
// This is cached only while the VM is suspended
private static class Cache extends ObjectReferenceImpl.Cache {
JDWP.ThreadGroupReference.Children kids = null;
}
protected ObjectReferenceImpl.Cache newCache() {
return new Cache();
}
ThreadGroupReferenceImpl(VirtualMachine aVm, long aRef) {
super(aVm, aRef);
vm.state().addListener(this);
}
protected String description() {
return "ThreadGroupReference " + uniqueID();
}
public String name() {
if (name == null) {
// Does not need synchronization, since worst-case
// static info is fetched twice (Thread group name
// cannot change)
try {
name = JDWP.ThreadGroupReference.Name.
process(vm, this).groupName;
} catch (JDWPException exc) {
throw exc.toJDIException();
}
}
return name;
}
public ThreadGroupReference parent() {
if (!triedParent) {
// Does not need synchronization, since worst-case
// static info is fetched twice (Thread group parent cannot
// change)
try {
parent = JDWP.ThreadGroupReference.Parent.
process(vm, this).parentGroup;
triedParent = true;
} catch (JDWPException exc) {
throw exc.toJDIException();
}
}
return parent;
}
public void suspend() {
for (ThreadReference thread : threads()) {
thread.suspend();
}
for (ThreadGroupReference threadGroup : threadGroups()) {
threadGroup.suspend();
}
}
public void resume() {
for (ThreadReference thread : threads()) {
thread.resume();
}
for (ThreadGroupReference threadGroup : threadGroups()) {
threadGroup.resume();
}
}
private JDWP.ThreadGroupReference.Children kids() {
JDWP.ThreadGroupReference.Children kids = null;
try {
Cache local = (Cache)getCache();
if (local != null) {
kids = local.kids;
}
if (kids == null) {
kids = JDWP.ThreadGroupReference.Children
.process(vm, this);
if (local != null) {
local.kids = kids;
if ((vm.traceFlags & VirtualMachine.TRACE_OBJREFS) != 0) {
vm.printTrace(description() +
" temporarily caching children ");
}
}
}
} catch (JDWPException exc) {
throw exc.toJDIException();
}
return kids;
}
public List<ThreadReference> threads() {
return Arrays.asList((ThreadReference[])kids().childThreads);
}
public List<ThreadGroupReference> threadGroups() {
return Arrays.asList((ThreadGroupReference[])kids().childGroups);
}
public String toString() {
return "instance of " + referenceType().name() +
"(name='" + name() + "', " + "id=" + uniqueID() + ")";
}
byte typeValueKey() {
return JDWP.Tag.THREAD_GROUP;
}
}
⏎ com/sun/tools/jdi/ThreadGroupReferenceImpl.java
Or download all of them as a single archive file:
File name: jdk.jdi-11.0.1-src.zip File size: 464844 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.jdwp.agent.jmod - JDWP Agent Module
2020-07-07, ≈174🔥, 0💬
Popular Posts:
What is the dom\ElementPrinter.java provided in the Apache Xerces package? I have Apache Xerces 2.11...
The Apache FontBox library is an open source Java tool to obtain low level information from font fil...
JDK 11 java.rmi.jmod is the JMOD file for JDK 11 RMI (Remote Method Invocation) module. JDK 11 RMI m...
How to read XML document with XML Schema validation from socket connections with the socket\DelayedI...
What is the dom\ElementPrinter.java provided in the Apache Xerces package? I have Apache Xerces 2.11...