Re: RFR[S] 8241158 SA TestHeapDumpForInvokeDynamic.java fails when CDS archive is relocated

2020-04-16 Thread Calvin Cheung
Hi Ioi, Regarding the changes in javaClasses.cpp, I saw that in your new code in systemDictionaryShared.cpp, the java_lang_Class::update_archived_mirror_native_pointers(m) won't be called if MetaspaceShared::relocation_delta() is 0. But I noticed there's another code path to java_lang_Class:

Re: RFR[S] 8241158 SA TestHeapDumpForInvokeDynamic.java fails when CDS archive is relocated

2020-04-16 Thread Calvin Cheung
On 4/16/20 11:12 AM, Ioi Lam wrote: On 4/16/20 10:08 AM, Calvin Cheung wrote: Hi Ioi, Regarding the changes in javaClasses.cpp, I saw that in your new code in systemDictionaryShared.cpp, the java_lang_Class::update_archived_mirror_native_pointers(m) won't be called if MetaspaceS

Re: (S) 8237750: Load libzip.so only if necessary

2020-05-05 Thread Calvin Cheung
On 5/5/20 10:59 AM, Ioi Lam wrote: Hi Yumin, Looks good. Just small nits. No need for new webrev. [1] I think this should be named _libzip_loaded to be consistent with other fields   static int  libzip_loaded;   // used to sync loading zip. [2] This introduces dependency on atom

Re: (S) 8237750: Load libzip.so only if necessary

2020-05-05 Thread Calvin Cheung
Looks good. thanks, Calvin On 5/5/20 1:32 PM, Yumin Qi wrote: Hi, Ioi and Calvin   There is an file classLoader.inline.hpp which also includes atomic.hpp. I put load_zip_library_if_needed in it. Updated webrev: http://cr.openjdk.java.net/~minqi/8237750/webrev-03/   Also, double checked the

Re: RFR(M): 8201375: Add the AllowArchivingWithJavaAgent diagnostic vm option to allow the use of the -javaagent option during CDS dumping

2018-11-15 Thread Calvin Cheung
: Hi Calvin, The changes look good. Thanks - Ioi On 11/14/18 4:40 PM, Calvin Cheung wrote: bug: https://bugs.openjdk.java.net/browse/JDK-8201375 webrev: http://cr.openjdk.java.net/~ccheung/8201375/webrev.00/ This change is for adding a diagnostic vm option (AllowArchivingWithJavaAgent) to

Re: RFR(M): 8201375: Add the AllowArchivingWithJavaAgent diagnostic vm option to allow the use of the -javaagent option during CDS dumping

2018-11-16 Thread Calvin Cheung
ou wrote: +1 Adding serviceability-dev mailing list. It would be good to have this reviewed by the JVMTI experts also to make sure all cases are covered. Thanks, Jiangli On 11/15/18 9:29 AM, Ioi Lam wrote: Hi Calvin, The changes look good. Thanks - Ioi On 11/14/18 4:40 PM, Calvin C

Re: RFR(M): 8201375: Add the AllowArchivingWithJavaAgent diagnostic vm option to allow the use of the -javaagent option during CDS dumping

2018-11-16 Thread Calvin Cheung
"Must enable AllowArchivingWithJavaAgent in order to run Java agent during CDS dumping");* *+ }* Thanks, Serguei Thanks, Serguei On 11/16/18 10:18, Ioi Lam wrote: On 11/16/18 9:45 AM, serguei.spit...@oracle.com wrote: Hi Calvin, On 11/16/18 09:26, Calvin Cheung wrote:

Re: RFR(M): 8201375: Add the AllowArchivingWithJavaAgent diagnostic vm option to allow the use of the -javaagent option during CDS dumping

2018-11-16 Thread Calvin Cheung
rent run. thanks, Calvin Thanks, Serguei On 11/16/18 12:09 PM, Calvin Cheung wrote: Hi Serguei, I've updated the webrev based on your suggestions: http://cr.openjdk.java.net/~ccheung/8201375/webrev.01/ Files changed since last time: thead.cpp - your suggestion below filemap.cpp - ad

Re: RFR(M): 8201375: Add the AllowArchivingWithJavaAgent diagnostic vm option to allow the use of the -javaagent option during CDS dumping

2018-11-16 Thread Calvin Cheung
Thanks, Serguei! Calvin On 11/16/18, 3:22 PM, serguei.spit...@oracle.com wrote: Hi Calvin, It looks good to me. No need in new webrev if you update this comment as below. Thanks, Serguei On 11/16/18 2:00 PM, Calvin Cheung wrote: On 11/16/18, 1:04 PM, serguei.spit...@oracle.com wrote

