Re: RFR: 8277072: ObjectStreamClass caches keep ClassLoaders alive [v3]

2021-11-30 Thread Peter Levart
On Tue, 30 Nov 2021 11:25:48 GMT, Roman Kennke wrote: >> The caches in ObjectStreamClass basically map WeakReference to >> SoftReference, where the ObjectStreamClass also >> references the same Class. That means that the cache entry, and thus the >> class and its class-loader, will not get rec

Re: RFR: 8193682: Infinite loop in ZipOutputStream.close() [v14]

2021-11-30 Thread Ravi Reddy
> Hi all, > > Please review this fix for Infinite loop in ZipOutputStream.close(). > The main issue here is when ever there is an exception during close > operations on GZip we are not setting the deflator to a finished state which > is leading to an infinite loop when we try writing on the same

Withdrawn: 8217496: Matcher.group() can return null after usePattern

2021-11-30 Thread duke
On Tue, 5 Oct 2021 19:11:57 GMT, Ian Graves wrote: > Specification update to clarify Matcher behavior to include a null return > value. This pull request has been closed without being integrated. - PR: https://git.openjdk.java.net/jdk/pull/5827

Re: RFR: 8277992: Add fast jdk_svc subtests to jdk:tier3

2021-11-30 Thread David Holmes
On Tue, 30 Nov 2021 18:48:15 GMT, Aleksey Shipilev wrote: > OpenJDK tiered tests definitions have the catch-all `tier4` that runs all > tests not defined in the lower tiers. `hotspot:tier4` has lots of them, > mostly long-running vmTestbase tests, which take many hours even on a very > paralle

Re: RFR: 8277861: Terminally deprecate Thread.stop

2021-11-30 Thread Alan Snyder
>> It is almost impossible to write any non-trivial code that is >> async-exception-safe and no JDK library code is written to be >> async-exception-safe including thread tear-down. So while you can say >> "stop() is the only way to disrupt this piece of code", you cannot ensure >> that it is d

Re: RFR: 8277861: Terminally deprecate Thread.stop

2021-11-30 Thread David Holmes
On Tue, 30 Nov 2021 14:52:37 GMT, Alan Bateman wrote: > Thread.stop is inherently unsafe and has been deprecated since Java 1.2 > (1998). It's time to terminally deprecate this method so it can be degraded > and removed in the future. > > This PR does not propose any changes to the JVM TI Stop

Re: RFR: 8277861: Terminally deprecate Thread.stop

2021-11-30 Thread David Holmes
On 1/12/2021 3:13 am, Alan Snyder wrote: Although I understand the potential dangers of using Thread.stop, it seems to me there are cases where its use is legitimate and valuable. No there really aren't. :) The perceived utility of stop() is an illusion. It is almost impossible to write any n

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v12]

2021-11-30 Thread John Neffenger
On Tue, 30 Nov 2021 21:56:51 GMT, Andrew Leonard wrote: >> Add a new --source-date (epoch seconds) option to jar and jmod >> to allow specification of time to use for created/updated jar/jmod entries. >> This then allows the ability to make the content deterministic. >> >> Signed-off-by: Andr

Re: RFR: 8277986: Typo in javadoc of java.util.zip.ZipEntry#setTime

2021-11-30 Thread Jaikiran Pai
On Tue, 30 Nov 2021 14:28:05 GMT, Jaikiran Pai wrote: > Can I please get a review for this change which fixes a typo in the javadoc > of `java.util.zip.ZipEntry.setTime()` method? Thank you everyone for the reviews. - PR: https://git.openjdk.java.net/jdk/pull/6615

Integrated: 8277986: Typo in javadoc of java.util.zip.ZipEntry#setTime

2021-11-30 Thread Jaikiran Pai
On Tue, 30 Nov 2021 14:28:05 GMT, Jaikiran Pai wrote: > Can I please get a review for this change which fixes a typo in the javadoc > of `java.util.zip.ZipEntry.setTime()` method? This pull request has now been integrated. Changeset: 0a01baaf Author:Jaikiran Pai URL: https://git.op

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v12]

2021-11-30 Thread John Neffenger
On Tue, 30 Nov 2021 21:56:51 GMT, Andrew Leonard wrote: >> Add a new --source-date (epoch seconds) option to jar and jmod >> to allow specification of time to use for created/updated jar/jmod entries. >> This then allows the ability to make the content deterministic. >> >> Signed-off-by: Andr

