• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Export Word
    • Attachments
    • Page Information

    Loading...
  1. Dashboard
  2. Mission Control
  3. Main
  4. The JMC Agent
  5. Implementation Notes

Implementation Notes

  • Created by Marcus Hirt, last modified on Dec 05, 2018

Some notes on the implementation of the Agent.

JDK 9+ 

  • We may need to add to make the jdk.jfr module readable from the module of the instrumented class. We should probably get the module of the class loader class provided by the transformation method, and see if can read the jdk.jfr module, if not, fix the problem with Instrumentation#redefineModule

JDK 11+

  • We do no longer have Unsafe#defineClass to define the event classes on the fly. There is a workaround though, in jdk.internal.misc.Unsafe#defineClass. This solution, however, requires --add-exports java.base/jdk.internal.misc=ALL-UNNAMED but perhaps that is okay for now. 
    See https://bugs.openjdk.java.net/browse/JDK-8205386 for a possible replacement. 
Overview
Content Tools
ThemeBuilder
  • No labels

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.21
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 214, "requestCorrelationId": "05f52e065cc592c5"}