aboutsummaryrefslogtreecommitdiff
path: root/src/share/vm/opto/macro.cpp
diff options
context:
space:
mode:
authorkvn <none@none>2008-05-29 12:04:14 -0700
committerkvn <none@none>2008-05-29 12:04:14 -0700
commitd2264d1e187eba157f23c4c49b619df9137be8b0 (patch)
treeef94b6a5b69b1cbf96d3771382918acde45df226 /src/share/vm/opto/macro.cpp
parent2ca95a93bc7064fc99e3af591181c8196b776015 (diff)
downloadjdk8u_hotspot-d2264d1e187eba157f23c4c49b619df9137be8b0.tar.gz
6705887: Compressed Oops: generate x64 addressing and implicit null checks with narrow oops
Summary: Generate addresses and implicit null checks with narrow oops to avoid decoding. Reviewed-by: jrose, never
Diffstat (limited to 'src/share/vm/opto/macro.cpp')
-rw-r--r--src/share/vm/opto/macro.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/share/vm/opto/macro.cpp b/src/share/vm/opto/macro.cpp
index b2614a3a6..7ac6b320e 100644
--- a/src/share/vm/opto/macro.cpp
+++ b/src/share/vm/opto/macro.cpp
@@ -458,7 +458,7 @@ bool PhaseMacroExpand::can_eliminate_allocation(AllocateNode *alloc, GrowableArr
}
} 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";)