Skip to content
Permalink
Browse files
8271869: AArch64: build errors with GCC11 in frame::saved_oop_result
Reviewed-by: ngasson, aph
  • Loading branch information
a74nh authored and nick-arm committed Aug 10, 2021
1 parent 089e83b commit 1f8813495e8184b6c38319df1c2cb70de7811a76
Showing 1 changed file with 6 additions and 0 deletions.
@@ -236,14 +236,20 @@ inline JavaCallWrapper** frame::entry_frame_call_wrapper_addr() const {
// Compiled frames

inline oop frame::saved_oop_result(RegisterMap* map) const {
PRAGMA_DIAG_PUSH
PRAGMA_NONNULL_IGNORED
oop* result_adr = (oop *)map->location(r0->as_VMReg());
PRAGMA_DIAG_POP
guarantee(result_adr != NULL, "bad register save location");

return (*result_adr);
}

inline void frame::set_saved_oop_result(RegisterMap* map, oop obj) {
PRAGMA_DIAG_PUSH
PRAGMA_NONNULL_IGNORED
oop* result_adr = (oop *)map->location(r0->as_VMReg());
PRAGMA_DIAG_POP
guarantee(result_adr != NULL, "bad register save location");

*result_adr = obj;

1 comment on commit 1f88134

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 1f88134 Aug 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.