diff src/share/vm/ci/ciMethodData.hpp @ 20278:2c6ef90f030a

8049421: G1 Class Unloading after completing a concurrent mark cycle Reviewed-by: tschatzl, ehelin, brutisso, coleenp, roland, iveresov Contributed-by: stefan.karlsson@oracle.com, mikael.gerdin@oracle.com
author stefank
date Mon, 07 Jul 2014 10:12:40 +0200
parents 606acabe7b5c
children 7848fc12602b
line wrap: on
line diff
--- a/src/share/vm/ci/ciMethodData.hpp	Tue Jul 01 09:03:55 2014 +0200
+++ b/src/share/vm/ci/ciMethodData.hpp	Mon Jul 07 10:12:40 2014 +0200
@@ -70,6 +70,7 @@
     Klass* v = TypeEntries::valid_klass(k);
     if (v != NULL) {
       ciKlass* klass = CURRENT_ENV->get_klass(v);
+      CURRENT_ENV->ensure_metadata_alive(klass);
       return with_status(klass, k);
     }
     return with_status(NULL, k);