changeset 594 | 9f4474e5dbaf |
parent 589 | a44a1e70a3e4 |
child 762 | 1b26adb5fea1 |
child 670 | ddf3e9583f2f |
child 1376 | f7fc7a708b63 |
--- a/hotspot/src/share/vm/opto/macro.cpp Wed May 28 21:06:24 2008 -0700 +++ b/hotspot/src/share/vm/opto/macro.cpp Thu May 29 12:04:14 2008 -0700 @@ -458,7 +458,7 @@ } } else if (use->is_SafePoint()) { SafePointNode* sfpt = use->as_SafePoint(); - if (sfpt->has_non_debug_use(res)) { + if (sfpt->is_Call() && sfpt->as_Call()->has_non_debug_use(res)) { // Object is passed as argument. DEBUG_ONLY(disq_node = use;) NOT_PRODUCT(fail_eliminate = "Object is passed as argument";)