Skip to content

Conversation

@alexmenkov
Copy link

@alexmenkov alexmenkov commented Dec 20, 2025

The fix resolves disabled warnings in debugger agent


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8374168: Resolve disabled warnings in JDWP agent (Sub-task - P4)

Reviewers without OpenJDK IDs

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28937/head:pull/28937
$ git checkout pull/28937

Update a local copy of the PR:
$ git checkout pull/28937
$ git pull https://git.openjdk.org/jdk.git pull/28937/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 28937

View PR using the GUI difftool:
$ git pr show -t 28937

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28937.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 20, 2025

👋 Welcome back amenkov! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Dec 20, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk
Copy link

openjdk bot commented Dec 20, 2025

@alexmenkov The following labels will be automatically applied to this pull request:

  • build
  • serviceability

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the rfr Pull request is ready for review label Dec 20, 2025
@mlbridge
Copy link

mlbridge bot commented Dec 20, 2025

Webrevs

Comment on lines +979 to +980
// PlatformThreadsFilter contains nothing useful
//PlatformThreadsFilter *filter = &FILTER(node, index).u.PlatformThreadsOnly;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can just delete this.

Comment on lines +2676 to +2678
if (error != JVMTI_ERROR_NONE) {
EXIT_ERROR(error, "cannot get current thread");
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about his one since it is a behavior change. For example, we have:

    jthread thread = threadControl_currentThread();
    if ((thread != NULL) && (!threadControl_isDebugThread(thread))) {
        threadControl_setPendingInterrupt(thread);
    }


/* To handle "format string is not a string literal" warning. */
#if !defined(_MSC_VER)
#define ATTRIBUTE_PRINTF(fmt, vargs) __attribute__((format(printf, fmt, vargs)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not ATTRIBUTE_FORMAT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants