Date: Thu, 8 Jun 2023 20:40:47 +0800
Subject: Fix the trim crash caused by incorrect assert in fastdebug version

Bug url: https://codehub-y.huawei.com/huaweijdk/jdk8u-dev/issues/4117
---
 .../src/share/vm/gc_implementation/shared/gcTrimNativeHeap.cpp   | 1 -
 1 file changed, 1 deletion(-)

diff --git a/hotspot/src/share/vm/gc_implementation/shared/gcTrimNativeHeap.cpp b/hotspot/src/share/vm/gc_implementation/shared/gcTrimNativeHeap.cpp
index b9bac5601..4350d7a03 100644
--- a/hotspot/src/share/vm/gc_implementation/shared/gcTrimNativeHeap.cpp
+++ b/hotspot/src/share/vm/gc_implementation/shared/gcTrimNativeHeap.cpp
@@ -218,7 +218,6 @@ bool GCTrimNative::should_trim(bool ignore_delay) {
 
 void GCTrimNative::execute_trim() {
   if (GCTrimNativeHeap) {
-    assert(!_async_mode, "Only call for non-async mode");
     do_trim();
     _next_trim_not_before = os::elapsedTime() + GCTrimNativeHeapInterval;
   }
-- 
2.22.0

