classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] AccessController improvements


From: Casey Marshall
Subject: [cp-patches] AccessController improvements
Date: Sat, 21 Aug 2004 12:49:51 -0700
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux)

This patch tightens up my VMAccessController implementation, in
particular it handles `doPrivileged' calls better, and allows for
recursive `doPrivileged' calls in the same Thread.

2004-08-21  Casey Marshall  <address@hidden>

        * java/security/AccessController.java
        Removed FIXME comment.
        (doPriviliged(PrivilegedAction)): push and pop a null context.
        (doPrivileged(PrivilegedExceptionAction)): likewise.
        (doPrivileged(PrivilegedAction,AccessControlContext)): only pass
        the context to `VMAccessController.pushContext'.
        (doPrivileged(PrivilegedExceptionAction,AccessControlContext)):
        likewise.
        * vm/reference/java/security/VMAccessController.java
        (contexts): use a ThreadLocal for this field.
        (pushContext): only take the context as parameter; insert it
        into a thread local stack.
        (popContext): take no arguments. Handle new form of `contexts'
        stack.
        (getContext): set `inGetContext' as early as possible.
        Include the call just prior to `doPrivileged' too.
        Handle new form of `contexts' stack.

-- 
Casey Marshall || address@hidden

Attachment: vmac.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]