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

    Loading...
  1. Dashboard
  2. Loom
  3. Main
  4. Debugger Support

Page History

Versions Compared

Old Version 46

changes.mady.by.user Chris Plummer

Saved on Jul 06, 2022

compared with

New Version 47

changes.mady.by.user Chris Plummer

Saved on Jul 06, 2022

  • Previous Change: Difference between versions 45 and 46
  • Next Change: Difference between versions 47 and 48
  • View Page History

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Testing if target VM supports virtual threads

The following recommend way is temporary, to allow debuggers to distinguish JDK 17 EA builds from Loom EA builds.JDI VirtualMachine defines supportVirtualThreads() to test to check if the target VM supports virtual threads.The supportsVirtualThread boolean in the reply to the JDWP CapabilitiesNew command is the equivalentis version 19 or later. There is no way to determine if --enable-preview was set, but this is also unnecessary. The JDK 19 debug agent will still accept commands that are virtual thread specific, even if the JVM was not run with --enable-preview.

Not Supported

The following are not currently supported for virtual threads:

...

As a temporary solution to allow existing debuggers to work with virtual threads, the JDWP agent will track virtual threads so they can be enumerated for debuggers that want to enumerate all virtual threads. The options option that control controls this behavior areis:

Option Name and ValueDescriptionDefault
includevirtualthreads=y|n   List of all threads includes virtual threads as well as platform threadsn
notifyvthreads=y|nsend THREAD_START/END events for all virtual threads
y

...

Overview
Content Tools
ThemeBuilder

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": 356, "requestCorrelationId": "4b1d4caafe8fdea3"}