+2006-08-07 Gary Benson <gbenson@redhat.com>
+
+ * java/security/VMAccessController.java (pushContext, popContext,
+ getContext): Use Thread.currentThread() to determine when we're
+ bootstrapping.
+ (runtimeInitialized): Remove.
+ * java/security/natVMAccessController.cc (runtimeInitialized):
+ Remove.
+
2006-08-06 Tom Tromey <tromey@redhat.com>
PR libgcj/28491:
*/
static void pushContext (AccessControlContext acc)
{
- if (!runtimeInitialized())
+ if (Thread.currentThread() == null)
return;
if (DEBUG)
*/
static void popContext()
{
- if (!runtimeInitialized())
+ if (Thread.currentThread() == null)
return;
if (DEBUG)
// so that any security checks succeed.
//
// XXX this might not be necessary, but it seems prudent.
- if (!runtimeInitialized())
+ if (Thread.currentThread() == null)
return DEFAULT_CONTEXT;
// If we are already in getContext, but called a method that needs
* of Strings comprising the method names.
*/
private static native Object[][] getStack();
-
- /**
- * Tell whether runtime initialization is complete.
- *
- * @return whether runtime initialization is complete.
- */
- private static native boolean runtimeInitialized();
}
_Jv_StackTrace *trace = _Jv_StackTrace::GetStackTrace ();
return _Jv_StackTrace::GetClassMethodStack (trace);
}
-
-jboolean
-java::security::VMAccessController::runtimeInitialized ()
-{
- return gcj::runtimeInitialized;
-}