hotspot/src/share/vm/memory/filemap.cpp
changeset 35917 463d67f86eaa
parent 35061 be6025ebffea
child 36364 5971776598e5
equal deleted inserted replaced
35912:679f5181ef91 35917:463d67f86eaa
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2016, 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.
   206 
   206 
   207       if (pass == 0) {
   207       if (pass == 0) {
   208         count ++;
   208         count ++;
   209         bytes += (int)entry_size;
   209         bytes += (int)entry_size;
   210         bytes += name_bytes;
   210         bytes += name_bytes;
   211         if (TraceClassPaths || (TraceClassLoading && Verbose)) {
   211         if (TraceClassPaths) {
   212           tty->print_cr("[Add main shared path (%s) %s]", (cpe->is_jar_file() ? "jar" : "dir"), name);
   212           tty->print_cr("[Add main shared path (%s) %s]", (cpe->is_jar_file() ? "jar" : "dir"), name);
   213         }
   213         }
   214       } else {
   214       } else {
   215         SharedClassPathEntry* ent = shared_classpath(cur_entry);
   215         SharedClassPathEntry* ent = shared_classpath(cur_entry);
   216         if (cpe->is_jar_file()) {
   216         if (cpe->is_jar_file()) {
   273   for (int i=0; i<count; i++) {
   273   for (int i=0; i<count; i++) {
   274     SharedClassPathEntry* ent = shared_classpath(i);
   274     SharedClassPathEntry* ent = shared_classpath(i);
   275     struct stat st;
   275     struct stat st;
   276     const char* name = ent->_name;
   276     const char* name = ent->_name;
   277     bool ok = true;
   277     bool ok = true;
   278     if (TraceClassPaths || (TraceClassLoading && Verbose)) {
   278     if (TraceClassPaths) {
   279       tty->print_cr("[Checking shared classpath entry: %s]", name);
   279       tty->print_cr("[Checking shared classpath entry: %s]", name);
   280     }
   280     }
   281     if (os::stat(name, &st) != 0) {
   281     if (os::stat(name, &st) != 0) {
   282       fail_continue("Required classpath entry does not exist: %s", name);
   282       fail_continue("Required classpath entry does not exist: %s", name);
   283       ok = false;
   283       ok = false;
   299                         " the shared archive file: %s", name);
   299                         " the shared archive file: %s", name);
   300         }
   300         }
   301       }
   301       }
   302     }
   302     }
   303     if (ok) {
   303     if (ok) {
   304       if (TraceClassPaths || (TraceClassLoading && Verbose)) {
   304       if (TraceClassPaths) {
   305         tty->print_cr("[ok]");
   305         tty->print_cr("[ok]");
   306       }
   306       }
   307     } else if (!PrintSharedArchiveAndExit) {
   307     } else if (!PrintSharedArchiveAndExit) {
   308       _validating_classpath_entry_table = false;
   308       _validating_classpath_entry_table = false;
   309       return false;
   309       return false;