// natVMAccessControlState.cc -- Native part of the VMAccessControlState class. /* Copyright (C) 2006 Free Software Foundation, Inc. This file is part of libgcj. This software is copyrighted work licensed under the terms of the Libgcj License. Please consult the file "LIBGCJ_LICENSE" for details. */ #include #include #include #include #include java::security::VMAccessControlState * java::security::VMAccessControlState::getThreadState () { java::lang::Thread *thread = java::lang::Thread::currentThread (); if (thread == NULL) return NULL; VMAccessControlState *state = reinterpret_cast (thread->accessControlState); if (state == NULL) thread->accessControlState = state = new VMAccessControlState (); return state; }