mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-25 07:09:55 +00:00
8311074: RISC-V: Fix -Wconversion warnings in some code header files
Reviewed-by: fyang, coleenp
This commit is contained in:
parent
11fd34e196
commit
77e7b6d2a1
@ -219,7 +219,7 @@ template<typename FKind> frame ThawBase::new_stack_frame(const frame& hf, frame&
|
||||
intptr_t* heap_sp = hf.unextended_sp();
|
||||
// If caller is interpreted it already made room for the callee arguments
|
||||
int overlap = caller.is_interpreted_frame() ? ContinuationHelper::InterpretedFrame::stack_argsize(hf) : 0;
|
||||
const int fsize = ContinuationHelper::InterpretedFrame::frame_bottom(hf) - hf.unextended_sp() - overlap;
|
||||
const int fsize = (int)(ContinuationHelper::InterpretedFrame::frame_bottom(hf) - hf.unextended_sp() - overlap);
|
||||
const int locals = hf.interpreter_frame_method()->max_locals();
|
||||
intptr_t* frame_sp = caller.unextended_sp() - fsize;
|
||||
intptr_t* fp = frame_sp + (hf.fp() - heap_sp);
|
||||
|
||||
@ -226,7 +226,7 @@ inline intptr_t* frame::real_fp() const {
|
||||
|
||||
inline int frame::frame_size() const {
|
||||
return is_interpreted_frame()
|
||||
? sender_sp() - sp()
|
||||
? pointer_delta_as_int(sender_sp(), sp())
|
||||
: cb()->frame_size();
|
||||
}
|
||||
|
||||
|
||||
@ -114,8 +114,8 @@ inline int StackChunkFrameStream<frame_kind>::interpreter_frame_num_oops() const
|
||||
f.interpreted_frame_oop_map(&mask);
|
||||
return mask.num_oops()
|
||||
+ 1 // for the mirror oop
|
||||
+ ((intptr_t*)f.interpreter_frame_monitor_begin()
|
||||
- (intptr_t*)f.interpreter_frame_monitor_end()) / BasicObjectLock::size();
|
||||
+ pointer_delta_as_int((intptr_t*)f.interpreter_frame_monitor_begin(),
|
||||
(intptr_t*)f.interpreter_frame_monitor_end()) / BasicObjectLock::size();
|
||||
}
|
||||
|
||||
template<>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user