hotspot/src/share/vm/memory/filemap.hpp
changeset 27562 47f369e3c69c
parent 27025 f4805f778f16
child 31345 1bba15125d8d
equal deleted inserted replaced
27561:7ead528de130 27562:47f369e3c69c
    42 class Metaspace;
    42 class Metaspace;
    43 
    43 
    44 class SharedClassPathEntry VALUE_OBJ_CLASS_SPEC {
    44 class SharedClassPathEntry VALUE_OBJ_CLASS_SPEC {
    45 public:
    45 public:
    46   const char *_name;
    46   const char *_name;
    47   time_t _timestamp;          // jar timestamp,  0 if is directory
    47   time_t _timestamp;          // jar timestamp,  0 if is directory or other
    48   long   _filesize;           // jar file size, -1 if is directory
    48   long   _filesize;           // jar file size, -1 if is directory, -2 if other
       
    49   bool is_jar() {
       
    50     return _timestamp != 0;
       
    51   }
    49   bool is_dir() {
    52   bool is_dir() {
    50     return _filesize == -1;
    53     return _filesize == -1;
    51   }
    54   }
    52 };
    55 };
    53 
    56