equal
deleted
inserted
replaced
491 |
491 |
492 // Step back n frames, skip any pseudo frames in between. |
492 // Step back n frames, skip any pseudo frames in between. |
493 // This function is used in Class.forName, Class.newInstance, Method.Invoke, |
493 // This function is used in Class.forName, Class.newInstance, Method.Invoke, |
494 // AccessController.doPrivileged. |
494 // AccessController.doPrivileged. |
495 void vframeStreamCommon::security_get_caller_frame(int depth) { |
495 void vframeStreamCommon::security_get_caller_frame(int depth) { |
496 assert(depth >= 0, err_msg("invalid depth: %d", depth)); |
496 assert(depth >= 0, "invalid depth: %d", depth); |
497 for (int n = 0; !at_end(); security_next()) { |
497 for (int n = 0; !at_end(); security_next()) { |
498 if (!method()->is_ignored_by_security_stack_walk()) { |
498 if (!method()->is_ignored_by_security_stack_walk()) { |
499 if (n == depth) { |
499 if (n == depth) { |
500 // We have reached the desired depth; return. |
500 // We have reached the desired depth; return. |
501 return; |
501 return; |