*** 3974,13 *** AllocateNode* AllocateNode::Ideal_allocation(Node* ptr) { if (ptr == nullptr) { // reduce dumb test in callers return nullptr; } - BarrierSetC2* bs = BarrierSet::barrier_set()->barrier_set_c2(); - ptr = bs->step_over_gc_barrier(ptr); - if (ptr->is_CheckCastPP()) { // strip only one raw-to-oop cast ptr = ptr->in(1); if (ptr == nullptr) return nullptr; } // Return null for allocations with several casts: --- 3974,10 ---