Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v6]

2024-09-04 Thread Coleen Phillimore
On Tue, 3 Sep 2024 12:33:47 GMT, Coleen Phillimore wrote: >> Move JVM implementation access flags that are not specified by the classfile >> format into Klass so we can shrink AccessFlags to u2 in a future change. >> >> Tested with tier1-7. >> >> NOTE: there are arm, ppc and s390 changes to th

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v6]

2024-09-04 Thread Matias Saavedra Silva
On Tue, 3 Sep 2024 12:33:47 GMT, Coleen Phillimore wrote: >> Move JVM implementation access flags that are not specified by the classfile >> format into Klass so we can shrink AccessFlags to u2 in a future change. >> >> Tested with tier1-7. >> >> NOTE: there are arm, ppc and s390 changes to th

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v3]

2024-09-03 Thread Coleen Phillimore
On Fri, 30 Aug 2024 22:25:54 GMT, Dean Long wrote: >> Really, this is better? it adds three parameters. I made this change. > > It reduces duplicate code, which is usually good. Yes, I like it better. Ok! - PR Review Comment: https://git.openjdk.org/jdk/pull/20719#discussion_r174

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-09-03 Thread Coleen Phillimore
On Tue, 3 Sep 2024 08:42:23 GMT, Yudi Zheng wrote: >> I made the change to refactor the getMiscFlags function, but if you want to >> add knowledge of the KlassFlags class (and InstanceKlassFlags also), you >> could do that separately from this PR. > > I think JVMCI already knows these type via

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v5]

2024-09-03 Thread Coleen Phillimore
On Sat, 31 Aug 2024 10:22:29 GMT, ExE Boss wrote: >> Coleen Phillimore has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Add parameters and rename generate_klass_flags_guard. > > src/hotspot/share/opto/library_call.hpp line 161: > >> 159:

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v3]

2024-09-03 Thread Coleen Phillimore
On Mon, 2 Sep 2024 10:30:25 GMT, Amit Kumar wrote: >> Thanks Chris and Matias for reviewing parts of this. > > Hi @coleenp, > > I got this error while build on my Mac-M1, did you see something like this ? > : > > ERROR: Failed to generate link optimization data. This is likely a problem > w

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v6]

2024-09-03 Thread Coleen Phillimore
> Move JVM implementation access flags that are not specified by the classfile > format into Klass so we can shrink AccessFlags to u2 in a future change. > > Tested with tier1-7. > > NOTE: there are arm, ppc and s390 changes to this that are just a guess. > Also, graal changes. Coleen Phillim

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-09-03 Thread Yudi Zheng
On Fri, 30 Aug 2024 20:23:54 GMT, Coleen Phillimore wrote: >> I don't think the JVMCI knows about the type KlassFlags - I used the same >> code that I used for InstanceKlass::_misc_flags._flags (see above this). > > I made the change to refactor the getMiscFlags function, but if you want to >

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v5]

2024-09-03 Thread Yudi Zheng
On Fri, 30 Aug 2024 21:51:49 GMT, Coleen Phillimore wrote: >> Move JVM implementation access flags that are not specified by the classfile >> format into Klass so we can shrink AccessFlags to u2 in a future change. >> >> Tested with tier1-7. >> >> NOTE: there are arm, ppc and s390 changes to t

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v5]

2024-09-03 Thread Tobias Hartmann
On Fri, 30 Aug 2024 21:51:49 GMT, Coleen Phillimore wrote: >> Move JVM implementation access flags that are not specified by the classfile >> format into Klass so we can shrink AccessFlags to u2 in a future change. >> >> Tested with tier1-7. >> >> NOTE: there are arm, ppc and s390 changes to t

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v3]

2024-09-02 Thread Amit Kumar
On Fri, 30 Aug 2024 20:11:06 GMT, Coleen Phillimore wrote: >> Coleen Phillimore has updated the pull request incrementally with three >> additional commits since the last revision: >> >> - Fix jvmci code. >> - Some C2 refactoring. >> - Assembly corrections from Matias and Dean. > > Thanks Ch

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v5]

