Open sendaoYan opened 5 months ago
diff --git a/hotspot/src/share/vm/utilities/debug.hpp b/hotspot/src/share/vm/utilities/debug.hpp
index 3c3f8afe201..00521cd3211 100644
--- a/hotspot/src/share/vm/utilities/debug.hpp
+++ b/hotspot/src/share/vm/utilities/debug.hpp
@@ -151,7 +151,8 @@ do { \
// Do not assert this condition if there's already another error reported.
#define assert_if_no_error(cond,msg) assert((cond) || is_error_reported(), msg)
#else // #ifdef ASSERT
- #define assert(p,msg)
+ // For backward compatibility.
+ #define assert(p, ...) vmassert(p, __VA_ARGS__)
#define assert_status(p,status,msg)
#define assert_if_no_error(cond,msg)
#endif // #ifdef ASSERT
To github.com:sendaoYan/riscv-port-jdk8u-ysd.git 72ce7390a7f..18d59c95407 jbs8276799 -> jbs8276799
make-hotspot.log