src/hotspot/share/memory/metaspaceShared.cpp
changeset 53261 b7dca420fa0c
parent 52877 9e041366c764
child 53547 9d1a788dea3d
equal deleted inserted replaced
53260:fbc921683f02 53261:b7dca420fa0c
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
  1657 void MetaspaceShared::preload_and_dump(TRAPS) {
  1657 void MetaspaceShared::preload_and_dump(TRAPS) {
  1658   { TraceTime timer("Dump Shared Spaces", TRACETIME_LOG(Info, startuptime));
  1658   { TraceTime timer("Dump Shared Spaces", TRACETIME_LOG(Info, startuptime));
  1659     ResourceMark rm;
  1659     ResourceMark rm;
  1660     char class_list_path_str[JVM_MAXPATHLEN];
  1660     char class_list_path_str[JVM_MAXPATHLEN];
  1661     // Preload classes to be shared.
  1661     // Preload classes to be shared.
  1662     // Should use some os:: method rather than fopen() here. aB.
       
  1663     const char* class_list_path;
  1662     const char* class_list_path;
  1664     if (SharedClassListFile == NULL) {
  1663     if (SharedClassListFile == NULL) {
  1665       // Construct the path to the class list (in jre/lib)
  1664       // Construct the path to the class list (in jre/lib)
  1666       // Walk up two directories from the location of the VM and
  1665       // Walk up two directories from the location of the VM and
  1667       // optionally tack on "lib" (depending on platform)
  1666       // optionally tack on "lib" (depending on platform)