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 java.base.jmod - Base Module
JDK 17 java.base.jmod is the JMOD file for JDK 17 Base module.
JDK 17 Base module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.base.jmod.
JDK 17 Base module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Base module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.base.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ java/lang/invoke/MemoryAccessVarHandleCharHelper.java
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package java.lang.invoke; import jdk.internal.access.foreign.MemorySegmentProxy; import jdk.internal.misc.ScopedMemoryAccess; import jdk.internal.vm.annotation.ForceInline; import java.lang.ref.Reference; import java.util.Objects; import static java.lang.invoke.MethodHandleStatics.UNSAFE; // -- This file was mechanically generated: Do not edit! -- // final class MemoryAccessVarHandleCharHelper extends MemoryAccessVarHandleBase { static final boolean BE = UNSAFE.isBigEndian(); static final ScopedMemoryAccess SCOPED_MEMORY_ACCESS = ScopedMemoryAccess.getScopedMemoryAccess(); static final int VM_ALIGN = Character.BYTES - 1; static final VarForm FORM = new VarForm(MemoryAccessVarHandleCharHelper.class, MemorySegmentProxy.class, char.class, long.class); MemoryAccessVarHandleCharHelper(boolean skipAlignmentMaskCheck, boolean be, long length, long alignmentMask, boolean exact) { super(FORM, skipAlignmentMaskCheck, be, length, alignmentMask, exact); } @Override final MethodType accessModeTypeUncached(VarHandle.AccessType accessType) { return accessType.accessModeType(MemorySegmentProxy.class, char.class, long.class); } @Override public MemoryAccessVarHandleCharHelper withInvokeExactBehavior() { return hasInvokeExactBehavior() ? this : new MemoryAccessVarHandleCharHelper(skipAlignmentMaskCheck, be, length, alignmentMask, true); } @Override public MemoryAccessVarHandleCharHelper withInvokeBehavior() { return !hasInvokeExactBehavior() ? this : new MemoryAccessVarHandleCharHelper(skipAlignmentMaskCheck, be, length, alignmentMask, false); } @ForceInline static char convEndian(boolean big, char n) { return big == BE ? n : Character.reverseBytes(n); } @ForceInline static MemorySegmentProxy checkAddress(Object obb, long offset, long length, boolean ro) { MemorySegmentProxy oo = (MemorySegmentProxy)Objects.requireNonNull(obb); oo.checkAccess(offset, length, ro); return oo; } @ForceInline static long offset(boolean skipAlignmentMaskCheck, MemorySegmentProxy bb, long offset, long alignmentMask) { long address = offsetNoVMAlignCheck(skipAlignmentMaskCheck, bb, offset, alignmentMask); if ((address & VM_ALIGN) != 0) { throw MemoryAccessVarHandleBase.newIllegalStateExceptionForMisalignedAccess(address); } return address; } @ForceInline static long offsetNoVMAlignCheck(boolean skipAlignmentMaskCheck, MemorySegmentProxy bb, long offset, long alignmentMask) { long base = bb.unsafeGetOffset(); long address = base + offset; if (skipAlignmentMaskCheck) { //note: the offset portion has already been aligned-checked, by construction if ((base & alignmentMask) != 0) { throw MemoryAccessVarHandleBase.newIllegalStateExceptionForMisalignedAccess(address); } } else { if ((address & alignmentMask) != 0) { throw MemoryAccessVarHandleBase.newIllegalStateExceptionForMisalignedAccess(address); } } return address; } @ForceInline static char get(VarHandle ob, Object obb, long base) { MemoryAccessVarHandleBase handle = (MemoryAccessVarHandleBase)ob; MemorySegmentProxy bb = checkAddress(obb, base, handle.length, true); return SCOPED_MEMORY_ACCESS.getCharUnaligned(bb.scope(), bb.unsafeGetBase(), offsetNoVMAlignCheck(handle.skipAlignmentMaskCheck, bb, base, handle.alignmentMask), handle.be); } @ForceInline static void set(VarHandle ob, Object obb, long base, char value) { MemoryAccessVarHandleBase handle = (MemoryAccessVarHandleBase)ob; MemorySegmentProxy bb = checkAddress(obb, base, handle.length, false); SCOPED_MEMORY_ACCESS.putCharUnaligned(bb.scope(), bb.unsafeGetBase(), offsetNoVMAlignCheck(handle.skipAlignmentMaskCheck, bb, base, handle.alignmentMask), value, handle.be); } @ForceInline static char getVolatile(VarHandle ob, Object obb, long base) { MemoryAccessVarHandleBase handle = (MemoryAccessVarHandleBase)ob; MemorySegmentProxy bb = checkAddress(obb, base, handle.length, true); return convEndian(handle.be, SCOPED_MEMORY_ACCESS.getCharVolatile(bb.scope(), bb.unsafeGetBase(), offset(handle.skipAlignmentMaskCheck, bb, base, handle.alignmentMask))); } @ForceInline static void setVolatile(VarHandle ob, Object obb, long base, char value) { MemoryAccessVarHandleBase handle = (MemoryAccessVarHandleBase)ob; MemorySegmentProxy bb = checkAddress(obb, base, handle.length, false); SCOPED_MEMORY_ACCESS.putCharVolatile(bb.scope(), bb.unsafeGetBase(), offset(handle.skipAlignmentMaskCheck, bb, base, handle.alignmentMask), convEndian(handle.be, value)); } @ForceInline static char getAcquire(VarHandle ob, Object obb, long base) { MemoryAccessVarHandleBase handle = (MemoryAccessVarHandleBase)ob; MemorySegmentProxy bb = checkAddress(obb, base, handle.length, true); return convEndian(handle.be, SCOPED_MEMORY_ACCESS.getCharAcquire(bb.scope(), bb.unsafeGetBase(), offset(handle.skipAlignmentMaskCheck, bb, base, handle.alignmentMask))); } @ForceInline static void setRelease(VarHandle ob, Object obb, long base, char value) { MemoryAccessVarHandleBase handle = (MemoryAccessVarHandleBase)ob; MemorySegmentProxy bb = checkAddress(obb, base, handle.length, false); SCOPED_MEMORY_ACCESS.putCharRelease(bb.scope(), bb.unsafeGetBase(), offset(handle.skipAlignmentMaskCheck, bb, base, handle.alignmentMask), convEndian(handle.be, value)); } @ForceInline static char getOpaque(VarHandle ob, Object obb, long base) { MemoryAccessVarHandleBase handle = (MemoryAccessVarHandleBase)ob; MemorySegmentProxy bb = checkAddress(obb, base, handle.length, true); return convEndian(handle.be, SCOPED_MEMORY_ACCESS.getCharOpaque(bb.scope(), bb.unsafeGetBase(), offset(handle.skipAlignmentMaskCheck, bb, base, handle.alignmentMask))); } @ForceInline static void setOpaque(VarHandle ob, Object obb, long base, char value) { MemoryAccessVarHandleBase handle = (MemoryAccessVarHandleBase)ob; MemorySegmentProxy bb = checkAddress(obb, base, handle.length, false); SCOPED_MEMORY_ACCESS.putCharOpaque(bb.scope(), bb.unsafeGetBase(), offset(handle.skipAlignmentMaskCheck, bb, base, handle.alignmentMask), convEndian(handle.be, value)); } }
⏎ java/lang/invoke/MemoryAccessVarHandleCharHelper.java
Or download all of them as a single archive file:
File name: java.base-17.0.5-src.zip File size: 8883851 bytes Release date: 2022-09-13 Download
2023-09-26, 93973👍, 1💬
Popular Posts:
Snappy-Java is a Java port of the "snappy", a fast C++ compresser/decompresser developed by Google. ...
JDOM provides a solution for using XML from Java that is as simple as Java itself. There is no compe...
SLF4J API is a simple API that allows to plug in any desired logging library at deployment time. Her...
Apache ZooKeeper is an open-source server which enables highly reliable distributed coordination. Ap...
What JAR files are required to run dom\Counter.java provided in the Apache Xerces package? You can f...