Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
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 (309)
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/SharedMemoryTransportService.java
/* * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.tools.jdi; import com.sun.jdi.*; import com.sun.jdi.connect.*; import com.sun.jdi.connect.spi.*; import java.io.IOException; import java.util.Map; import java.util.ResourceBundle; class SharedMemoryTransportService extends TransportService { private ResourceBundle messages = null; /** * The listener returned by startListening */ static class SharedMemoryListenKey extends ListenKey { long id; String name; SharedMemoryListenKey(long id, String name) { this.id = id; this.name = name; } long id() { return id; } void setId(long id) { this.id = id; } public String address() { return name; } public String toString() { return address(); } } SharedMemoryTransportService() { System.loadLibrary("dt_shmem"); initialize(); } public String name() { return "SharedMemory"; } public String defaultAddress() { return "javadebug"; } /** * Return localized description of this transport service */ public String description() { synchronized (this) { if (messages == null) { messages = ResourceBundle.getBundle("com.sun.tools.jdi.resources.jdi"); } } return messages.getString("memory_transportservice.description"); } public Capabilities capabilities() { return new SharedMemoryTransportServiceCapabilities(); } private native void initialize(); private native long startListening0(String address) throws IOException; private native long attach0(String address, long attachTimeout) throws IOException; private native void stopListening0(long id) throws IOException; private native long accept0(long id, long acceptTimeout) throws IOException; private native String name(long id) throws IOException; public Connection attach(String address, long attachTimeout, long handshakeTimeout) throws IOException { if (address == null) { throw new NullPointerException("address is null"); } long id = attach0(address, attachTimeout); SharedMemoryConnection conn = new SharedMemoryConnection(id); conn.handshake(handshakeTimeout); return conn; } public TransportService.ListenKey startListening(String address) throws IOException { if (address == null || address.length() == 0) { address = defaultAddress(); } long id = startListening0(address); return new SharedMemoryListenKey(id, name(id)); } public ListenKey startListening() throws IOException { return startListening(null); } public void stopListening(ListenKey listener) throws IOException { if (!(listener instanceof SharedMemoryListenKey)) { throw new IllegalArgumentException("Invalid listener"); } long id; SharedMemoryListenKey key = (SharedMemoryListenKey)listener; synchronized (key) { id = key.id(); if (id == 0) { throw new IllegalArgumentException("Invalid listener"); } // invalidate the id key.setId(0); } stopListening0(id); } public Connection accept(ListenKey listener, long acceptTimeout, long handshakeTimeout) throws IOException { if (!(listener instanceof SharedMemoryListenKey)) { throw new IllegalArgumentException("Invalid listener"); } long transportId; SharedMemoryListenKey key = (SharedMemoryListenKey)listener; synchronized (key) { transportId = key.id(); if (transportId == 0) { throw new IllegalArgumentException("Invalid listener"); } } // in theory another thread could call stopListening before // accept0 is called. In that case accept0 will try to accept // with an invalid "transport id" - this should result in an // IOException. long connectId = accept0(transportId, acceptTimeout); SharedMemoryConnection conn = new SharedMemoryConnection(connectId); conn.handshake(handshakeTimeout); return conn; } } class SharedMemoryTransportServiceCapabilities extends TransportService.Capabilities { public boolean supportsMultipleConnections() { return false; } public boolean supportsAttachTimeout() { return true; } public boolean supportsAcceptTimeout() { return true; } public boolean supportsHandshakeTimeout() { return false; } }
⏎ com/sun/tools/jdi/SharedMemoryTransportService.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, 63252👍, 0💬
Popular Posts:
GJT (Giant Java Tree) implementation of XML Pull Parser. JAR File Size and Download Location: File n...
Apache Log4j SLF4J Binding allows applications coded to the SLF4J API to use Log4j 2 as the implemen...
JDK 11 jdk.crypto.mscapi.jmod is the JMOD file for JDK 11 Crypto MSCAPI module. JDK 11 Crypto MSCAPI...
JDK 11 jdk.compiler.jmod is the JMOD file for JDK 11 Compiler tool, which can be invoked by the "jav...
JDK 11 jdk.scripting.nashorn.jm odis the JMOD file for JDK 11 Scripting Nashorn module. JDK 11 Scrip...