Re: RFR(S) 8218751 Do not store original classfiles inside the CDS archive

2019-02-12 Thread Calvin Cheung
Hi Ioi, The following call is probably slower than before because it involves reading from a jar file. cfs = FileMapInfo::open_stream_for_jvmti(ik, CHECK_NULL); It is probably ok since the above is called under the following condition: if (JvmtiExport::should_post_class_file_load_hook()) Minor

RFR(S): 8204110: serviceability/sa/ClhsdbSymbol.java and ClhsdbInspect.java failed when running in CDS mode

2018-06-07 Thread Calvin Cheung
bug: https://bugs.openjdk.java.net/browse/JDK-8204110 webrev: http://cr.openjdk.java.net/~ccheung/8204110/webrev.00/ For fixing the ClhsdbSymbol.java test, I've added dumping the symbols from the sharedTable if it isn't null. The change touches all 3 files in the webrev. SymbolTable.java - a

Re: RFR(S): 8204110: serviceability/sa/ClhsdbSymbol.java and ClhsdbInspect.java failed when running in CDS mode

2018-06-08 Thread Calvin Cheung
Thanks for your review, Jini. Calvin On 6/7/18, 10:04 PM, Jini George wrote: Your changes look good to me, Calvin. Thanks, Jini. On 6/7/2018 10:24 PM, Calvin Cheung wrote: bug: https://bugs.openjdk.java.net/browse/JDK-8204110 webrev: http://cr.openjdk.java.net/~ccheung/8204110/webrev.00

Re: RFR(S): 8204110: serviceability/sa/ClhsdbSymbol.java and ClhsdbInspect.java failed when running in CDS mode

2018-06-08 Thread Calvin Cheung
Thanks for your review, Serguei. Calvin On 6/8/18, 9:14 AM, serguei.spit...@oracle.com wrote: +1 Thanks, Serguei On 6/7/18 22:04, Jini George wrote: Your changes look good to me, Calvin. Thanks, Jini. On 6/7/2018 10:24 PM, Calvin Cheung wrote: bug: https://bugs.openjdk.java.net/browse

Re: RFR(S): 8204110: serviceability/sa/ClhsdbSymbol.java and ClhsdbInspect.java failed when running in CDS mode

2018-06-08 Thread Calvin Cheung
Thanks for your review, Ioi. Calvin On 6/8/18, 9:26 AM, Ioi Lam wrote: Hi Calvin, The changes look good to me. Thanks! - Ioi On 6/7/18 9:54 AM, Calvin Cheung wrote: bug: https://bugs.openjdk.java.net/browse/JDK-8204110 webrev: http://cr.openjdk.java.net/~ccheung/8204110/webrev.00/ For

Re: RFR [XS] 8207832 - ClhsdbCDSCore.java failed with "Couldn't find core file location"

2018-08-15 Thread Calvin Cheung
Looks good! thanks, Calvin On 8/14/18, 4:50 PM, Ioi Lam wrote: Please review this simple fix. https://bugs.openjdk.java.net/browse/JDK-8207832 http://cr.openjdk.java.net/~iklam/jdk12/8207832_ClhsdbCDSCore_file_location.v01/ On Linux, the core file location can be controlled via /proc/

Re: RFR[S] 8209657 Refactor filemap.hpp to simplify integration with Serviceability Agent

2018-08-21 Thread Calvin Cheung
Hi Ioi, This is a very nice cleanup and looks good. In the SA native code, I'm wondering instead of: #include "../../../../hotspot/share/include/cds.h" is it possible to omit the relative path and just have the following? #include "cds.h" I think it probably involves some makefile changes. I

Re: RFR 8150607 - Clean up CompactHashtable

2016-04-13 Thread Calvin Cheung
Hi Ioi, Just a few minor comments. No need to see another webrev. compactHashtable.cpp: 71 _num_entries ++; extra space before ++ similarly in lines 80, 112, 123, 125 118 Entry tent = bucket->at(i); It is clearer if 'tent' is just 'ent' since the code in this block is not dealing w

hg: hsx/hotspot-rt/hotspot: 32 new changesets

2013-10-05 Thread calvin . cheung
Changeset: 72b7e96c1922 Author:twisti Date: 2013-09-26 12:07 -0700 URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/72b7e96c1922 8024545: make develop and notproduct flag values available in product builds Reviewed-by: dholmes, kvn ! agent/src/share/classes/sun/jvm/hotspo

hg: hsx/hotspot-rt/hotspot: 18 new changesets

