在 2022/9/27 下午7:44, Xi Ruoyao 写道:
On Tue, 2022-09-27 at 15:49 +0800, Lulu Cheng wrote:
  #if defined (__CYGWIN__) || defined (__MINGW32__)
    if (VTV_PAGE_SIZE != sysconf_SC_PAGE_SIZE())
+#elif defined (__loongarch_lp64)
+  /* I think that under the LoongArch 64-bit system, VTV_PAGE_SIZE is set
+     to the maximum value of 64K supported by the system, so there is no
+     need to judge here.  */
+  if (false)
I think "if (false)" can trigger some compiler warnings...

Still not sure if the maximum value is always correct (+ Caroline for a
confirmation).  If it's correct I'd suggest...

  #else
    if (VTV_PAGE_SIZE != sysconf (_SC_PAGE_SIZE))
if (VTV_PAGE_SIZE % sysconf (_SC_PAGE_SIZE) != 0)


If the setting to the maximum value is correct,

I also think it is better to achieve this.


  #endif

Reply via email to