--- a/hotspot/src/share/vm/memory/filemap.hpp Tue Nov 18 15:25:14 2014 -0800
+++ b/hotspot/src/share/vm/memory/filemap.hpp Wed Dec 03 14:21:14 2014 +0000
@@ -44,8 +44,11 @@
class SharedClassPathEntry VALUE_OBJ_CLASS_SPEC {
public:
const char *_name;
- time_t _timestamp; // jar timestamp, 0 if is directory
- long _filesize; // jar file size, -1 if is directory
+ time_t _timestamp; // jar timestamp, 0 if is directory or other
+ long _filesize; // jar file size, -1 if is directory, -2 if other
+ bool is_jar() {
+ return _timestamp != 0;
+ }
bool is_dir() {
return _filesize == -1;
}