<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 20/11/2017 20:15, Bernd Eckenfels wrote:<br>
<blockquote type="cite"
cite="mid:5a1337d3.c2afdf0a.b0f91.a895@mx.google.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style>
<div class="WordSection1">:<br>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">One thing which might be a problem: when
doPrivileged does no longer execute the Code in a seperate
stack this has implications to the runtime. The stacks will
get deeper (and might even overflow (more often)). So maybe
this „no seperate stack“ function should be opt-out (if
implemented).</p>
<br>
</div>
</blockquote>
Are you assuming that the execution of the privileged action is done
on a different thread stack? The effect of doPrivileged is to set
the top of the privileged stack on the current thread stack, it gets
restored when the action completes. So I think there isn't anything
to be concerned about here.<br>
<br>
-Alan<br>
</body>
</html>