--- a/src/hotspot/share/memory/universe.cpp Thu Sep 12 15:04:00 2019 +0200
+++ b/src/hotspot/share/memory/universe.cpp Wed Sep 18 07:46:02 2019 +0200
@@ -571,13 +571,13 @@
// preallocated errors with backtrace have been consumed. Also need to avoid
// a potential loop which could happen if an out of memory occurs when attempting
// to allocate the backtrace.
- return ((!oopDesc::equals(throwable(), Universe::_out_of_memory_error_java_heap)) &&
- (!oopDesc::equals(throwable(), Universe::_out_of_memory_error_metaspace)) &&
- (!oopDesc::equals(throwable(), Universe::_out_of_memory_error_class_metaspace)) &&
- (!oopDesc::equals(throwable(), Universe::_out_of_memory_error_array_size)) &&
- (!oopDesc::equals(throwable(), Universe::_out_of_memory_error_gc_overhead_limit)) &&
- (!oopDesc::equals(throwable(), Universe::_out_of_memory_error_realloc_objects)) &&
- (!oopDesc::equals(throwable(), Universe::_out_of_memory_error_retry)));
+ return ((throwable() != Universe::_out_of_memory_error_java_heap) &&
+ (throwable() != Universe::_out_of_memory_error_metaspace) &&
+ (throwable() != Universe::_out_of_memory_error_class_metaspace) &&
+ (throwable() != Universe::_out_of_memory_error_array_size) &&
+ (throwable() != Universe::_out_of_memory_error_gc_overhead_limit) &&
+ (throwable() != Universe::_out_of_memory_error_realloc_objects) &&
+ (throwable() != Universe::_out_of_memory_error_retry));
}