src/java.base/share/native/libjli/java.c

Print this page




 756             JavaVMOption *tmp;
 757             maxOptions *= 2;
 758             tmp = JLI_MemAlloc(maxOptions * sizeof(JavaVMOption));
 759             memcpy(tmp, options, numOptions * sizeof(JavaVMOption));
 760             JLI_MemFree(options);
 761             options = tmp;
 762         }
 763     }
 764     options[numOptions].optionString = str;
 765     options[numOptions++].extraInfo = info;
 766 
 767     if (JLI_StrCCmp(str, "-Xss") == 0) {
 768         jlong tmp;
 769         if (parse_size(str + 4, &tmp)) {
 770             threadStackSize = tmp;
 771             /*
 772              * Make sure the thread stack size is big enough that we won't get a stack
 773              * overflow before the JVM startup code can check to make sure the stack
 774              * is big enough.
 775              */
 776             if (threadStackSize < STACK_SIZE_MINIMUM) {
 777                 threadStackSize = STACK_SIZE_MINIMUM;
 778             }
 779         }
 780     }
 781 
 782     if (JLI_StrCCmp(str, "-Xmx") == 0) {
 783         jlong tmp;
 784         if (parse_size(str + 4, &tmp)) {
 785             maxHeapSize = tmp;
 786         }
 787     }
 788 
 789     if (JLI_StrCCmp(str, "-Xms") == 0) {
 790         jlong tmp;
 791         if (parse_size(str + 4, &tmp)) {
 792            initialHeapSize = tmp;
 793         }
 794     }
 795 }
 796 




 756             JavaVMOption *tmp;
 757             maxOptions *= 2;
 758             tmp = JLI_MemAlloc(maxOptions * sizeof(JavaVMOption));
 759             memcpy(tmp, options, numOptions * sizeof(JavaVMOption));
 760             JLI_MemFree(options);
 761             options = tmp;
 762         }
 763     }
 764     options[numOptions].optionString = str;
 765     options[numOptions++].extraInfo = info;
 766 
 767     if (JLI_StrCCmp(str, "-Xss") == 0) {
 768         jlong tmp;
 769         if (parse_size(str + 4, &tmp)) {
 770             threadStackSize = tmp;
 771             /*
 772              * Make sure the thread stack size is big enough that we won't get a stack
 773              * overflow before the JVM startup code can check to make sure the stack
 774              * is big enough.
 775              */
 776             if (threadStackSize < (jlong) STACK_SIZE_MINIMUM) {
 777                 threadStackSize = STACK_SIZE_MINIMUM;
 778             }
 779         }
 780     }
 781 
 782     if (JLI_StrCCmp(str, "-Xmx") == 0) {
 783         jlong tmp;
 784         if (parse_size(str + 4, &tmp)) {
 785             maxHeapSize = tmp;
 786         }
 787     }
 788 
 789     if (JLI_StrCCmp(str, "-Xms") == 0) {
 790         jlong tmp;
 791         if (parse_size(str + 4, &tmp)) {
 792            initialHeapSize = tmp;
 793         }
 794     }
 795 }
 796