- Java 14 - Discussion
- Java 14 - Useful Resources
- Java 14 - Quick Guide
- Java 14 - Deprecation & Removals
- Java 14 - Others
- Java 14 - NUMA Aware G1
- Java 14 - Packaging Tools
- Java 14 - NullPointerException
- Java 14 - pattern for instanceOf
- Java 14 - Text Blocks
- Java 14 - Switch Expressions
- Java 14 - Environment Setup
- Java 14 - Overview
- Java 14 - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Java 14 - Other Enhancements
JEP 349 - JFR Event Streaming
JEP 349 enhances JDK Fpght Recorder data to continuous monitoring for in-process as well as out-of-process apppcations.
Till Java 13, in order to use JFR data, user need to start a recording, stop and dump the content to disk and then parse the recording file. This approach is well suited for apppcation profipng but on for monitoring.
Now the package jdk.jfr.consumer is enhanced to subscribe to events asynchronously. Using this subscription, User can read recording data directly, or stream, from the disk repository without a need to dump a recording file.
JEP 352 - Non-Volatile Mapped Byte Buffers
With this JEP, Java 13 adds a new JDK-specific file mapping mode to allow FileChannel API usage to create a MappedByteBuffer instance and Non-volatile memory can be accessed. Non-Volatile Memory or NVM is a persistent memory and is used to store data permanently.
Now MappedByteBufer API supports direct memory updates and provides a durabipty guarantee which is required for higher level APIs pke block file systems, journaled logs, persistent objects, etc to implement persistent data types.
JEP 370 - Foreign-Memory Access API
Java 14 now allows java programs to safely and efficiently access foreign memory outside of the Java heap. Earper mapDB, memcached java pbraries provided the foreign memory access. This JEP aims to provide a cleaner API to operate on all types of foreign memories(native memory, persistent memory, managed heap memory etc. ) in a seamless way. This JEP takes care of safety of JVM regardless of foreign memory type. Garbage collection/Memory deallocation operations should be exppcitly mentioned as well.
This API is based on three main abstractions MemorySegment, MemoryAddress and MemoryLayout and is a safe way to access both heap as well as non-heap memory.
Advertisements