RFR: 8308396: Fix offset_of conversion warnings in runtime code [v4]

Amit Kumar amitkumar at openjdk.org
Fri May 19 14:30:53 UTC 2023


On Fri, 19 May 2023 11:49:34 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> src/hotspot/cpu/s390/sharedRuntime_s390.cpp line 2784:
>> 
>>> 2782: #ifndef VM_LITTLE_ENDIAN
>>> 2783:   + 3
>>> 2784: #endif
>> 
>> This is breaking build for s390x. 
>> 
>> 
>> /home/amit/jdk/src/hotspot/cpu/s390/sharedRuntime_s390.cpp: In static member function 'static void SharedRuntime::generate_uncommon_trap_blob()':           
>> /home/amit/jdk/src/hotspot/cpu/s390/sharedRuntime_s390.cpp:2783:3: error: no match for 'operator+' (operand types are 'ByteSize' and 'int')                 
>>    const int unpack_kind_byte_offset = Deoptimization::UnrollBlock::unpack_kind_offset()                                                                    
>>                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                    
>>  #ifndef VM_LITTLE_ENDIAN                                                                                                                                   
>>  ~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                   
>>    + 3                                                                                                                                                      
>>    ^~~                                                                                                                                                      
>> In file included from /home/amit/jdk/src/hotspot/share/utilities/exceptions.hpp:31,                                                                         
>>                  from /home/amit/jdk/src/hotspot/share/oops/metadata.hpp:28,                                                                                
>>                  from /home/amit/jdk/src/hotspot/share/oops/oop.hpp:32,                                                                                     
>>                  from /home/amit/jdk/src/hotspot/share/runtime/handles.hpp:29,
>>                  from /home/amit/jdk/src/hotspot/share/code/oopRecorder.hpp:28,                                                                            
>>                  from /home/amit/jdk/src/hotspot/share/asm/codeBuffer.hpp:28,
>>                  from /home/amit/jdk/src/hotspot/share/asm/assembler.hpp:28,
>>                  from /home/amit/jdk/src/hotspot/share/asm/macroAssembler.hpp:28,                                                                          
>>                  from ...
>
> I only built product so have now adjusted my cross builds to include debug for s390.   Thank you for testing s390!

oh, Got it. 

BTW thanks for considering suggestion & for this change as well 🙂

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/14053#discussion_r1199029787


More information about the hotspot-dev mailing list