< prev index next >
src/share/vm/oops/constantPool.cpp
Print this page
@@ -130,11 +130,15 @@
}
}
}
objArrayOop ConstantPool::resolved_references() const {
+ if (_cache == NULL) {
+ return NULL;
+ } else {
return (objArrayOop)_cache->resolved_references();
+ }
}
// Create resolved_references array and mapping array for original cp indexes
// The ldc bytecode was rewritten to have the resolved reference array index so need a way
// to map it back for resolving and some unlikely miscellaneous uses.
< prev index next >