RFR: 8229202 - Docker reporting causes secondary crashes in error handling
Bob Vandette
bob.vandette at oracle.com
Tue Sep 10 20:44:43 UTC 2019
Please review this fix for a secondary failure occurring during hotspot error reporting.
If hotspot encounters a failure in the early VM initialization, the container initialization
will not have been completed causing an assert in the is_containerized function.
The proposed fix will cause the error reporting to not list any container configuration data
since _is_containerized defaults to false.
BUG:
https://bugs.openjdk.java.net/browse/JDK-8229202
PROPOSED FIX:
diff --git a/src/hotspot/os/linux/osContainer_linux.hpp b/src/hotspot/os/linux/osContainer_linux.hpp
--- a/src/hotspot/os/linux/osContainer_linux.hpp
+++ b/src/hotspot/os/linux/osContainer_linux.hpp
@@ -62,7 +62,6 @@
};
inline bool OSContainer::is_containerized() {
- assert(_is_initialized, "OSContainer not initialized");
return _is_containerized;
}
Bob.
More information about the hotspot-dev
mailing list