< prev index next >
src/hotspot/share/opto/type.cpp
Print this page
rev 57329 : 8234974: Shenandoah: Do concurrent roots even when no evacuation is necessary
*** 3049,3062 ****
// There are no instances of a general oop.
// Return self unchanged.
return this;
}
- const TypeOopPtr *TypeOopPtr::cast_to_nonconst() const {
- return this;
- }
-
//-----------------------------cast_to_exactness-------------------------------
const Type *TypeOopPtr::cast_to_exactness(bool klass_is_exact) const {
// There is no such thing as an exact general oop.
// Return self unchanged.
return this;
--- 3049,3058 ----
*** 3559,3573 ****
const TypeOopPtr *TypeInstPtr::cast_to_instance_id(int instance_id) const {
if( instance_id == _instance_id ) return this;
return make(_ptr, klass(), _klass_is_exact, const_oop(), _offset, instance_id, _speculative, _inline_depth);
}
- const TypeOopPtr *TypeInstPtr::cast_to_nonconst() const {
- if (const_oop() == NULL) return this;
- return make(NotNull, klass(), _klass_is_exact, NULL, _offset, _instance_id, _speculative, _inline_depth);
- }
-
//------------------------------xmeet_unloaded---------------------------------
// Compute the MEET of two InstPtrs when at least one is unloaded.
// Assume classes are different since called after check for same name/class-loader
const TypeInstPtr *TypeInstPtr::xmeet_unloaded(const TypeInstPtr *tinst) const {
int off = meet_offset(tinst->offset());
--- 3555,3564 ----
*** 4096,4110 ****
const TypeOopPtr *TypeAryPtr::cast_to_instance_id(int instance_id) const {
if( instance_id == _instance_id ) return this;
return make(_ptr, const_oop(), _ary, klass(), _klass_is_exact, _offset, instance_id, _speculative, _inline_depth);
}
- const TypeOopPtr *TypeAryPtr::cast_to_nonconst() const {
- if (const_oop() == NULL) return this;
- return make(NotNull, NULL, _ary, klass(), _klass_is_exact, _offset, _instance_id, _speculative, _inline_depth);
- }
-
//-----------------------------max_array_length-------------------------------
// A wrapper around arrayOopDesc::max_array_length(etype) with some input normalization.
jint TypeAryPtr::max_array_length(BasicType etype) {
if (!is_java_primitive(etype) && !is_reference_type(etype)) {
--- 4087,4096 ----
< prev index next >