mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
Disable escape analysis when jvmti/debugger is used. Add support for EA ibto SA. Reviewed-by: never
This commit is contained in:
parent
0429abd38a
commit
7b9d6a79ac
22 changed files with 350 additions and 33 deletions
|
@ -606,6 +606,7 @@ JvmtiEnvBase::count_locked_objects(JavaThread *java_thread, Handle hobj) {
|
|||
if (!mons->is_empty()) {
|
||||
for (int i = 0; i < mons->length(); i++) {
|
||||
MonitorInfo *mi = mons->at(i);
|
||||
if (mi->owner_is_scalar_replaced()) continue;
|
||||
|
||||
// see if owner of the monitor is our object
|
||||
if (mi->owner() != NULL && mi->owner() == hobj()) {
|
||||
|
@ -726,6 +727,8 @@ JvmtiEnvBase::get_locked_objects_in_frame(JavaThread* calling_thread, JavaThread
|
|||
for (int i = 0; i < mons->length(); i++) {
|
||||
MonitorInfo *mi = mons->at(i);
|
||||
|
||||
if (mi->owner_is_scalar_replaced()) continue;
|
||||
|
||||
oop obj = mi->owner();
|
||||
if (obj == NULL) {
|
||||
// this monitor doesn't have an owning object so skip it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue