hotspot/src/share/vm/runtime/vframe.cpp
changeset 33105 294e48b4f704
parent 31970 4bb8e8a13f6a
child 33148 68fa8b6c4340
equal deleted inserted replaced
33104:a7c0f60a1294 33105:294e48b4f704
   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;