changeset 54299:656789f95658

8221479: Fix JFR profiling on s390 Reviewed-by: mdoerr, clanger
author ghaug
date Tue, 26 Mar 2019 16:00:20 +0100
parents 6207397a6603
children 1b85f55c9aa2
files src/hotspot/os_cpu/linux_s390/thread_linux_s390.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/os_cpu/linux_s390/thread_linux_s390.cpp	Tue Mar 26 15:00:02 2019 -0700
+++ b/src/hotspot/os_cpu/linux_s390/thread_linux_s390.cpp	Tue Mar 26 16:00:20 2019 +0100
@@ -1,6 +1,6 @@
 /*
- * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
- * Copyright (c) 2016 SAP SE. All rights reserved.
+ * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2019 SAP SE. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -63,7 +63,7 @@
 
     if (ret_frame.is_interpreted_frame()) {
       frame::z_ijava_state* istate = ret_frame.ijava_state_unchecked();
-       if (!((Method*)(istate->method))->is_metaspace_object()) {
+       if ((stack_base() >= (address)istate && (address)istate > stack_end()) || !((Method*)(istate->method))->is_metaspace_object()) {
          return false;
        }
        uint64_t reg_bcp = uc->uc_mcontext.gregs[13/*Z_BCP*/];