From ef2c0c0a0832a07dff7f93655d64798cfd44d1ba Mon Sep 17 00:00:00 2001
From: zhangyipeng <zhangyipeng7@huawei.com>
Date: Wed, 17 Mar 2021 14:31:38 +0800
Subject: [PATCH] [Huawei]fix arguments.cpp error C2131 on windows



Signed-off-by: Lin Haibing <linhaibing@huawei.com>
---
 hotspot/src/share/vm/runtime/arguments.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hotspot/src/share/vm/runtime/arguments.cpp b/hotspot/src/share/vm/runtime/arguments.cpp
index ebb5e114c..5dad53a71 100644
--- a/hotspot/src/share/vm/runtime/arguments.cpp
+++ b/hotspot/src/share/vm/runtime/arguments.cpp
@@ -2174,7 +2174,7 @@ void Arguments::set_bytecode_flags() {
 void Arguments::set_boxtype_cached_max_flags() {
   if (!AggressiveOpts) {
     if (!FLAG_IS_DEFAULT(BoxTypeCachedMax)) {
-       int  size = 1024;
+       int const size = 1024;
        char buffer[size];
        jio_snprintf(buffer, size, "java.lang.Long.LongCache.high=" INTX_FORMAT, BoxTypeCachedMax);
        add_property(buffer);
-- 
2.19.0

