hotspot/src/share/vm/runtime/arguments.cpp
changeset 19679 23a7ef6ca0f9
parent 19319 0ad35be0733a
child 19732 88f375dd7d65
child 20010 c66a7254680c
equal deleted inserted replaced
19545:409c50cf1e5d 19679:23a7ef6ca0f9
  2228   // 8K is well beyond the reasonable HW cache line size, even with the
  2228   // 8K is well beyond the reasonable HW cache line size, even with the
  2229   // aggressive prefetching, while still leaving the room for segregating
  2229   // aggressive prefetching, while still leaving the room for segregating
  2230   // among the distinct pages.
  2230   // among the distinct pages.
  2231   if (ContendedPaddingWidth < 0 || ContendedPaddingWidth > 8192) {
  2231   if (ContendedPaddingWidth < 0 || ContendedPaddingWidth > 8192) {
  2232     jio_fprintf(defaultStream::error_stream(),
  2232     jio_fprintf(defaultStream::error_stream(),
  2233                 "ContendedPaddingWidth=" INTX_FORMAT " must be the between %d and %d\n",
  2233                 "ContendedPaddingWidth=" INTX_FORMAT " must be in between %d and %d\n",
  2234                 ContendedPaddingWidth, 0, 8192);
  2234                 ContendedPaddingWidth, 0, 8192);
  2235     status = false;
  2235     status = false;
  2236   }
  2236   }
  2237 
  2237 
  2238   // Need to enforce the padding not to break the existing field alignments.
  2238   // Need to enforce the padding not to break the existing field alignments.
  2239   // It is sufficient to check against the largest type size.
  2239   // It is sufficient to check against the largest type size.
  2240   if ((ContendedPaddingWidth % BytesPerLong) != 0) {
  2240   if ((ContendedPaddingWidth % BytesPerLong) != 0) {
  2241     jio_fprintf(defaultStream::error_stream(),
  2241     jio_fprintf(defaultStream::error_stream(),
  2242                 "ContendedPaddingWidth=" INTX_FORMAT " must be the multiple of %d\n",
  2242                 "ContendedPaddingWidth=" INTX_FORMAT " must be a multiple of %d\n",
  2243                 ContendedPaddingWidth, BytesPerLong);
  2243                 ContendedPaddingWidth, BytesPerLong);
  2244     status = false;
  2244     status = false;
  2245   }
  2245   }
  2246 
  2246 
  2247   // Check lower bounds of the code cache
  2247   // Check lower bounds of the code cache