src/share/vm/runtime/os.cpp

changeset 1040
98cb887364d3
parent 983
773234c55e8c
child 1055
bcedf688d882
equal deleted inserted replaced
1039:ec59443af135 1040:98cb887364d3
941 941
942 bool os::stack_shadow_pages_available(Thread *thread, methodHandle method) { 942 bool os::stack_shadow_pages_available(Thread *thread, methodHandle method) {
943 assert(StackRedPages > 0 && StackYellowPages > 0,"Sanity check"); 943 assert(StackRedPages > 0 && StackYellowPages > 0,"Sanity check");
944 address sp = current_stack_pointer(); 944 address sp = current_stack_pointer();
945 // Check if we have StackShadowPages above the yellow zone. This parameter 945 // Check if we have StackShadowPages above the yellow zone. This parameter
946 // is dependant on the depth of the maximum VM call stack possible from 946 // is dependent on the depth of the maximum VM call stack possible from
947 // the handler for stack overflow. 'instanceof' in the stack overflow 947 // the handler for stack overflow. 'instanceof' in the stack overflow
948 // handler or a println uses at least 8k stack of VM and native code 948 // handler or a println uses at least 8k stack of VM and native code
949 // respectively. 949 // respectively.
950 const int framesize_in_bytes = 950 const int framesize_in_bytes =
951 Interpreter::size_top_interpreter_activation(method()) * wordSize; 951 Interpreter::size_top_interpreter_activation(method()) * wordSize;

mercurial