diff options
author | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-09 01:26:20 +0000 |
---|---|---|
committer | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-09 01:26:20 +0000 |
commit | b4e6c2ea572681ecba47a84b19d0f42b5012ff36 (patch) | |
tree | 61ee1a3348651b269368dca39f7c6b51b8237bf5 /libjava/gcj | |
parent | 2737c475d111ace3cc2352b73f6df29782c5f5c6 (diff) | |
download | gcc-b4e6c2ea572681ecba47a84b19d0f42b5012ff36.tar.gz |
2000-04-08 Anthony Green <green@redhat.com>
* java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
check when we have to.
* gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
x) as `inline'.
* java/util/StringTokenizer.java: Minor optimization. Eliminates
one method call.
* java/util/Vector.java (VectorEnumeration.nextElement): Manually
inline hasMoreElements.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33033 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gcj')
-rw-r--r-- | libjava/gcj/array.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/gcj/array.h b/libjava/gcj/array.h index bbea902d5f5..8b0a416d758 100644 --- a/libjava/gcj/array.h +++ b/libjava/gcj/array.h @@ -36,9 +36,9 @@ public: }; template<class T> -T* elements(JArray<T>& x) { return x.data; } +inline T* elements(JArray<T>& x) { return x.data; } template<class T> -T* elements(JArray<T>* x) { return x->data; } +inline T* elements(JArray<T>* x) { return x->data; } }; // end extern "Java" |