mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
Class.h (_Jv_GetClassStatus): Declare.
* java/lang/Class.h (_Jv_GetClassStatus): Declare.
* java/lang/natClass.cc (_Jv_GetClassStatus): New function.
* jvmti.cc (_Jv_JVMTI_GetClassStatus): New function.
(_Jv_JVMTI_Interface): Define GetClassStatus.
From-SVN: r121074
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Class.h - Header file for java.lang.Class. -*- c++ -*-
|
||||
|
||||
/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation
|
||||
/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
@@ -257,6 +257,8 @@ class _Jv_MethodBase;
|
||||
_Jv_MethodBase *_Jv_FindInterpreterMethod (jclass, jmethodID);
|
||||
#endif
|
||||
|
||||
jbyte _Jv_GetClassState (jclass);
|
||||
|
||||
// Friend classes and functions to implement the ClassLoader
|
||||
class java::lang::ClassLoader;
|
||||
class java::lang::VMClassLoader;
|
||||
@@ -552,6 +554,7 @@ private:
|
||||
friend _Jv_MethodBase *(::_Jv_FindInterpreterMethod) (jclass klass,
|
||||
jmethodID desired_method);
|
||||
#endif
|
||||
friend jbyte (::_Jv_GetClassState) (jclass klass);
|
||||
|
||||
// Friends classes and functions to implement the ClassLoader
|
||||
friend class java::lang::ClassLoader;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// natClass.cc - Implementation of java.lang.Class native methods.
|
||||
|
||||
/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
|
||||
/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
|
||||
Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
@@ -2004,3 +2004,9 @@ _Jv_GetMethodDeclaringClass (jmethodID method)
|
||||
return reinterpret_cast<jclass> (_Jv_StackTrace::ncodeMap->get (obj));
|
||||
}
|
||||
|
||||
jbyte
|
||||
_Jv_GetClassState (jclass klass)
|
||||
{
|
||||
return klass->state;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user