8219112: name_and_sig_as_C_string usages in frame_s390 miss ResourceMark
Reviewed-by: shade, lucy
--- a/src/hotspot/cpu/s390/frame_s390.cpp Tue Feb 19 08:58:55 2019 +0100
+++ b/src/hotspot/cpu/s390/frame_s390.cpp Mon Feb 18 09:38:43 2019 +0100
@@ -1,6 +1,6 @@
/*
- * Copyright (c) 2016, 2017, 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
@@ -479,6 +479,7 @@
// name
Method* method = *(Method**)((address)current_fp + _z_ijava_state_neg(method));
if (method) {
+ ResourceMark rm;
if (method->is_synchronized()) st->print("synchronized ");
if (method->is_static()) st->print("static ");
if (method->is_native()) st->print("native ");
@@ -543,6 +544,7 @@
// name
Method* method = ((nmethod *)blob)->method();
if (method) {
+ ResourceMark rm;
method->name_and_sig_as_C_string(buf, sizeof(buf));
st->print("%s ", buf);
}