2024-08-31 Thread ExE Boss
On Fri, 30 Aug 2024 21:51:49 GMT, Coleen Phillimore wrote: >> Move JVM implementation access flags that are not specified by the classfile >> format into Klass so we can shrink AccessFlags to u2 in a future change. >> >> Tested with tier1-7. >> >> NOTE: there are arm, ppc and s390 changes to t

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v5]

2024-08-30 Thread Dean Long
On Fri, 30 Aug 2024 21:51:49 GMT, Coleen Phillimore wrote: >> Move JVM implementation access flags that are not specified by the classfile >> format into Klass so we can shrink AccessFlags to u2 in a future change. >> >> Tested with tier1-7. >> >> NOTE: there are arm, ppc and s390 changes to t

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v3]

2024-08-30 Thread Dean Long
On Fri, 30 Aug 2024 21:35:49 GMT, Coleen Phillimore wrote: >> src/hotspot/share/opto/library_call.cpp line 3777: >> >>> 3775: Node* p = basic_plus_adr(kls, in_bytes(Klass::misc_flags_offset())); >>> 3776: Node* mods = make_load(nullptr, p, TypeInt::UBYTE, T_BOOLEAN, >>> MemNode::unordered);

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-30 Thread Coleen Phillimore
On Fri, 30 Aug 2024 21:25:18 GMT, Vladimir Ivanov wrote: >> I added a global typedef klass_flags_t because it didn't look confusing vs >> KlassFlags and KlassFlags_t, and the lower case convention is something we >> usually use for typedefs. > > I agree with Dean. I don't see why the value can'

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v5]

2024-08-30 Thread Coleen Phillimore
> Move JVM implementation access flags that are not specified by the classfile > format into Klass so we can shrink AccessFlags to u2 in a future change. > > Tested with tier1-7. > > NOTE: there are arm, ppc and s390 changes to this that are just a guess. > Also, graal changes. Coleen Phillim

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v3]

2024-08-30 Thread Coleen Phillimore
On Fri, 30 Aug 2024 20:22:38 GMT, Dean Long wrote: >> Coleen Phillimore has updated the pull request incrementally with three >> additional commits since the last revision: >> >> - Fix jvmci code. >> - Some C2 refactoring. >> - Assembly corrections from Matias and Dean. > > src/hotspot/share

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-30 Thread Vladimir Ivanov
On Fri, 30 Aug 2024 12:58:17 GMT, Coleen Phillimore wrote: >> src/hotspot/share/ci/ciKlass.cpp line 233: >> >>> 231: jint ciKlass::misc_flags() { >>> 232: assert(is_loaded(), "not loaded"); >>> 233: GUARDED_VM_ENTRY( >> >> To Compiler folks: I don't think the VM_ENTRY is necessary, but if i

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v3]

2024-08-30 Thread Dean Long
On Fri, 30 Aug 2024 14:00:44 GMT, Coleen Phillimore wrote: >> Move JVM implementation access flags that are not specified by the classfile >> format into Klass so we can shrink AccessFlags to u2 in a future change. >> >> Tested with tier1-7. >> >> NOTE: there are arm, ppc and s390 changes to t

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-30 Thread Coleen Phillimore
On Fri, 30 Aug 2024 14:11:08 GMT, Coleen Phillimore wrote: >> src/hotspot/share/jvmci/vmStructs_jvmci.cpp line 274: >> >>> 272: nonstatic_field(Klass, _bitmap, >>>uintx) \ >>> 273: nonstatic_field(K

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v4]

2024-08-30 Thread Coleen Phillimore
> Move JVM implementation access flags that are not specified by the classfile > format into Klass so we can shrink AccessFlags to u2 in a future change. > > Tested with tier1-7. > > NOTE: there are arm, ppc and s390 changes to this that are just a guess. > Also, graal changes. Coleen Phillim

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v3]

2024-08-30 Thread Coleen Phillimore
On Fri, 30 Aug 2024 14:00:44 GMT, Coleen Phillimore wrote: >> Move JVM implementation access flags that are not specified by the classfile >> format into Klass so we can shrink AccessFlags to u2 in a future change. >> >> Tested with tier1-7. >> >> NOTE: there are arm, ppc and s390 changes to t

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v3]

