This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/27982] New: Make gcj inline methods in java.nio.Buffer
- From: "daney at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jun 2006 22:00:16 -0000
- Subject: [Bug java/27982] New: Make gcj inline methods in java.nio.Buffer
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
There are some optimization ideas in this e-mail thread (especially in the
leaves or the thread).
http://gcc.gnu.org/ml/java/2006-06/msg00030.html
Basically, Buffers have no accessable constructors, so the compiler knows that
there can be no user classes derived from Buffer. Buffers can be treated much
like final classes and all Buffer methods could be inlined.
Many of the get and put methods could be inlined as if they were fancy array
accesses.
--
Summary: Make gcj inline methods in java.nio.Buffer
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P3
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: daney at gcc dot gnu dot org
GCC build triplet: *-*-*
GCC host triplet: *-*-*
GCC target triplet: *-*-*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27982