changeset 8154:a2a67458a7b6

Fix issue that caused IC stub to be uncleared for C1/C2.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 07 Mar 2013 21:24:17 +0100
parents 466de7e331ef
children 3c29f7da5c66
files src/share/vm/code/compiledIC.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/code/compiledIC.cpp	Thu Mar 07 21:19:45 2013 +0100
+++ b/src/share/vm/code/compiledIC.cpp	Thu Mar 07 21:24:17 2013 +0100
@@ -95,7 +95,7 @@
   // Don't use ic_destination for this test since that forwards
   // through ICBuffer instead of returning the actual current state of
   // the CompiledIC.
-  if (is_icholder_entry(_ic_call->destination()) && !_is_optimized) {
+  if (is_icholder_entry(_ic_call->destination()) GRAAL_ONLY(&& _value != NULL)) {
     // When patching for the ICStub case the cached value isn't
     // overwritten until the ICStub copied into the CompiledIC during
     // the next safepoint.  Make sure that the CompiledICHolder* is