< prev index next >

src/hotspot/share/classfile/classListParser.cpp

Print this page
rev 49225 : 8199472: Fix non-PCH build after JDK-8199319
Reviewed-by: coleenp, stefank


  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "jvm.h"
  27 #include "jimage.hpp"
  28 #include "classfile/classListParser.hpp"
  29 #include "classfile/classLoaderExt.hpp"
  30 #include "classfile/sharedClassUtil.hpp"
  31 #include "classfile/symbolTable.hpp"
  32 #include "classfile/systemDictionary.hpp"
  33 #include "classfile/systemDictionaryShared.hpp"
  34 #include "memory/metaspaceShared.hpp"
  35 #include "memory/resourceArea.hpp"
  36 #include "runtime/fieldType.hpp"

  37 #include "runtime/javaCalls.hpp"
  38 #include "utilities/defaultStream.hpp"
  39 #include "utilities/hashtable.inline.hpp"
  40 #include "utilities/macros.hpp"
  41 
  42 ClassListParser* ClassListParser::_instance = NULL;
  43 
  44 ClassListParser::ClassListParser(const char* file) {
  45   assert(_instance == NULL, "must be singleton");
  46   _instance = this;
  47   _classlist_file = file;
  48   _file = fopen(file, "r");
  49   _line_no = 0;
  50   _interfaces = new (ResourceObj::C_HEAP, mtClass) GrowableArray<int>(10, true);
  51 
  52   if (_file == NULL) {
  53     char errmsg[JVM_MAXPATHLEN];
  54     os::lasterror(errmsg, JVM_MAXPATHLEN);
  55     vm_exit_during_initialization("Loading classlist failed", errmsg);
  56   }




  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "jvm.h"
  27 #include "jimage.hpp"
  28 #include "classfile/classListParser.hpp"
  29 #include "classfile/classLoaderExt.hpp"
  30 #include "classfile/sharedClassUtil.hpp"
  31 #include "classfile/symbolTable.hpp"
  32 #include "classfile/systemDictionary.hpp"
  33 #include "classfile/systemDictionaryShared.hpp"
  34 #include "memory/metaspaceShared.hpp"
  35 #include "memory/resourceArea.hpp"
  36 #include "runtime/fieldType.hpp"
  37 #include "runtime/handles.inline.hpp"
  38 #include "runtime/javaCalls.hpp"
  39 #include "utilities/defaultStream.hpp"
  40 #include "utilities/hashtable.inline.hpp"
  41 #include "utilities/macros.hpp"
  42 
  43 ClassListParser* ClassListParser::_instance = NULL;
  44 
  45 ClassListParser::ClassListParser(const char* file) {
  46   assert(_instance == NULL, "must be singleton");
  47   _instance = this;
  48   _classlist_file = file;
  49   _file = fopen(file, "r");
  50   _line_no = 0;
  51   _interfaces = new (ResourceObj::C_HEAP, mtClass) GrowableArray<int>(10, true);
  52 
  53   if (_file == NULL) {
  54     char errmsg[JVM_MAXPATHLEN];
  55     os::lasterror(errmsg, JVM_MAXPATHLEN);
  56     vm_exit_during_initialization("Loading classlist failed", errmsg);
  57   }


< prev index next >