java-stack.h (_Jv_FrameInfo): Remove union definition.

* include/java-stack.h (_Jv_FrameInfo): Remove union definition.
	(_Jv_StackFrame): Remove commented out code.
	(_Jv_UnwindState): Remove superfluous 'typedef'.
	* sun/misc/natUnsafe.cc (spinlock): Add white space to quiet
	compiler warnings.
	* gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.cc
	(getCollectionUsage): Don't declare unused parameter n.
	(getMemoryManagerNames): Same.
	* gnu/gcj/util/natGCInfo.cc (gc_debug_info): Remove superfluous
	'typedef'.

From-SVN: r124783
This commit is contained in:
David Daney 2007-05-17 03:53:45 +00:00 committed by David Daney
parent d9c3e54582
commit f59d2a7c86
5 changed files with 19 additions and 10 deletions

View file

@ -1,3 +1,16 @@
2007-05-16 David Daney <ddaney@avtrex.com>
* include/java-stack.h (_Jv_FrameInfo): Remove union definition.
(_Jv_StackFrame): Remove commented out code.
(_Jv_UnwindState): Remove superfluous 'typedef'.
* sun/misc/natUnsafe.cc (spinlock): Add white space to quiet
compiler warnings.
* gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.cc
(getCollectionUsage): Don't declare unused parameter n.
(getMemoryManagerNames): Same.
* gnu/gcj/util/natGCInfo.cc (gc_debug_info): Remove superfluous
'typedef'.
2007-05-16 Keith Seitz <keiths@redhat.com> 2007-05-16 Keith Seitz <keiths@redhat.com>
* include/java-interp.h (breakpoint_at): Declare. * include/java-interp.h (breakpoint_at): Declare.

View file

@ -66,7 +66,7 @@ extern "C" {
static int gc_ok = 1; static int gc_ok = 1;
typedef struct gc_debug_info struct gc_debug_info
{ {
int used; int used;
int free; int free;

View file

@ -20,7 +20,7 @@ details. */
#include <java/lang/UnsupportedOperationException.h> #include <java/lang/UnsupportedOperationException.h>
::java::lang::management::MemoryUsage * ::java::lang::management::MemoryUsage *
gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getCollectionUsage(jstring n) gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getCollectionUsage(jstring)
{ {
throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getCollectionUsage (::java::lang::String *) not implemented")); throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getCollectionUsage (::java::lang::String *) not implemented"));
} }
@ -41,7 +41,7 @@ gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getCollectionUsageThreshold
JArray< ::java::lang::String *> * JArray< ::java::lang::String *> *
gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getMemoryManagerNames(jstring n) gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getMemoryManagerNames(jstring)
{ {
return (JArray<jstring>*) return (JArray<jstring>*)
JvNewObjectArray(1, &::java::lang::String::class$, JvNewStringLatin1("BoehmGC")); JvNewObjectArray(1, &::java::lang::String::class$, JvNewStringLatin1("BoehmGC"));

View file

@ -49,10 +49,6 @@ struct _Jv_InterpFrameInfo
}; };
#endif #endif
union _Jv_FrameInfo
{
};
struct _Jv_StackFrame struct _Jv_StackFrame
{ {
_Jv_FrameType type; /* Native or interpreted. */ _Jv_FrameType type; /* Native or interpreted. */
@ -69,12 +65,11 @@ struct _Jv_StackFrame
void *start_ip; void *start_ip;
}; };
}; };
// _Jv_FrameInfo info; /* Frame-type specific data. */
jclass klass; jclass klass;
_Jv_Method *meth; _Jv_Method *meth;
}; };
typedef struct _Jv_UnwindState; struct _Jv_UnwindState;
typedef _Unwind_Reason_Code (*_Jv_TraceFn) (_Jv_UnwindState *); typedef _Unwind_Reason_Code (*_Jv_TraceFn) (_Jv_UnwindState *);
struct _Jv_UnwindState struct _Jv_UnwindState

View file

@ -31,7 +31,8 @@ public:
spinlock () spinlock ()
{ {
while (! compare_and_swap (&lock, 0, 1)); while (! compare_and_swap (&lock, 0, 1))
;
} }
~spinlock () ~spinlock ()
{ {