2024-08-30 Thread Matias Saavedra Silva
On Fri, 30 Aug 2024 14:00:44 GMT, Coleen Phillimore wrote: >> Move JVM implementation access flags that are not specified by the classfile >> format into Klass so we can shrink AccessFlags to u2 in a future change. >> >> Tested with tier1-7. >> >> NOTE: there are arm, ppc and s390 changes to t

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-30 Thread Coleen Phillimore
On Fri, 30 Aug 2024 13:45:16 GMT, Yudi Zheng wrote: >> Coleen Phillimore has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Add in graal flags and a comment. > > src/hotspot/share/jvmci/vmStructs_jvmci.cpp line 274: > >> 272: nonstatic_f

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-30 Thread Coleen Phillimore
On Thu, 29 Aug 2024 22:03:39 GMT, Dean Long wrote: >> Coleen Phillimore has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Add in graal flags and a comment. > > src/hotspot/cpu/s390/c1_MacroAssembler_s390.cpp line 76: > >> 74: load_kla

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-30 Thread Coleen Phillimore
On Thu, 29 Aug 2024 22:40:43 GMT, Dean Long wrote: >> src/hotspot/share/oops/klass.hpp line 436: >> >>> 434: #endif >>> 435: static ByteSize bitmap_offset(){ return >>> byte_offset_of(Klass, _bitmap); } >>> 436: static ByteSize misc_flags_offset(){ return >>> by

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-30 Thread Coleen Phillimore
On Thu, 29 Aug 2024 21:03:09 GMT, Matias Saavedra Silva wrote: >> Coleen Phillimore has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Add in graal flags and a comment. > > src/hotspot/cpu/aarch64/interp_masm_aarch64.cpp line 694: > >> 69

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-30 Thread Coleen Phillimore
On Thu, 29 Aug 2024 18:50:42 GMT, Coleen Phillimore wrote: >> Move JVM implementation access flags that are not specified by the classfile >> format into Klass so we can shrink AccessFlags to u2 in a future change. >> >> Tested with tier1-7. >> >> NOTE: there are arm, ppc and s390 changes to t

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v3]

