@@ -1253,47 +1253,6 @@ TR_J9VMBase::getStaticReferenceFieldAtAddress(uintptr_t fieldAddress)
12531253 return (uintptr_t )J9STATIC_OBJECT_LOAD (vmThread (), NULL , fieldAddress);
12541254 }
12551255
1256- TR_J9VMBase::ObjectClassInfo
1257- TR_J9VMBase::getObjectClassInfoFromObjectReferenceLocation (TR::Compilation *comp,
1258- uintptr_t objectReferenceLocation)
1259- {
1260- // The objectReferenceLocation is required to have come from
1261- // KnownObjectTable::getPointerLocation().
1262- TR::KnownObjectTable *knot = comp->getKnownObjectTable ();
1263- TR_ASSERT_FATAL (knot != NULL , " missing known object table" );
1264-
1265- TR::KnownObjectTable::Index knownObjectIndex =
1266- knot->getExistingIndexAt ((uintptr_t *)objectReferenceLocation);
1267-
1268- TR_ASSERT_FATAL (
1269- knownObjectIndex != TR::KnownObjectTable::UNKNOWN,
1270- " objectReferenceLocation must originate from the known object table" );
1271-
1272- TR_J9VMBase::ObjectClassInfo ci = {};
1273- TR::VMAccessCriticalSection vmAccess (comp);
1274-
1275- uintptr_t objectReference = knot->getPointer (knownObjectIndex);
1276- ci.clazz = getObjectClass (objectReference);
1277- ci.isString = isString (ci.clazz );
1278- ci.jlClass = getClassClassPointer (ci.clazz );
1279- ci.isFixedJavaLangClass = (ci.jlClass == ci.clazz );
1280- if (ci.isFixedJavaLangClass )
1281- {
1282- // A FixedClass constraint means something different
1283- // when the class happens to be java/lang/Class.
1284- // Must add constraints pertaining to the class that
1285- // the java/lang/Class object represents.
1286- ci.clazz = getClassFromJavaLangClass (objectReference);
1287- }
1288-
1289- ci.knownObjectIndex = knownObjectIndex;
1290-
1291- J9::ConstProvenanceGraph *cpg = comp->constProvenanceGraph ();
1292- cpg->addEdge (cpg->knownObject (knownObjectIndex), ci.clazz );
1293-
1294- return ci;
1295- }
1296-
12971256TR::KnownObjectTable::ObjectInfo
12981257TR_J9VMBase::getObjClassInfoFromKnotIndexNoCaching (TR::Compilation *comp, TR::KnownObjectTable::Index knotIndex)
12991258 {
0 commit comments