# HG changeset patch # User Thomas Wuerthinger # Date 1362687857 -3600 # Node ID a2a67458a7b637f447cfc8880ec862db2a10fbce # Parent 466de7e331efed4403ff0da71ae9a12182326c30 Fix issue that caused IC stub to be uncleared for C1/C2. diff -r 466de7e331ef -r a2a67458a7b6 src/share/vm/code/compiledIC.cpp --- 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