2024-08-30 Thread Coleen Phillimore
> Move JVM implementation access flags that are not specified by the classfile > format into Klass so we can shrink AccessFlags to u2 in a future change. > > Tested with tier1-7. > > NOTE: there are arm, ppc and s390 changes to this that are just a guess. > Also, graal changes. Coleen Phillim

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-30 Thread Yudi Zheng
On Thu, 29 Aug 2024 18:50:42 GMT, Coleen Phillimore wrote: >> Move JVM implementation access flags that are not specified by the classfile >> format into Klass so we can shrink AccessFlags to u2 in a future change. >> >> Tested with tier1-7. >> >> NOTE: there are arm, ppc and s390 changes to t

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-29 Thread Chris Plummer
On Thu, 29 Aug 2024 18:50:42 GMT, Coleen Phillimore wrote: >> Move JVM implementation access flags that are not specified by the classfile >> format into Klass so we can shrink AccessFlags to u2 in a future change. >> >> Tested with tier1-7. >> >> NOTE: there are arm, ppc and s390 changes to t

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-29 Thread Dean Long
On Thu, 29 Aug 2024 18:50:42 GMT, Coleen Phillimore wrote: >> Move JVM implementation access flags that are not specified by the classfile >> format into Klass so we can shrink AccessFlags to u2 in a future change. >> >> Tested with tier1-7. >> >> NOTE: there are arm, ppc and s390 changes to t

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-29 Thread Dean Long
On Thu, 29 Aug 2024 18:50:42 GMT, Coleen Phillimore wrote: >> Move JVM implementation access flags that are not specified by the classfile >> format into Klass so we can shrink AccessFlags to u2 in a future change. >> >> Tested with tier1-7. >> >> NOTE: there are arm, ppc and s390 changes to t

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-29 Thread Dean Long
On Thu, 29 Aug 2024 22:29:43 GMT, Dean Long wrote: >> Coleen Phillimore has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Add in graal flags and a comment. > > src/hotspot/share/ci/ciKlass.cpp line 231: > >> 229: // --

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-29 Thread Dean Long
On Thu, 29 Aug 2024 18:50:42 GMT, Coleen Phillimore wrote: >> Move JVM implementation access flags that are not specified by the classfile >> format into Klass so we can shrink AccessFlags to u2 in a future change. >> >> Tested with tier1-7. >> >> NOTE: there are arm, ppc and s390 changes to t

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-29 Thread Dean Long
On Thu, 29 Aug 2024 18:50:42 GMT, Coleen Phillimore wrote: >> Move JVM implementation access flags that are not specified by the classfile >> format into Klass so we can shrink AccessFlags to u2 in a future change. >> >> Tested with tier1-7. >> >> NOTE: there are arm, ppc and s390 changes to t

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-29 Thread Dean Long
On Thu, 29 Aug 2024 18:50:42 GMT, Coleen Phillimore wrote: >> Move JVM implementation access flags that are not specified by the classfile >> format into Klass so we can shrink AccessFlags to u2 in a future change. >> >> Tested with tier1-7. >> >> NOTE: there are arm, ppc and s390 changes to t

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-29 Thread Dean Long
On Thu, 29 Aug 2024 18:50:42 GMT, Coleen Phillimore wrote: >> Move JVM implementation access flags that are not specified by the classfile >> format into Klass so we can shrink AccessFlags to u2 in a future change. >> >> Tested with tier1-7. >> >> NOTE: there are arm, ppc and s390 changes to t

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-29 Thread Matias Saavedra Silva
On Thu, 29 Aug 2024 18:50:42 GMT, Coleen Phillimore wrote: >> Move JVM implementation access flags that are not specified by the classfile >> format into Klass so we can shrink AccessFlags to u2 in a future change. >> >> Tested with tier1-7. >> >> NOTE: there are arm, ppc and s390 changes to t

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-29 Thread Coleen Phillimore
On Thu, 29 Aug 2024 16:28:29 GMT, Yudi Zheng wrote: >> src/hotspot/share/jvmci/vmStructs_jvmci.cpp line 484: >> >>> 482: declare_constant(JVMCINMethodData::SPECULATION_LENGTH_BITS) >>>\ >>> 483: >>>\ >>>

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-29 Thread Coleen Phillimore
On Thu, 29 Aug 2024 16:39:51 GMT, John R Rose wrote: >> Coleen Phillimore has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Add in graal flags and a comment. > > src/hotspot/share/oops/klass.hpp line 198: > >> 196: #endif >> 197: >> 198:

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags [v2]

2024-08-29 Thread Coleen Phillimore
> Move JVM implementation access flags that are not specified by the classfile > format into Klass so we can shrink AccessFlags to u2 in a future change. > > Tested with tier1-7. > > NOTE: there are arm, ppc and s390 changes to this that are just a guess. > Also, graal changes. Coleen Phillim

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags

2024-08-29 Thread John R Rose
On Mon, 26 Aug 2024 23:54:22 GMT, Coleen Phillimore wrote: > Move JVM implementation access flags that are not specified by the classfile > format into Klass so we can shrink AccessFlags to u2 in a future change. > > Tested with tier1-7. > > NOTE: there are arm, ppc and s390 changes to this th

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags

2024-08-29 Thread Yudi Zheng
On Thu, 29 Aug 2024 16:22:22 GMT, Gilles Duboscq wrote: >> Move JVM implementation access flags that are not specified by the classfile >> format into Klass so we can shrink AccessFlags to u2 in a future change. >> >> Tested with tier1-7. >> >> NOTE: there are arm, ppc and s390 changes to this

Re: RFR: 8339112: Move JVM Klass flags out of AccessFlags

2024-08-29 Thread Gilles Duboscq
On Mon, 26 Aug 2024 23:54:22 GMT, Coleen Phillimore wrote: > Move JVM implementation access flags that are not specified by the classfile > format into Klass so we can shrink AccessFlags to u2 in a future change. > > Tested with tier1-7. > > NOTE: there are arm, ppc and s390 changes to this th

RFR: 8339112: Move JVM Klass flags out of AccessFlags

2024-08-29 Thread Coleen Phillimore
Move JVM implementation access flags that are not specified by the classfile format into Klass so we can shrink AccessFlags to u2 in a future change. Tested with tier1-7. NOTE: there are arm, ppc and s390 changes to this that are just a guess. Also, graal changes. - Commit messag