< prev index next >
src/hotspot/share/utilities/vmError.cpp
Print this page
rev 55480 : [mq]: 8227275-native-oom-hanging-assertions
@@ -1325,10 +1325,14 @@
static const int fd_out = 1; // stdout
// File descriptor to the error log file.
static int fd_log = -1;
+ // Disarm assertion poison page, since from this point on we do not need this mechanism anymore and it may
+ // cause problems in error handling during native OOM, see JDK-8227275.
+ disarm_assert_poison();
+
// Use local fdStream objects only. Do not use global instances whose initialization
// relies on dynamic initialization (see JDK-8214975). Do not rely on these instances
// to carry over into recursions or invocations from other threads.
fdStream out(fd_out);
out.set_scratch_buffer(buffer, sizeof(buffer));
< prev index next >