|
68 | 68 | #include "utilities/copy.hpp" |
69 | 69 | #include "utilities/dtrace.hpp" |
70 | 70 | #include "utilities/events.hpp" |
| 71 | +#include "utilities/globalDefinitions.hpp" |
71 | 72 | #include "utilities/resourceHash.hpp" |
72 | 73 | #include "utilities/xmlstream.hpp" |
73 | 74 | #if INCLUDE_JVMCI |
@@ -520,7 +521,7 @@ nmethod* nmethod::new_nmethod(const methodHandle& method, |
520 | 521 | CodeBlob::allocation_size(code_buffer, sizeof(nmethod)) |
521 | 522 | + adjust_pcs_size(debug_info->pcs_size()) |
522 | 523 | + align_up((int)dependencies->size_in_bytes(), oopSize) |
523 | | - + align_up(native_invokers.data_size_in_bytes() , oopSize) |
| 524 | + + align_up(checked_cast<int>(native_invokers.data_size_in_bytes()), oopSize) |
524 | 525 | + align_up(handler_table->size_in_bytes() , oopSize) |
525 | 526 | + align_up(nul_chk_table->size_in_bytes() , oopSize) |
526 | 527 | #if INCLUDE_JVMCI |
@@ -801,7 +802,7 @@ nmethod::nmethod( |
801 | 802 | _scopes_pcs_offset = scopes_data_offset + align_up(debug_info->data_size (), oopSize); |
802 | 803 | _dependencies_offset = _scopes_pcs_offset + adjust_pcs_size(debug_info->pcs_size()); |
803 | 804 | _native_invokers_offset = _dependencies_offset + align_up((int)dependencies->size_in_bytes(), oopSize); |
804 | | - _handler_table_offset = _native_invokers_offset + align_up(native_invokers.data_size_in_bytes(), oopSize); |
| 805 | + _handler_table_offset = _native_invokers_offset + align_up(checked_cast<int>(native_invokers.data_size_in_bytes()), oopSize); |
805 | 806 | _nul_chk_table_offset = _handler_table_offset + align_up(handler_table->size_in_bytes(), oopSize); |
806 | 807 | #if INCLUDE_JVMCI |
807 | 808 | _speculations_offset = _nul_chk_table_offset + align_up(nul_chk_table->size_in_bytes(), oopSize); |
|
0 commit comments