equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
231 _jvmti_can_access_local_variables = JvmtiExport::can_access_local_variables(); |
231 _jvmti_can_access_local_variables = JvmtiExport::can_access_local_variables(); |
232 _jvmti_can_post_on_exceptions = JvmtiExport::can_post_on_exceptions(); |
232 _jvmti_can_post_on_exceptions = JvmtiExport::can_post_on_exceptions(); |
233 _jvmti_can_pop_frame = JvmtiExport::can_pop_frame(); |
233 _jvmti_can_pop_frame = JvmtiExport::can_pop_frame(); |
234 } |
234 } |
235 |
235 |
236 bool ciEnv::should_retain_local_variables() const { |
|
237 return _jvmti_can_access_local_variables || _jvmti_can_pop_frame; |
|
238 } |
|
239 |
|
240 bool ciEnv::jvmti_state_changed() const { |
236 bool ciEnv::jvmti_state_changed() const { |
241 if (!_jvmti_can_access_local_variables && |
237 if (!_jvmti_can_access_local_variables && |
242 JvmtiExport::can_access_local_variables()) { |
238 JvmtiExport::can_access_local_variables()) { |
243 return true; |
239 return true; |
244 } |
240 } |