< prev index next >
src/share/vm/opto/parseHelper.cpp
Print this page
rev 8961 : [mq]: diff-shenandoah.patch
*** 142,151 ****
--- 142,156 ----
// Shorthand access to array store elements without popping them.
Node *obj = peek(0);
Node *idx = peek(1);
Node *ary = peek(2);
+ if (ShenandoahVerifyReadsToFromSpace) {
+ obj = shenandoah_read_barrier(obj);
+ ary = shenandoah_read_barrier(ary);
+ }
+
if (_gvn.type(obj) == TypePtr::NULL_PTR) {
// There's never a type check on null values.
// This cutout lets us avoid the uncommon_trap(Reason_array_check)
// below, which turns into a performance liability if the
// gen_checkcast folds up completely.
< prev index next >