2013-10-11 Thread calvin . cheung
Changeset: ebfa5793d349 Author:katleman Date: 2013-10-02 13:26 -0700 URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/ebfa5793d349 Added tag jdk8-b110 for changeset 6209b0ed51c0 ! .hgtags Changeset: 562a3d356de6 Author:amurillo Date: 2013-10-04 14:10 -0700 URL:

hg: hsx/hotspot-rt/hotspot: 54 new changesets

2013-10-19 Thread calvin . cheung
Changeset: 02d171a3b5d1 Author:cl Date: 2013-10-10 10:08 -0700 URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/02d171a3b5d1 Added tag jdk8-b111 for changeset f6962730bbde ! .hgtags Changeset: 4a845c7a4638 Author:amurillo Date: 2013-10-11 13:00 -0700 URL:

hg: hsx/hotspot-rt/hotspot: 6 new changesets

2013-10-21 Thread calvin . cheung
Changeset: aeae561a6d0b Author:cl Date: 2013-10-17 09:40 -0700 URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/aeae561a6d0b Added tag jdk8-b112 for changeset 0ed9a90f45e1 ! .hgtags Changeset: 23b8db5ea31d Author:amurillo Date: 2013-10-18 21:30 -0700 URL:

hg: hsx/hotspot-rt/hotspot: 41 new changesets

2013-10-27 Thread calvin . cheung
Changeset: f9d4ed6c88dd Author:dholmes Date: 2013-10-21 20:51 -0400 URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/f9d4ed6c88dd 8026872: [TESTBUG] Classes OOMCrashClass4000_1.class and OOMCrashClass1960_2.class from runtime/ClassFile/ tests won't run on compact profile

Re: RFR: 8254125: Assertion in cppVtables.cpp during builds on 32bit Windows [v3]