Re: RFR: JDK-8277175 : Add a parallel multiply method to BigInteger [v5]

2021-11-30 Thread Paul Sandoz
On Wed, 24 Nov 2021 15:20:42 GMT, kabutz wrote: >> BigInteger currently uses three different algorithms for multiply. The >> simple quadratic algorithm, then the slightly better Karatsuba if we exceed >> a bit count and then Toom Cook 3 once we go into the several thousands of >> bits. Since T

Re: RFR: JDK-8278014: [vectorapi] Remove test run script [v2]

2021-11-30 Thread Paul Sandoz
> Remove Vector API scripts for building and running tests. `jtreg` should be > used instead. > > Also updated the test generation script to remove options that assume > mercurial as the code repository. Paul Sandoz has updated the pull request incrementally with one additional commit since th

Re: RFR: JDK-8278014: [vectorapi] Remove test run script

2021-11-30 Thread Paul Sandoz
On Tue, 30 Nov 2021 23:24:24 GMT, Jie Fu wrote: > Shall we also update the copyright year? Doh! of course, updated. - PR: https://git.openjdk.java.net/jdk/pull/6621

Re: RFR: JDK-8278014: [vectorapi] Remove test run script [v2]

2021-11-30 Thread Jie Fu
On Tue, 30 Nov 2021 23:31:21 GMT, Paul Sandoz wrote: >> Remove Vector API scripts for building and running tests. `jtreg` should be >> used instead. >> >> Also updated the test generation script to remove options that assume >> mercurial as the code repository. > > Paul Sandoz has updated the

Re: RFR: JDK-8278014: [vectorapi] Remove test run script

2021-11-30 Thread Jie Fu
On Tue, 30 Nov 2021 19:22:53 GMT, Paul Sandoz wrote: > Remove Vector API scripts for building and running tests. `jtreg` should be > used instead. > > Also updated the test generation script to remove options that assume > mercurial as the code repository. Shall we also update the copyright y

Integrated: 8190748: java/text/Format/DateFormat/DateFormatTest.java and NonGregorianFormatTest fail intermittently

2021-11-30 Thread Naoto Sato
On Mon, 29 Nov 2021 18:48:45 GMT, Naoto Sato wrote: > Fixing tests that fail at DST->STD offset transition. Simply skipping the > tests on that occasion. This pull request has now been integrated. Changeset: f1c20e91 Author:Naoto Sato URL: https://git.openjdk.java.net/jdk/commit/f1

Re: RFR: 8277924: Small tweaks to foreign function and memory API [v4]

