Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings

2025-03-15 Thread Erik Joelsson
On Mon, 10 Mar 2025 15:38:45 GMT, Matthias Baesken wrote: > On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that > are most likely not needed any more and could be removed. make/modules/java.management/Lib.gmk line 33: > 31: ## Build libmanagement > 32: > #

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings

2025-03-15 Thread Matthias Baesken
On Mon, 10 Mar 2025 15:38:45 GMT, Matthias Baesken wrote: > On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that > are most likely not needed any more and could be removed. While at it I also cleaned up some unused variable issue. - PR Comment: https://git.

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v5]

2025-03-14 Thread Matthias Baesken
On Thu, 13 Mar 2025 17:41:28 GMT, Kevin Walls wrote: > Yes seems likely the same history for libverify, so should be good to do the > same update there. I created https://bugs.openjdk.org/browse/JDK-8352015 . - PR Comment: https://git.openjdk.org/jdk/pull/23966#issuecomment-272398

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v5]

2025-03-13 Thread Kevin Walls
On Wed, 12 Mar 2025 12:45:48 GMT, Matthias Baesken wrote: >> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that >> are most likely not needed any more and could be removed. > > Matthias Baesken has updated the pull request incrementally with one > additional commit sin

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v5]

2025-03-13 Thread Matthias Baesken
On Wed, 12 Mar 2025 12:45:48 GMT, Matthias Baesken wrote: >> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that >> are most likely not needed any more and could be removed. > > Matthias Baesken has updated the pull request incrementally with one > additional commit sin

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v5]

2025-03-13 Thread Matthias Baesken
On Wed, 12 Mar 2025 12:45:48 GMT, Matthias Baesken wrote: >> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that >> are most likely not needed any more and could be removed. > > Matthias Baesken has updated the pull request incrementally with one > additional commit sin

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v5]

2025-03-13 Thread Kevin Walls
On Wed, 12 Mar 2025 12:45:48 GMT, Matthias Baesken wrote: >> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that >> are most likely not needed any more and could be removed. > > Matthias Baesken has updated the pull request incrementally with one > additional commit sin

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v5]

2025-03-13 Thread Matthias Baesken
On Wed, 12 Mar 2025 12:45:48 GMT, Matthias Baesken wrote: >> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that >> are most likely not needed any more and could be removed. > > Matthias Baesken has updated the pull request incrementally with one > additional commit sin

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v5]

2025-03-12 Thread Magnus Ihse Bursie
On Wed, 12 Mar 2025 12:45:48 GMT, Matthias Baesken wrote: >> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that >> are most likely not needed any more and could be removed. > > Matthias Baesken has updated the pull request incrementally with one > additional commit sin

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v4]

2025-03-12 Thread Magnus Ihse Bursie
On Tue, 11 Mar 2025 09:07:40 GMT, Matthias Baesken wrote: >> My motivation was that the comment brings not much value because it just >> states the obvious. But if you like I can bring back the comment. > > I brought back the comment, maybe it is better to keep it because of > consistency. Tha

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v4]

