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 17 jdk.incubator.foreign.jmod - JDK Incubator Foreign
JDK 17 jdk.incubator.foreign.jmod is the JMOD file for JDK 17 HTTP Server module.
JDK 17 Incubator Foreign module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.incubator.foreign.jmod.
JDK 17 Incubator Foreign module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Incubator Foreign module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.incubator.foreign.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/internal/foreign/ConfinedScope.java
/* * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.internal.foreign; import jdk.incubator.foreign.ResourceScope; import jdk.internal.vm.annotation.ForceInline; import java.lang.ref.Cleaner; import java.lang.ref.Reference; /** * A confined scope, which features an owner thread. The liveness check features an additional * confinement check - that is, calling any operation on this scope from a thread other than the * owner thread will result in an exception. Because of this restriction, checking the liveness bit * can be performed in plain mode. */ final class ConfinedScope extends ResourceScopeImpl { private boolean closed; // = false private int lockCount = 0; private final Thread owner; public ConfinedScope(Thread owner, Cleaner cleaner) { super(cleaner, new ConfinedResourceList()); this.owner = owner; } @ForceInline public final void checkValidState() { if (owner != Thread.currentThread()) { throw new IllegalStateException("Attempted access outside owning thread"); } if (closed) { throw new IllegalStateException("Already closed"); } } @Override public boolean isAlive() { return !closed; } @Override public HandleImpl acquire() { checkValidState(); lockCount++; return new ConfinedHandle(); } void justClose() { this.checkValidState(); if (lockCount == 0) { closed = true; } else { throw new IllegalStateException("Scope is acquired by " + lockCount + " locks"); } } @Override public Thread ownerThread() { return owner; } /** * A confined resource list; no races are possible here. */ static final class ConfinedResourceList extends ResourceList { @Override void add(ResourceCleanup cleanup) { if (fst != ResourceCleanup.CLOSED_LIST) { cleanup.next = fst; fst = cleanup; } else { throw new IllegalStateException("Already closed!"); } } @Override void cleanup() { if (fst != ResourceCleanup.CLOSED_LIST) { ResourceCleanup prev = fst; fst = ResourceCleanup.CLOSED_LIST; cleanup(prev); } else { throw new IllegalStateException("Attempt to cleanup an already closed resource list"); } } } /** * A confined resource scope handle; no races are possible here. */ final class ConfinedHandle implements HandleImpl { boolean released = false; @Override public ResourceScopeImpl scope() { return ConfinedScope.this; } @Override public void release() { checkValidState(); // thread check if (!released) { released = true; lockCount--; } } } }
⏎ jdk/internal/foreign/ConfinedScope.java
Or download all of them as a single archive file:
File name: jdk.incubator.foreign-17.0.5-src.zip File size: 168767 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.incubator.vector.jmod - JDK Incubator Vector
2023-10-04, 5366👍, 0💬
Popular Posts:
JDK 11 jdk.aot.jmod is the JMOD file for JDK 11 Ahead-of-Time (AOT) Compiler module. JDK 11 AOT Comp...
How to download and install Apache XMLBeans Source Package? The source package contains Java source ...
The Apache FontBox library is an open source Java tool to obtain low level information from font fil...
How to download and install JDK (Java Development Kit) 1.4? If you want to write Java applications, ...
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....