Bug 27982 - Make gcj inline methods in java.nio.Buffer
Summary: Make gcj inline methods in java.nio.Buffer
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 4.2.0
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: missed-optimization
Depends on:
Blocks:
 
Reported: 2006-06-09 22:00 UTC by David Daney
Modified: 2016-09-30 22:50 UTC (History)
2 users (show)

See Also:
Host: *-*-*
Target: *-*-*
Build: *-*-*
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Daney 2006-06-09 22:00:15 UTC
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.
Comment 1 Andrew Pinski 2016-09-30 22:50:25 UTC
Closing as won't fix as the Java front-end has been removed from the trunk.