2025-03-12 Thread Kevin Walls
On Wed, 12 Mar 2025 11:13:41 GMT, Magnus Ihse Bursie wrote: >> make/modules/java.management/Lib.gmk line 35: >> >>> 33: >>> 34: LIBMANAGEMENT_OPTIMIZATION := HIGH >>> 35: ifeq ($(call isTargetOs, linux)+$(COMPILE_WITH_DEBUG_SYMBOLS), >>> true+true) >> >> On removal of `ifeq ($(call isTargetOs

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v3]

2025-03-12 Thread Matthias Baesken
On Wed, 12 Mar 2025 11:15:01 GMT, Magnus Ihse Bursie wrote: >> Matthias Baesken has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Adjust jdk.management/Lib.gmk > > src/java.management/share/native/libmanagement/VMManagementImpl.c line 41:

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v5]

2025-03-12 Thread Matthias Baesken
> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that > are most likely not needed any more and could be removed. Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision: move code back in VMManagementImpl --

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v4]

2025-03-12 Thread Magnus Ihse Bursie
On Wed, 12 Mar 2025 11:15:02 GMT, Matthias Baesken wrote: >> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that >> are most likely not needed any more and could be removed. > > Matthias Baesken has updated the pull request incrementally with one > additional commit sin

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v4]

2025-03-12 Thread Matthias Baesken
> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that > are most likely not needed any more and could be removed. Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision: do not handle the unused variables stuff i

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v4]

2025-03-12 Thread Magnus Ihse Bursie
On Tue, 11 Mar 2025 13:18:55 GMT, Kevin Walls wrote: >> Matthias Baesken has updated the pull request incrementally with one >> additional commit since the last revision: >> >> do not handle the unused variables stuff in this change > > make/modules/java.management/Lib.gmk line 35: > >> 33:

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v3]

2025-03-12 Thread Matthias Baesken
On Tue, 11 Mar 2025 15:59:09 GMT, Erik Joelsson wrote: > I think what Kevin is after is having this explanation made clear in the bug > and PR description so that it's made clear what the change is and intends to > do. I changed the description in the JBS issue a bit. - PR Commen

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings

2025-03-11 Thread Matthias Baesken
On Mon, 10 Mar 2025 17:32:07 GMT, Erik Joelsson wrote: >> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that >> are most likely not needed any more and could be removed. > > make/modules/java.management/Lib.gmk line 33: > >> 31: ## Build libmanagement >> 32: >> ##

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v3]

2025-03-11 Thread Kevin Walls
On Tue, 11 Mar 2025 14:14:16 GMT, Matthias Baesken wrote: >> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that >> are most likely not needed any more and could be removed. > > Matthias Baesken has updated the pull request incrementally with one > additional commit sin

RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings

2025-03-11 Thread Matthias Baesken
On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that are most likely not needed any more and could be removed. - Commit messages: - JDK-8351542 Changes: https://git.openjdk.org/jdk/pull/23966/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23966&ran

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v2]

2025-03-11 Thread Kevin Walls
On Tue, 11 Mar 2025 09:04:59 GMT, Matthias Baesken wrote: >> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that >> are most likely not needed any more and could be removed. > > Matthias Baesken has updated the pull request incrementally with one > additional commit sin

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v2]

2025-03-11 Thread Matthias Baesken
On Tue, 11 Mar 2025 11:54:29 GMT, Kevin Walls wrote: > Is it worth making any change here? This was needed because I removed DISABLED_WARNINGS_gcc_VMManagementImpl.c while changing the makefile. - PR Review Comment: https://git.openjdk.org/jdk/pull/23966#discussion_r1989296776

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v3]

2025-03-11 Thread Erik Joelsson
On Tue, 11 Mar 2025 15:19:24 GMT, Matthias Baesken wrote: > > Was this always redundant, and does removing it make no change to current > > build options? > > If so, great, let's remove the useless makefile lines. > > There was a bit of discussion before in the thread > https://mail.openjdk.or

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v3]

2025-03-11 Thread Matthias Baesken
On Tue, 11 Mar 2025 15:04:58 GMT, Kevin Walls wrote: > Was this always redundant, and does removing it make no change to current > build options? > If so, great, let's remove the useless makefile lines. There was a bit of discussion before in the thread https://mail.openjdk.org/pipermail/build

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v3]

2025-03-11 Thread Matthias Baesken
On Tue, 11 Mar 2025 15:04:58 GMT, Kevin Walls wrote: > Remove a compiler directive to avoid unused var warnings, but change the code > to make it imply a method has no return value when actually it returns a > value: I think you could argue this either way, so I asked if it's really > worthwhi

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v3]

2025-03-11 Thread Kevin Walls
On Tue, 11 Mar 2025 14:14:16 GMT, Matthias Baesken wrote: >> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that >> are most likely not needed any more and could be removed. > > Matthias Baesken has updated the pull request incrementally with one > additional commit sin

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v3]

2025-03-11 Thread Matthias Baesken
> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that > are most likely not needed any more and could be removed. Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision: Adjust jdk.management/Lib.gmk ---

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v2]

2025-03-11 Thread Matthias Baesken
On Tue, 11 Mar 2025 13:36:42 GMT, Matthias Baesken wrote: >> src/java.management/share/native/libmanagement/VMManagementImpl.c line 63: >> >>> 61: { >>> 62: jmmOptionalSupport mos; >>> 63: jmm_interface->GetOptionalSupport(env, &mos); >> >> Is it worth making any change here? >> >> We

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v2]

2025-03-11 Thread Matthias Baesken
On Tue, 11 Mar 2025 13:18:55 GMT, Kevin Walls wrote: > Windows fastdebug and release I just checked and saw -O1, I'm not sure why > that is. The change touches only Linux so Windows stays as it is. > We do the same thing in make/modules/jdk.management/Lib.gmk so both these > management locati

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v2]

2025-03-11 Thread Kevin Walls
On Tue, 11 Mar 2025 09:04:59 GMT, Matthias Baesken wrote: >> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that >> are most likely not needed any more and could be removed. > > Matthias Baesken has updated the pull request incrementally with one > additional commit sin

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v2]

2025-03-11 Thread Matthias Baesken
On Mon, 10 Mar 2025 18:51:53 GMT, Matthias Baesken wrote: >> make/modules/java.management/Lib.gmk line 33: >> >>> 31: ## Build libmanagement >>> 32: >>> >>> 33: >> >> Why remove the comment header. This pattern i

Re: RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v2]

2025-03-11 Thread Matthias Baesken
> On Linux there are some special settings for LIBMANAGEMENT_OPTIMIZATION that > are most likely not needed any more and could be removed. Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision: Bring back comment - Changes