Re: RFR: JDK-8298908: Instrument Metaspace for ASan [v2]

2023-01-09 Thread David Holmes
On Wed, 4 Jan 2023 06:22:11 GMT, David Holmes wrote: >> Justin King has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Exclude more zapping when ASan is in use >> >> Signed-off-by: Justin King > > This doesn't look "too terrible",

[jdk20] Integrated: 8299693: Change to Xcode12.4+1.1 devkit for building on macOS at Oracle

2023-01-09 Thread Mikael Vidstedt
On Mon, 9 Jan 2023 22:26:20 GMT, Mikael Vidstedt wrote: > This pull request contains a clean backport of commit > [4b6809b9](https://github.com/openjdk/jdk/commit/4b6809b94a09871712df7a1c51b7192adbe2093b) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. > > The commit being

Re: [jdk20] RFR: 8299693: Change to Xcode12.4+1.1 devkit for building on macOS at Oracle

2023-01-09 Thread Erik Joelsson
On Mon, 9 Jan 2023 22:26:20 GMT, Mikael Vidstedt wrote: > This pull request contains a clean backport of commit > [4b6809b9](https://github.com/openjdk/jdk/commit/4b6809b94a09871712df7a1c51b7192adbe2093b) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. > > The commit being

Re: RFR: 8287873: Add test for using -XX:+AutoCreateSharedArchive with different JDK versions [v5]

2023-01-09 Thread Ioi Lam
On Fri, 6 Jan 2023 22:23:35 GMT, Matias Saavedra Silva wrote: >> This is an enhancement of the test case in >> [JDK-8296754](https://bugs.openjdk.org/browse/JDK-8296754), which tests >> against an archive created by the "boot JDK", which is usually set as the >> previous official JDK release

[jdk20] RFR: 8299693: Change to Xcode12.4+1.1 devkit for building on macOS at Oracle

2023-01-09 Thread Mikael Vidstedt
This pull request contains a clean backport of commit [4b6809b9](https://github.com/openjdk/jdk/commit/4b6809b94a09871712df7a1c51b7192adbe2093b) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. The commit being backported was authored by Mikael Vidstedt on 5 Jan 2023 and was

Re: RFR: 8299811: SHIFT_JIS compatible charsets should be in java.base module on Linux platform

2023-01-09 Thread Naoto Sato
On Mon, 9 Jan 2023 17:28:20 GMT, Ichiroh Takiguchi wrote: > On Japanese environment, following SHIFT_JIS compatible charsets are there: > * PCK (x-PCK) > * MS932 (windows-31j) > * IBM943C (x-IBM943C) > > According to make/data/charsetmapping/charsets, > PCK and MS932 are independent charset

Re: RFR: 8299789: Compilation of gtest causes build to fail if runtime libraries are in different dirs

2023-01-09 Thread Erik Joelsson
On Mon, 9 Jan 2023 09:18:52 GMT, Sergey Bylokhov wrote: > The `GtestImage.gmk` is updated to use separate macro calls in case the > runtime libraries are not in the same directory. Thanks for fixing this! - Marked as reviewed by erikj (Reviewer). PR:

RFR: 8299811: SHIFT_JIS compatible charsets should be in java.base module on Linux platform

2023-01-09 Thread Ichiroh Takiguchi
On Japanese environment, following SHIFT_JIS compatible charsets are there: * PCK (x-PCK) * MS932 (windows-31j) * IBM943C (x-IBM943C) According to make/data/charsetmapping/charsets, PCK and MS932 are independent charset and have no dependencies on others. On RHEL8, SHIFT_JIS encoding is

Re: RFR: JDK-8298908: Instrument Metaspace for ASan [v2]

2023-01-09 Thread Justin King
On Wed, 4 Jan 2023 06:22:11 GMT, David Holmes wrote: >> Justin King has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Exclude more zapping when ASan is in use >> >> Signed-off-by: Justin King > > This doesn't look "too terrible",

Re: RFR: JDK-8298908: Instrument Metaspace for ASan [v6]

2023-01-09 Thread Justin King
On Mon, 9 Jan 2023 08:08:28 GMT, Thomas Stuefe wrote: > Metaspace changes mostly good. Do the gtests pass? Especially the Metaspace > fence tests? You need to execute them via the jtreg wrapper > (test/hotspot/jtreg/gtest) - these wrappers execute the googletest suite with > a number of

Re: RFR: JDK-8298908: Instrument Metaspace for ASan [v10]

2023-01-09 Thread Justin King
> This change instruments Metaspace for ASan. Metaspace allocates memory using > `mmap`/`munmap` which ASan is not aware of. Fortunately ASan supports > applications [manually poisoning/unpoisoning > memory](https://github.com/google/sanitizers/wiki/AddressSanitizerManualPoisoning). > ASan is

RFR: 8299789: Compilation of gtest causes build to fail if runtime libraries are in different dirs

2023-01-09 Thread Sergey Bylokhov
The `GtestImage.gmk` is updated to use separate macro calls in case the runtime libraries are not in the same directory. - Commit messages: - 8299789: Compilation of gtest causes build to fail if runtime libraries are in different dirs Changes:

Re: RFR: JDK-8298908: Instrument Metaspace for ASan [v9]

2023-01-09 Thread Justin King
> This change instruments Metaspace for ASan. Metaspace allocates memory using > `mmap`/`munmap` which ASan is not aware of. Fortunately ASan supports > applications [manually poisoning/unpoisoning > memory](https://github.com/google/sanitizers/wiki/AddressSanitizerManualPoisoning). > ASan is

Re: RFR: JDK-8298908: Instrument Metaspace for ASan [v6]

2023-01-09 Thread Justin King
On Mon, 9 Jan 2023 07:39:03 GMT, Thomas Stuefe wrote: >> Justin King has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Use -fno-common as suggested by ASan docs >> >> Signed-off-by: Justin King > >

Re: RFR: JDK-8298908: Instrument Metaspace for ASan [v7]

2023-01-09 Thread Thomas Stuefe
On Mon, 9 Jan 2023 15:57:53 GMT, Justin King wrote: >> This change instruments Metaspace for ASan. Metaspace allocates memory using >> `mmap`/`munmap` which ASan is not aware of. Fortunately ASan supports >> applications [manually poisoning/unpoisoning >>

Re: RFR: JDK-8298908: Instrument Metaspace for ASan [v8]

2023-01-09 Thread Justin King
> This change instruments Metaspace for ASan. Metaspace allocates memory using > `mmap`/`munmap` which ASan is not aware of. Fortunately ASan supports > applications [manually poisoning/unpoisoning > memory](https://github.com/google/sanitizers/wiki/AddressSanitizerManualPoisoning). > ASan is

Re: RFR: JDK-8298908: Instrument Metaspace for ASan [v7]

2023-01-09 Thread Justin King
> This change instruments Metaspace for ASan. Metaspace allocates memory using > `mmap`/`munmap` which ASan is not aware of. Fortunately ASan supports > applications [manually poisoning/unpoisoning > memory](https://github.com/google/sanitizers/wiki/AddressSanitizerManualPoisoning). > ASan is

Integrated: JDK-8299757: Update JCov version to 3.0.14

2023-01-09 Thread Alexandre Iline
On Fri, 6 Jan 2023 21:37:35 GMT, Alexandre Iline wrote: > Update JCov version to 3.0.14 This pull request has now been integrated. Changeset: bfd59714 Author:Alexandre Iline URL: https://git.openjdk.org/jdk/commit/bfd597142945bf87cefe320371b7648d44c6f916 Stats: 1 line in 1 file

Re: RFR: JDK-8298908: Instrument Metaspace for ASan [v2]

2023-01-09 Thread Justin King
On Mon, 9 Jan 2023 08:05:47 GMT, Thomas Stuefe wrote: >> Ah I see. > > I like this, but would compilers not complain about unused statements? I don't believe so, at least not based on current options. Other projects use similar tricks, like ABSL_DCHECK from Abseil which short circuits

Re: RFR: JDK-8299757: Update JCov version to 3.0.14

2023-01-09 Thread Alexandre Iline
On Sat, 7 Jan 2023 08:29:26 GMT, Sergey Bylokhov wrote: > Just a curious, is it possible to release the jcov build on the related jcov > GitHub page? This would be a question to @lkuskov - PR: https://git.openjdk.org/jdk/pull/11886

Re: RFR: 8015831: Add lint check for calling overridable methods from a constructor [v5]

2023-01-09 Thread Archie L . Cobbs
On Mon, 9 Jan 2023 06:37:22 GMT, David Holmes wrote: > All your new files need a copyright and GPL header. Sorry if I'm being blind but I'm not seeing it. Which file(s) are you referring to? The `@test /nodynamiccopyright/` files don't get one per

Re: RFR: JDK-8298908: Instrument Metaspace for ASan [v6]

2023-01-09 Thread Thomas Stuefe
On Thu, 5 Jan 2023 16:29:13 GMT, Justin King wrote: >> This change instruments Metaspace for ASan. Metaspace allocates memory using >> `mmap`/`munmap` which ASan is not aware of. Fortunately ASan supports >> applications [manually poisoning/unpoisoning >>

Re: RFR: JDK-8298908: Instrument Metaspace for ASan [v2]

2023-01-09 Thread Thomas Stuefe
On Thu, 5 Jan 2023 02:53:54 GMT, David Holmes wrote: >> This helps with maintenance. All builds will still compile the `addr` and >> `size` statements, ensuring they are valid, but will strip them when ASan is >> not enabled. In the event that refactoring occurs and one of the statements >>