2020-10-14 Thread Calvin Cheung
On Tue, 13 Oct 2020 06:46:27 GMT, Ioi Lam wrote: >> **Problem:** when iterating over the cloned vtables, the original code >> assumes that they are laid out consecutively in >> memory. However, since >> [JDK-8224509](https://bugs.openjdk.java.net/browse/JDK-8224509), the memory >> allocated

Re: [jdk16] RFR: 8258832: ProblemList com/sun/jdi/AfterThreadDeathTest.java on Linux-X64

2020-12-22 Thread Calvin Cheung
On Tue, 22 Dec 2020 17:42:49 GMT, Daniel D. Daugherty wrote: > This is a trivial fix to ProblemList com/sun/jdi/AfterThreadDeathTest.java on > Linux-X64. Looks good and trivial. - Marked as reviewed by ccheung (Reviewer). PR: https://git.openjdk.java.net/jdk16/pull/59

Re: RFR: 8259070: Add jcmd option to dump CDS

2021-02-26 Thread Calvin Cheung
On Fri, 26 Feb 2021 00:03:40 GMT, Yumin Qi wrote: > Hi, Please review > > Added jcmd option for dumping CDS archive during application runtime. > Before this change, user has to dump shared archive in two steps: first run > application with > `java -XX:DumpLoadedClassList= ` > to c

Re: RFR: 8259070: Add jcmd option to dump CDS [v6]

2021-03-24 Thread Calvin Cheung
On Wed, 24 Mar 2021 15:35:55 GMT, Yumin Qi wrote: >> Hi, Please review >> >> Added jcmd option for dumping CDS archive during application runtime. >> Before this change, user has to dump shared archive in two steps: first run >> application with >> `java -XX:DumpLoadedClassList= ` >

Re: RFR: 8259070: Add jcmd option to dump CDS [v6]

2021-03-24 Thread Calvin Cheung
On Wed, 24 Mar 2021 15:35:55 GMT, Yumin Qi wrote: >> Hi, Please review >> >> Added jcmd option for dumping CDS archive during application runtime. >> Before this change, user has to dump shared archive in two steps: first run >> application with >> `java -XX:DumpLoadedClassList= ` >

Re: RFR: 8259070: Add jcmd option to dump CDS [v6]

2021-03-25 Thread Calvin Cheung
On Wed, 24 Mar 2021 15:35:55 GMT, Yumin Qi wrote: >> Hi, Please review >> >> Added jcmd option for dumping CDS archive during application runtime. >> Before this change, user has to dump shared archive in two steps: first run >> application with >> `java -XX:DumpLoadedClassList= ` >

Re: RFR: 8264193: Remove TRAPS parameters for modules and defaultmethods

2021-03-29 Thread Calvin Cheung
On Mon, 29 Mar 2021 17:40:09 GMT, Harold Seigel wrote: > Please review this change for JDK-8264193 to remove unneeded TRAPS parameters > from modules and default methods files. Besides removing TRAPS, > Modules::get_named_module() was changed to return an oop instead of a > jobject, removing

Re: RFR: 8259070: Add jcmd option to dump CDS [v11]

2021-04-14 Thread Calvin Cheung
On Tue, 13 Apr 2021 23:04:24 GMT, Yumin Qi wrote: >> Hi, Please review >> >> Added jcmd option for dumping CDS archive during application runtime. >> Before this change, user has to dump shared archive in two steps: first run >> application with >> `java -XX:DumpLoadedClassList= ` >

Re: RFR: 8259070: Add jcmd option to dump CDS [v11]

2021-04-14 Thread Calvin Cheung
On Tue, 13 Apr 2021 23:04:24 GMT, Yumin Qi wrote: >> Hi, Please review >> >> Added jcmd option for dumping CDS archive during application runtime. >> Before this change, user has to dump shared archive in two steps: first run >> application with >> `java -XX:DumpLoadedClassList= ` >

Re: [jdk17] RFR: 8269314: ProblemList serviceability/dcmd/gc/RunFinalizationTest.java on Win-X64 and linux-aarch64

2021-06-24 Thread Calvin Cheung
On Thu, 24 Jun 2021 18:51:01 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList serviceability/dcmd/gc/RunFinalizationTest.java > on Win-X64 and linux-aarch64. One question. test/hotspot/jtreg/ProblemList.txt line 113: > 111: > serviceability/jvmti/HeapMonitor/MyPackage/HeapMoni

Re: [jdk17] RFR: 8269314: ProblemList serviceability/dcmd/gc/RunFinalizationTest.java on Win-X64 and linux-aarch64

2021-06-24 Thread Calvin Cheung
On Thu, 24 Jun 2021 19:04:05 GMT, Daniel D. Daugherty wrote: >> test/hotspot/jtreg/ProblemList.txt line 113: >> >>> 111: >>> serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatArrayCorrectnessTest.java >>> 8224150 generic-all >>> 112: serviceability/jvmti/ModuleAwareAgents/ThreadStart/

Re: [jdk17] RFR: 8269314: ProblemList serviceability/dcmd/gc/RunFinalizationTest.java on Win-X64 and linux-aarch64

2021-06-24 Thread Calvin Cheung
On Thu, 24 Jun 2021 18:51:01 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList serviceability/dcmd/gc/RunFinalizationTest.java > on Win-X64 and linux-aarch64. Marked as reviewed by ccheung (Reviewer). - PR: https://git.openjdk.java.net/jdk17/pull/138

Re: RFR: 8273152: Refactor CDS FileMapHeader loading code [v2]

2021-10-01 Thread Calvin Cheung
On Thu, 30 Sep 2021 16:23:34 GMT, Yumin Qi wrote: >> Please review, >> Refactor fundamental CDS FileMapHeader code for reliable reading of basic >> info from shared archive. >> With the change, it makes it possible to read an archive generated by >> different version of hotspot. Also it is

Re: RFR: 8273152: Refactor CDS FileMapHeader loading code [v8]

2021-10-07 Thread Calvin Cheung
On Wed, 6 Oct 2021 21:53:30 GMT, Yumin Qi wrote: >> Please review, >> Refactor fundamental CDS FileMapHeader code for reliable reading of basic >> info from shared archive. >> With the change, it makes it possible to read an archive generated by >> different version of hotspot. Also it is p

Re: RFR: 8277481: Obsolete seldom used CDS flags

2021-12-10 Thread Calvin Cheung
On Fri, 10 Dec 2021 15:01:29 GMT, Harold Seigel wrote: > Please review this change to obsolete deprecated CDS options UseSharedSpaces, > RequireSharedSpaces, DynamicDumpSharedSpaces, and DumpSharedSpaces. The > change was tested by running Mach5 tiers 1-2 on Linux, Mac OS, and Windows > and M

Re: [jdk18] Integrated: 8280034: ProblemList jdk/jfr/api/consumer/recordingstream/TestOnEvent.java on linux-x64

2022-01-14 Thread Calvin Cheung
On Fri, 14 Jan 2022 17:41:20 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList > jdk/jfr/api/consumer/recordingstream/TestOnEvent.java on linux-x64. LGTM. - Marked as reviewed by ccheung (Reviewer). PR: https://git.openjdk.java.net/jdk18/pull/102

Re: RFR: 8280543: Update the "java" and "jcmd" tool specification for CDS

2022-01-31 Thread Calvin Cheung
On Fri, 28 Jan 2022 01:53:09 GMT, Ioi Lam wrote: > The discussion of CDS in the man pages need to be cleaned up and updated to > match the latest functionalities and intended usage. > > For java.md: > > - Reorganized the flow of the doc: Overview -> How to use -> How to create -> > Restricti