Duplicate :
|
There are ensure_metadata_alive calls for various weak metadata accesses within the ci, which may or may not be the complete set. Move the gc barrier code to ciInstanceKlass creation. This will keep classes from being unloaded for metadata that is a weak root. Also move the anonymous case special case to the same code so it's all in the same place.