2021-11-30 Thread Maurizio Cimadamore
> Following integration of the second incubator of the foreign function and > memory API [1], we detected few divergences between the contents of the jdk > repo and the panama repo: > > * the name of some of the `FunctionDescriptor` wither methods is different > (e.g. `withAppendedLayoutArgumen

Re: RFR: JDK-8273056 java.util.random does not correctly sample exponential or Gaussian distributions

2021-11-30 Thread Joe Darcy
On Thu, 11 Nov 2021 13:59:51 GMT, Jim Laskey wrote: > The modified ziggurat algorithm is not correctly implemented in > `java.base/jdk/internal/util/random/RandomSupport.java`. > > Create a histogram of a million samples using 2000 uniform bins with the > following range: > Exponential range

Re: RFR: JDK-8273146: Start of release updates for JDK 19 [v6]

2021-11-30 Thread Joe Darcy
> The time to get JDK 19 underway draws nigh, please review this usual set of > start-of-release updates, including CSRs for the javac and javax.lang.model > updates: > > JDK-8277512: Add SourceVersion.RELEASE_19 > https://bugs.openjdk.java.net/browse/JDK-8277512 > > JDK-8277514: Add source 19

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v12]

2021-11-30 Thread Andrew Leonard
> Add a new --source-date (epoch seconds) option to jar and jmod to > allow specification of time to use for created/updated jar/jmod entries. This > then allows the ability to make the content deterministic. > > Signed-off-by: Andrew Leonard Andrew Leonard has updated the pull request increm

Re: RFR: JDK-8273056 java.util.random does not correctly sample exponential or Gaussian distributions

2021-11-30 Thread Brian Burkhalter
On Thu, 11 Nov 2021 13:59:51 GMT, Jim Laskey wrote: > The modified ziggurat algorithm is not correctly implemented in > `java.base/jdk/internal/util/random/RandomSupport.java`. > > Create a histogram of a million samples using 2000 uniform bins with the > following range: > Exponential range

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v11]

2021-11-30 Thread Andrew Leonard
> Add a new --source-date (epoch seconds) option to jar and jmod to > allow specification of time to use for created/updated jar/jmod entries. This > then allows the ability to make the content deterministic. > > Signed-off-by: Andrew Leonard Andrew Leonard has updated the pull request increm

Re: RFR: 8190748: java/text/Format/DateFormat/DateFormatTest.java and NonGregorianFormatTest fail intermittently [v2]

2021-11-30 Thread Lance Andersen
On Mon, 29 Nov 2021 21:59:31 GMT, Naoto Sato wrote: >> Fixing tests that fail at DST->STD offset transition. Simply skipping the >> tests on that occasion. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > Changed to not skipp

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v10]

2021-11-30 Thread Andrew Leonard
> Add a new --source-date (epoch seconds) option to jar and jmod to > allow specification of time to use for created/updated jar/jmod entries. This > then allows the ability to make the content deterministic. > > Signed-off-by: Andrew Leonard Andrew Leonard has updated the pull request with a

Re: RFR: JDK-8278014: [vectorapi] Remove test run script

2021-11-30 Thread Sandhya Viswanathan
On Tue, 30 Nov 2021 19:22:53 GMT, Paul Sandoz wrote: > Remove Vector API scripts for building and running tests. `jtreg` should be > used instead. > > Also updated the test generation script to remove options that assume > mercurial as the code repository. Looks good to me. - Ma

Re: RFR: 8277868: Use Comparable.compare() instead of surrogate code [v2]

2021-11-30 Thread Roger Riggs
On Mon, 29 Nov 2021 08:18:47 GMT, Сергей Цыпанов wrote: >> Instead of something like >> >> long x; >> long y; >> return (x < y) ? -1 : ((x == y) ? 0 : 1); >> >> we can use `return Long.compare(x, y);` >> >> All replacements are done with IDE. > > Сергей Цыпанов has updated the pull request inc

Re: RFR: 8277606: String(String) constructor could copy hashIsZero

2021-11-30 Thread Roger Riggs
On Mon, 22 Nov 2021 22:59:21 GMT, PROgrm_JARvis wrote: > This is a trivial fix to make `String(String)` constructor copy the value of > `hashIsZero` field. Marked as reviewed by rriggs (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/6511

Integrated: 8277606: String(String) constructor could copy hashIsZero

2021-11-30 Thread PROgrm_JARvis
On Mon, 22 Nov 2021 22:59:21 GMT, PROgrm_JARvis wrote: > This is a trivial fix to make `String(String)` constructor copy the value of > `hashIsZero` field. This pull request has now been integrated. Changeset: e30e6767 Author:Petr Portnov Committer: Roger Riggs URL: https://git.op

Re: RFR: 8277861: Terminally deprecate Thread.stop

2021-11-30 Thread Alan Snyder
I think you are saying that to kill a thread running native code I would need to use native code. Is that right? > On Nov 30, 2021, at 10:17 AM, Alan Bateman wrote: > > On 30/11/2021 17:13, Alan Snyder wrote: >> Although I understand the potential dangers of using Thread.stop, it seems >> to m

Re: RFR: 8277322: Document that setting an invalid property jdk.serialFilter disables deserialization

2021-11-30 Thread Roger Riggs
On Wed, 24 Nov 2021 15:39:13 GMT, Roger Riggs wrote: >> If the intent is to disable serialization entirely, then this state should >> be represented explicitly. Having things throw `NoClassDefFoundError` looks >> like a mistake and a bug that needs to be fixed. In addition, it requires >> that

Re: RFR: 8276657: XSLT compilter tries to define a class with empty name

2021-11-30 Thread Joe Wang
On Tue, 30 Nov 2021 18:53:26 GMT, Joe Wang wrote: > The result of Util.baseName(systemId) can be empty, causing the compiler to > set an empty classname. Add a check to make sure it will not set the empty > classname. > > Alternatively, it may report an error, but that would be disruptive. As

Re: RFR: 8276657: XSLT compilter tries to define a class with empty name [v2]

2021-11-30 Thread Joe Wang
> The result of Util.baseName(systemId) can be empty, causing the compiler to > set an empty classname. Add a check to make sure it will not set the empty > classname. > > Alternatively, it may report an error, but that would be disruptive. As the > transform can proceed without the provided cl

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v9]

2021-11-30 Thread Andrew Leonard
On Tue, 30 Nov 2021 20:00:19 GMT, John Neffenger wrote: > > Whichever we use, we have to use e.setTimeLocal(), so can't see what the > > difference is? > > Okay, here's a brief command-line example before posting the code example. In > my experience, most people trying to set up a common, proj

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v9]

2021-11-30 Thread John Neffenger
On Tue, 30 Nov 2021 19:37:23 GMT, Andrew Leonard wrote: > Whichever we use, we have to use e.setTimeLocal(), so can't see what the > difference is? Okay, here's a brief command-line example before posting the code example. In my experience, most people trying to set up a common, project-wide b

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v9]

2021-11-30 Thread John Neffenger
On Tue, 30 Nov 2021 18:57:55 GMT, Andrew Leonard wrote: > I'm also adding --date validation of 1980->2099 I am only now catching up with you on that issue. 😄 I wrote a very short program that illustrates that problem (and all the other ones) very clearly for anyone to see. I'll post it shortl

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v9]

2021-11-30 Thread Andrew Leonard
On Tue, 30 Nov 2021 19:31:37 GMT, John Neffenger wrote: > > Both basically truncate the timezone. > > There's a difference. The first option saves a DOS date and time that depends > on the time zone of the build machine due to the ISO 8601 string returned by > default from the `git` and `date`

RFR: JDK-8278014: [vectorapi] Remove test run script

2021-11-30 Thread Paul Sandoz
Remove Vector API scripts for building and running tests. `jtreg` should be used instead. Also updated the test generation script to remove options that assume mercurial as the code repository. - Commit messages: - JDK-8278014: [vectorapi] Remove test run script Changes: https://

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v9]

2021-11-30 Thread John Neffenger
On Tue, 30 Nov 2021 18:52:56 GMT, Andrew Leonard wrote: > Both basically truncate the timezone. There's a difference. The first option saves a DOS date and time that depends on the time zone of the build machine due to the ISO 8601 string returned by default from the `git` and `date` commands,

Re: RFR: 8276657: XSLT compilter tries to define a class with empty name

2021-11-30 Thread Naoto Sato
On Tue, 30 Nov 2021 18:53:26 GMT, Joe Wang wrote: > The result of Util.baseName(systemId) can be empty, causing the compiler to > set an empty classname. Add a check to make sure it will not set the empty > classname. > > Alternatively, it may report an error, but that would be disruptive. As

Re: RFR: 8277606: String(String) constructor could copy hashIsZero

2021-11-30 Thread PROgrm_JARvis
On Mon, 22 Nov 2021 22:59:21 GMT, PROgrm_JARvis wrote: > This is a trivial fix to make `String(String)` constructor copy the value of > `hashIsZero` field. Hi there, could anyone please sponsor this change if it is still applicable? Thanks in advance! - PR: https://git.openjdk.ja

RFR: 8277992: Add fast jdk_svc subtests to jdk:tier3

2021-11-30 Thread Aleksey Shipilev
OpenJDK tiered tests definitions have the catch-all `tier4` that runs all tests not defined in the lower tiers. `hotspot:tier4` has lots of them, mostly long-running vmTestbase tests, which take many hours even on a very parallel machines. This, unfortunately, has a chilling effect on `jdk:tier

RFR: 8276657: XSLT compilter tries to define a class with empty name

2021-11-30 Thread Joe Wang
The result of Util.baseName(systemId) can be empty, causing the compiler to set an empty classname. Add a check to make sure it will not set the empty classname. Alternatively, it may report an error, but that would be disruptive. As the transform can proceed without the provided classname (by

Re: RFR: JDK-8273056 java.util.random does not correctly sample exponential or Gaussian distributions

2021-11-30 Thread Jim Laskey
On Thu, 11 Nov 2021 13:59:51 GMT, Jim Laskey wrote: > The modified ziggurat algorithm is not correctly implemented in > `java.base/jdk/internal/util/random/RandomSupport.java`. > > Create a histogram of a million samples using 2000 uniform bins with the > following range: > Exponential range

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v9]

2021-11-30 Thread Andrew Leonard
On Mon, 29 Nov 2021 16:22:30 GMT, Andrew Leonard wrote: >> Add a new --source-date (epoch seconds) option to jar and jmod >> to allow specification of time to use for created/updated jar/jmod entries. >> This then allows the ability to make the content deterministic. >> >> Signed-off-by: Andr

Re: RFR: 8277924: Small tweaks to foreign function and memory API [v3]

2021-11-30 Thread Paul Sandoz
On Tue, 30 Nov 2021 13:20:32 GMT, Maurizio Cimadamore wrote: >> Following integration of the second incubator of the foreign function and >> memory API [1], we detected few divergences between the contents of the jdk >> repo and the panama repo: >> >> * the name of some of the `FunctionDescri

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v9]

2021-11-30 Thread Andrew Leonard
On Tue, 30 Nov 2021 16:26:28 GMT, John Neffenger wrote: > > So what you suggest sounds reasonable, although it would be a "behaviour > > change" in that whereas now if the date is between 1980->2106 only a > > xdostime is stored, we would now always be storing the additional "mtime" > > field

Re: RFR: JDK-8276674 : Malformed Javadoc inline tags in JDK source in java/util/stream

2021-11-30 Thread Pavel Rappo
On Thu, 25 Nov 2021 00:31:46 GMT, Pavel Rappo wrote: >> JDK-8276674 : Malformed Javadoc inline tags in JDK source in java/util/stream > > src/jdk.compiler/share/classes/com/sun/tools/javac/util/RawDiagnosticFormatter.java > line 63: > >> 61: * Helper class to generate stable positions for

Re: RFR: 8277986: Typo in javadoc of java.util.zip.ZipEntry#setTime

2021-11-30 Thread Lance Andersen
On Tue, 30 Nov 2021 14:28:05 GMT, Jaikiran Pai wrote: > Can I please get a review for this change which fixes a typo in the javadoc > of `java.util.zip.ZipEntry.setTime()` method? Marked as reviewed by lancea (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/6615

Re: RFR: 8277861: Terminally deprecate Thread.stop

2021-11-30 Thread Uwe Schindler
On Tue, 30 Nov 2021 14:52:37 GMT, Alan Bateman wrote: > Thread.stop is inherently unsafe and has been deprecated since Java 1.2 > (1998). It's time to terminally deprecate this method so it can be degraded > and removed in the future. > > This PR does not propose any changes to the JVM TI Stop

Re: RFR: 8277861: Terminally deprecate Thread.stop

2021-11-30 Thread Alan Bateman
On 30/11/2021 17:13, Alan Snyder wrote: Although I understand the potential dangers of using Thread.stop, it seems to me there are cases where its use is legitimate and valuable. The examples I am thinking of involve a potentially long running computation whose result is no longer needed. In p

Re: RFR: 8276141: XPathFactory set/getProperty method [v11]

2021-11-30 Thread Joe Wang
On Tue, 30 Nov 2021 18:00:38 GMT, Joe Wang wrote: >> Add setProperty/getProperty methods to the XPath API so that properties can >> be supported in the future. > > Joe Wang has updated the pull request incrementally with one additional > commit since the last revision: > > Add a statement to

Re: RFR: 8276141: XPathFactory set/getProperty method [v11]

2021-11-30 Thread Joe Wang
> Add setProperty/getProperty methods to the XPath API so that properties can > be supported in the future. Joe Wang has updated the pull request incrementally with one additional commit since the last revision: Add a statement to clarify the space of the properties - Changes:

Re: RFR: 8277861: Terminally deprecate Thread.stop

2021-11-30 Thread Mandy Chung
On Tue, 30 Nov 2021 14:52:37 GMT, Alan Bateman wrote: > Thread.stop is inherently unsafe and has been deprecated since Java 1.2 > (1998). It's time to terminally deprecate this method so it can be degraded > and removed in the future. > > This PR does not propose any changes to the JVM TI Stop

Re: RFR: 8277986: Typo in javadoc of java.util.zip.ZipEntry#setTime

2021-11-30 Thread Iris Clark
On Tue, 30 Nov 2021 14:28:05 GMT, Jaikiran Pai wrote: > Can I please get a review for this change which fixes a typo in the javadoc > of `java.util.zip.ZipEntry.setTime()` method? Marked as reviewed by iris (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/6615

Re: RFR: 8277861: Terminally deprecate Thread.stop

2021-11-30 Thread Alan Snyder
Although I understand the potential dangers of using Thread.stop, it seems to me there are cases where its use is legitimate and valuable. The examples I am thinking of involve a potentially long running computation whose result is no longer needed. In particular, I am thinking of pure computati

Re: RFR: 8193682: Infinite loop in ZipOutputStream.close() [v13]

2021-11-30 Thread Sean Coffey
On Thu, 18 Nov 2021 19:09:18 GMT, Ravi Reddy wrote: >> Hi all, >> >> Please review this fix for Infinite loop in ZipOutputStream.close(). >> The main issue here is when ever there is an exception during close >> operations on GZip we are not setting the deflator to a finished state which >> is

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v9]

2021-11-30 Thread John Neffenger
On Tue, 30 Nov 2021 12:00:59 GMT, Andrew Leonard wrote: > So what you suggest sounds reasonable, although it would be a "behaviour > change" in that whereas now if the date is between 1980->2106 only a xdostime > is stored, we would now always be storing the additional "mtime" field ... No, so

Re: RFR: 8277861: Terminally deprecate Thread.stop

2021-11-30 Thread Roger Riggs
On Tue, 30 Nov 2021 14:52:37 GMT, Alan Bateman wrote: > Thread.stop is inherently unsafe and has been deprecated since Java 1.2 > (1998). It's time to terminally deprecate this method so it can be degraded > and removed in the future. > > This PR does not propose any changes to the JVM TI Stop

Re: Adding an @Immutable annotation to Java

2021-11-30 Thread Brian Goetz
I don’t see how a restricted reference by itself is useful, if you cannot depend upon the object not being mutated via other references. Agree; this may help you do local proofs of correctness, and may conceivably help the JIT (though, its pretty smart about figuring this stuff out on its own),

RFR: 8277861: Terminally deprecate Thread.stop

2021-11-30 Thread Alan Bateman
Thread.stop is inherently unsafe and has been deprecated since Java 1.2 (1998). It's time to terminally deprecate this method so it can be degraded and removed in the future. This PR does not propose any changes to the JVM TI StopThread function (or the corresponding JDWP command or JDI method)

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v9]

2021-11-30 Thread Andrew Leonard
On Mon, 29 Nov 2021 16:22:30 GMT, Andrew Leonard wrote: >> Add a new --source-date (epoch seconds) option to jar and jmod >> to allow specification of time to use for created/updated jar/jmod entries. >> This then allows the ability to make the content deterministic. >> >> Signed-off-by: Andr

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v9]

2021-11-30 Thread Andrew Leonard
On Tue, 30 Nov 2021 08:53:03 GMT, John Neffenger wrote: >> @andrew-m-leonard Thank you, Andrew, for your bold solution to Mark's >> request -- one that even solves the problem with the current `ZipEntry` API! >> >> Would you be willing to consider a minor change to your implementation? >> >> A

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v9]

2021-11-30 Thread Jaikiran Pai
Hello Andrew, On 30/11/21 7:32 pm, Andrew Leonard wrote: On Mon, 29 Nov 2021 16:22:30 GMT, Andrew Leonard wrote: Add a new --source-date (epoch seconds) option to jar and jmod to allow specification of time to use for created/updated jar/jmod entries. This then allows the ability to make t

Re: 8276766: Discuss options for deterministic jar/jmod timestamps across timezones

2021-11-30 Thread Andrew Leonard
Ah, I suspect the getTime() for xdostime performance issue relates to this: https://bugs.openjdk.java.net/browse/JDK-4981560 which is not relevant any more since dosToJavaTime() is now implemented differently On Tue, Nov 30, 2021 at 2:44 PM Andrew Leonard wrote: > Thanks Alan, > Having tried

Re: 8276766: Discuss options for deterministic jar/jmod timestamps across timezones

2021-11-30 Thread Andrew Leonard
Thanks Alan, Having tried implementing a Zoned option, I agree it does seem to bloat ZipEntry a bit. As JohnN's suggestion pointed out we could at some point move to always setting the extended mtime(FileTime), but we have 78years until we really need to worry about that! (xdostime covers to 2099)

Re: RFR: 8277986: Typo in javadoc of java.util.zip.ZipEntry#setTime

2021-11-30 Thread Alan Bateman
On Tue, 30 Nov 2021 14:28:05 GMT, Jaikiran Pai wrote: > Can I please get a review for this change which fixes a typo in the javadoc > of `java.util.zip.ZipEntry.setTime()` method? Marked as reviewed by alanb (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/6615

RFR: 8277986: Typo in javadoc of java.util.zip.ZipEntry#setTime

2021-11-30 Thread Jaikiran Pai
Can I please get a review for this change which fixes a typo in the javadoc of `java.util.zip.ZipEntry.setTime()` method? - Commit messages: - 8277986: Typo in javadoc of java.util.zip.ZipEntry#setTime Changes: https://git.openjdk.java.net/jdk/pull/6615/files Webrev: https://webre

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v9]

2021-11-30 Thread Andrew Leonard
On Mon, 29 Nov 2021 16:22:30 GMT, Andrew Leonard wrote: >> Add a new --source-date (epoch seconds) option to jar and jmod >> to allow specification of time to use for created/updated jar/jmod entries. >> This then allows the ability to make the content deterministic. >> >> Signed-off-by: Andr

Re: RFR: 8277924: Small tweaks to foreign function and memory API [v2]

2021-11-30 Thread Maurizio Cimadamore
On Mon, 29 Nov 2021 18:32:30 GMT, Maurizio Cimadamore wrote: >> Following integration of the second incubator of the foreign function and >> memory API [1], we detected few divergences between the contents of the jdk >> repo and the panama repo: >> >> * the name of some of the `FunctionDescri

Re: RFR: 8277924: Small tweaks to foreign function and memory API [v3]

2021-11-30 Thread Maurizio Cimadamore
> Following integration of the second incubator of the foreign function and > memory API [1], we detected few divergences between the contents of the jdk > repo and the panama repo: > > * the name of some of the `FunctionDescriptor` wither methods is different > (e.g. `withAppendedLayoutArgumen

Re: 8276766: Discuss options for deterministic jar/jmod timestamps across timezones

2021-11-30 Thread Alan Bateman
On 29/11/2021 19:25, Andrew Leonard wrote: *Problem:* PRhttps://github.com/openjdk/jdk/pull/6481 addresses the main problems with deterministic timestamping of Zip entries, with the introduction of a new --date option for jar & jmod. However, the ZipEntry timestamp is constructed from a combinat

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v9]

2021-11-30 Thread Andrew Leonard
On Mon, 29 Nov 2021 16:22:30 GMT, Andrew Leonard wrote: >> Add a new --source-date (epoch seconds) option to jar and jmod >> to allow specification of time to use for created/updated jar/jmod entries. >> This then allows the ability to make the content deterministic. >> >> Signed-off-by: Andr

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v9]

2021-11-30 Thread Andrew Leonard
On Tue, 30 Nov 2021 08:53:03 GMT, John Neffenger wrote: >> @andrew-m-leonard Thank you, Andrew, for your bold solution to Mark's >> request -- one that even solves the problem with the current `ZipEntry` API! >> >> Would you be willing to consider a minor change to your implementation? >> >> A

Re: RFR: 8277072: ObjectStreamClass caches keep ClassLoaders alive [v2]

2021-11-30 Thread Roman Kennke
On Mon, 15 Nov 2021 21:35:06 GMT, Roman Kennke wrote: >> The caches in ObjectStreamClass basically map WeakReference to >> SoftReference, where the ObjectStreamClass also >> references the same Class. That means that the cache entry, and thus the >> class and its class-loader, will not get rec

Re: RFR: 8277072: ObjectStreamClass caches keep ClassLoaders alive [v3]

2021-11-30 Thread Roman Kennke
> The caches in ObjectStreamClass basically map WeakReference to > SoftReference, where the ObjectStreamClass also references > the same Class. That means that the cache entry, and thus the class and its > class-loader, will not get reclaimed, unless the GC determines that memory > pressure is

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v9]

2021-11-30 Thread John Neffenger
On Tue, 30 Nov 2021 08:31:54 GMT, John Neffenger wrote: > Would you be willing to consider a minor change to your implementation? Just to be clear, this change should let us postpone any additions to the `ZipEntry` API for another day, if at all, and maybe even get this pull request integrated

Re: RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v9]

2021-11-30 Thread John Neffenger
On Mon, 29 Nov 2021 19:27:57 GMT, Andrew Leonard wrote: >>> @AlanBateman yes, see above comment, thanks >> >> This is a significant change to the ZipEntry API that will require >> discussion and agreement. Can you start a discussion on core-libs-dev about >> the topic? You could start with a s