void os::init(void) {
+ if (is_vm_statically_linked()) {
+ // Mimick what is done in DllMain for non-static builds
+ HMODULE hModule = NULL;
+ GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, NULL, &hModule);
+ windows_preinit(hModule);
+ atexit(windows_atexit);
+ }
These places should be using nullptr instead.
- caused by
-
JDK-8346433 Cannot use DllMain in hotspot for static builds
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk/30f71622
-
Review(master) openjdk/jdk/23483