63 #include "runtime/init.hpp"
64 #include "runtime/interfaceSupport.inline.hpp"
65 #include "runtime/java.hpp"
66 #include "runtime/javaCalls.hpp"
67 #include "runtime/os.hpp"
68 #include "runtime/threadCritical.hpp"
69 #include "runtime/timer.hpp"
70 #include "runtime/vm_version.hpp"
71 #include "services/management.hpp"
72 #include "services/threadService.hpp"
73 #include "utilities/events.hpp"
74 #include "utilities/hashtable.inline.hpp"
75 #include "utilities/macros.hpp"
76 #if INCLUDE_CDS
77 #include "classfile/sharedClassUtil.hpp"
78 #include "classfile/sharedPathsMiscInfo.hpp"
79 #endif
80
81 // Entry points in zip.dll for loading zip/jar file entries
82
83 typedef void * * (JNICALL *ZipOpen_t)(const char *name, char **pmsg);
84 typedef void (JNICALL *ZipClose_t)(jzfile *zip);
85 typedef jzentry* (JNICALL *FindEntry_t)(jzfile *zip, const char *name, jint *sizeP, jint *nameLen);
86 typedef jboolean (JNICALL *ReadEntry_t)(jzfile *zip, jzentry *entry, unsigned char *buf, char *namebuf);
87 typedef jzentry* (JNICALL *GetNextEntry_t)(jzfile *zip, jint n);
88 typedef jboolean (JNICALL *ZipInflateFully_t)(void *inBuf, jlong inLen, void *outBuf, jlong outLen, char **pmsg);
89 typedef jint (JNICALL *Crc32_t)(jint crc, const jbyte *buf, jint len);
90
91 static ZipOpen_t ZipOpen = NULL;
92 static ZipClose_t ZipClose = NULL;
93 static FindEntry_t FindEntry = NULL;
94 static ReadEntry_t ReadEntry = NULL;
95 static GetNextEntry_t GetNextEntry = NULL;
96 static canonicalize_fn_t CanonicalizeEntry = NULL;
97 static ZipInflateFully_t ZipInflateFully = NULL;
98 static Crc32_t Crc32 = NULL;
99
100 // Entry points for jimage.dll for loading jimage file entries
101
102 static JImageOpen_t JImageOpen = NULL;
103 static JImageClose_t JImageClose = NULL;
104 static JImagePackageToModule_t JImagePackageToModule = NULL;
105 static JImageFindResource_t JImageFindResource = NULL;
106 static JImageGetResource_t JImageGetResource = NULL;
107 static JImageResourceIterator_t JImageResourceIterator = NULL;
108 static JImage_ResourcePath_t JImageResourcePath = NULL;
109
|
63 #include "runtime/init.hpp"
64 #include "runtime/interfaceSupport.inline.hpp"
65 #include "runtime/java.hpp"
66 #include "runtime/javaCalls.hpp"
67 #include "runtime/os.hpp"
68 #include "runtime/threadCritical.hpp"
69 #include "runtime/timer.hpp"
70 #include "runtime/vm_version.hpp"
71 #include "services/management.hpp"
72 #include "services/threadService.hpp"
73 #include "utilities/events.hpp"
74 #include "utilities/hashtable.inline.hpp"
75 #include "utilities/macros.hpp"
76 #if INCLUDE_CDS
77 #include "classfile/sharedClassUtil.hpp"
78 #include "classfile/sharedPathsMiscInfo.hpp"
79 #endif
80
81 // Entry points in zip.dll for loading zip/jar file entries
82
83 typedef void * * (*ZipOpen_t)(const char *name, char **pmsg);
84 typedef void (*ZipClose_t)(jzfile *zip);
85 typedef jzentry* (*FindEntry_t)(jzfile *zip, const char *name, jint *sizeP, jint *nameLen);
86 typedef jboolean (*ReadEntry_t)(jzfile *zip, jzentry *entry, unsigned char *buf, char *namebuf);
87 typedef jzentry* (*GetNextEntry_t)(jzfile *zip, jint n);
88 typedef jboolean (*ZipInflateFully_t)(void *inBuf, jlong inLen, void *outBuf, jlong outLen, char **pmsg);
89 typedef jint (*Crc32_t)(jint crc, const jbyte *buf, jint len);
90
91 static ZipOpen_t ZipOpen = NULL;
92 static ZipClose_t ZipClose = NULL;
93 static FindEntry_t FindEntry = NULL;
94 static ReadEntry_t ReadEntry = NULL;
95 static GetNextEntry_t GetNextEntry = NULL;
96 static canonicalize_fn_t CanonicalizeEntry = NULL;
97 static ZipInflateFully_t ZipInflateFully = NULL;
98 static Crc32_t Crc32 = NULL;
99
100 // Entry points for jimage.dll for loading jimage file entries
101
102 static JImageOpen_t JImageOpen = NULL;
103 static JImageClose_t JImageClose = NULL;
104 static JImagePackageToModule_t JImagePackageToModule = NULL;
105 static JImageFindResource_t JImageFindResource = NULL;
106 static JImageGetResource_t JImageGetResource = NULL;
107 static JImageResourceIterator_t JImageResourceIterator = NULL;
108 static JImage_ResourcePath_t JImageResourcePath = NULL;
109
|