public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/26007]  New: initialized final static data should go in .rodata, not .data
@ 2006-01-28 20:36 green at redhat dot com
  2006-01-28 20:38 ` [Bug java/26007] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: green at redhat dot com @ 2006-01-28 20:36 UTC (permalink / raw)
  To: java-prs

For the following code...

public class b
{
  public static final int FOOBAR = 555;
}

..I would expect to see FOOBAR in .rodata.  However gcj currently places this
in .data.

If you poke through the .jar.so files we have in Fedora Core you'll see big
chunks of .data that should actually .rodata.


-- 
           Summary: initialized final static data should go in .rodata, not
                    .data
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: green at redhat dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26007


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug java/26007] initialized final static data should go in .rodata, not .data
  2006-01-28 20:36 [Bug java/26007] New: initialized final static data should go in .rodata, not .data green at redhat dot com
@ 2006-01-28 20:38 ` pinskia at gcc dot gnu dot org
  2006-01-28 20:44 ` pinskia at gcc dot gnu dot org
  2006-01-31 17:31 ` daney at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-28 20:38 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-01-28 20:38 -------
Note there are ticks for final static data to be changed IIRC.  I don't know
how useful they are or if they really are valid.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26007


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug java/26007] initialized final static data should go in .rodata, not .data
  2006-01-28 20:36 [Bug java/26007] New: initialized final static data should go in .rodata, not .data green at redhat dot com
  2006-01-28 20:38 ` [Bug java/26007] " pinskia at gcc dot gnu dot org
@ 2006-01-28 20:44 ` pinskia at gcc dot gnu dot org
  2006-01-31 17:31 ` daney at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-28 20:44 UTC (permalink / raw)
  To: java-prs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26007


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug java/26007] initialized final static data should go in .rodata, not .data
  2006-01-28 20:36 [Bug java/26007] New: initialized final static data should go in .rodata, not .data green at redhat dot com
  2006-01-28 20:38 ` [Bug java/26007] " pinskia at gcc dot gnu dot org
  2006-01-28 20:44 ` pinskia at gcc dot gnu dot org
@ 2006-01-31 17:31 ` daney at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: daney at gcc dot gnu dot org @ 2006-01-31 17:31 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from daney at gcc dot gnu dot org  2006-01-31 17:31 -------
If you fix this, you need to also make sure the Method.set* never modifies the
data under any circumstances.  Attempts at modification will result in SIGSEGV
which is usually converted to NPE.  The real exception should probably be
IllegalAccessException if modification is attempted.


-- 

daney at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-01-31 17:31:09
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26007


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug java/26007] initialized final static data should go in .rodata, not .data
       [not found] <bug-26007-8172@http.gcc.gnu.org/bugzilla/>
  2011-05-17 16:04 ` licheng.1212 at gmail dot com
@ 2011-05-17 16:23 ` licheng.1212 at gmail dot com
  1 sibling, 0 replies; 6+ messages in thread
From: licheng.1212 at gmail dot com @ 2011-05-17 16:23 UTC (permalink / raw)
  To: java-prs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26007

--- Comment #4 from licheng.1212 at gmail dot com <licheng.1212 at gmail dot com> 2011-05-17 16:12:07 UTC ---
can anybody tell me how to change the final form .data to .rodata.
which files have the check in gcc?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug java/26007] initialized final static data should go in .rodata, not .data
       [not found] <bug-26007-8172@http.gcc.gnu.org/bugzilla/>
@ 2011-05-17 16:04 ` licheng.1212 at gmail dot com
  2011-05-17 16:23 ` licheng.1212 at gmail dot com
  1 sibling, 0 replies; 6+ messages in thread
From: licheng.1212 at gmail dot com @ 2011-05-17 16:04 UTC (permalink / raw)
  To: java-prs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26007

licheng.1212@gmail.com <licheng.1212 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |licheng.1212 at gmail dot
                   |                            |com

--- Comment #3 from licheng.1212 at gmail dot com <licheng.1212 at gmail dot com> 2011-05-17 15:47:32 UTC ---
(In reply to comment #1)
> Note there are ticks for final static data to be changed IIRC.  I don't know
> how useful they are or if they really are valid.

put it to .rodata is very useful to embebed system,this will release many
memory useage.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-05-17 16:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-28 20:36 [Bug java/26007] New: initialized final static data should go in .rodata, not .data green at redhat dot com
2006-01-28 20:38 ` [Bug java/26007] " pinskia at gcc dot gnu dot org
2006-01-28 20:44 ` pinskia at gcc dot gnu dot org
2006-01-31 17:31 ` daney at gcc dot gnu dot org
     [not found] <bug-26007-8172@http.gcc.gnu.org/bugzilla/>
2011-05-17 16:04 ` licheng.1212 at gmail dot com
2011-05-17 16:23 ` licheng.1212 at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).