src/hotspot/share/classfile/classListParser.cpp
changeset 51057 13ed0d538b89
parent 50625 d9753e3db0c6
child 51659 ca3003390cf0
--- a/src/hotspot/share/classfile/classListParser.cpp	Sun Jun 03 23:33:00 2018 -0700
+++ b/src/hotspot/share/classfile/classListParser.cpp	Fri Jul 13 13:58:17 2018 -0400
@@ -48,14 +48,13 @@
   _instance = this;
   _classlist_file = file;
   _file = fopen(file, "r");
-  _line_no = 0;
-  _interfaces = new (ResourceObj::C_HEAP, mtClass) GrowableArray<int>(10, true);
-
   if (_file == NULL) {
     char errmsg[JVM_MAXPATHLEN];
     os::lasterror(errmsg, JVM_MAXPATHLEN);
     vm_exit_during_initialization("Loading classlist failed", errmsg);
   }
+  _line_no = 0;
+  _interfaces = new (ResourceObj::C_HEAP, mtClass) GrowableArray<int>(10, true);
 }
 
 ClassListParser::~ClassListParser() {