public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/11778] New: System.out PrintStream does too much buffering
@ 2003-08-03  5:50 bryce at mckinlay dot net dot nz
  2003-08-03 13:52 ` [Bug libgcj/11778] " pinskia at physics dot uc dot edu
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bryce at mckinlay dot net dot nz @ 2003-08-03  5:50 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: System.out PrintStream does too much buffering
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bryce at mckinlay dot net dot nz
                CC: gcc-bugs at gcc dot gnu dot org

Compare the output of the following test case (from current CVS) compared with the JRE or an 
earlier libgcj:

public class testOut
{
  public static void main(String[] args) throws InterruptedException
  {
    for (int i=0; i < 20; i++)
    {
      System.out.print(".");
      Thread.sleep(100);
    }
  }
}

System.out is buffering the output too aggressively.


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

* [Bug libgcj/11778] System.out PrintStream does too much buffering
  2003-08-03  5:50 [Bug libgcj/11778] New: System.out PrintStream does too much buffering bryce at mckinlay dot net dot nz
@ 2003-08-03 13:52 ` pinskia at physics dot uc dot edu
  2003-08-05  3:54 ` bryce at mckinlay dot net dot nz
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-03 13:52 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From pinskia at physics dot uc dot edu  2003-08-03 13:52 -------
I do not think you should depend on when the stream flushes but if you want the stream 
to flush, flush it.


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

* [Bug libgcj/11778] System.out PrintStream does too much buffering
  2003-08-03  5:50 [Bug libgcj/11778] New: System.out PrintStream does too much buffering bryce at mckinlay dot net dot nz
  2003-08-03 13:52 ` [Bug libgcj/11778] " pinskia at physics dot uc dot edu
@ 2003-08-05  3:54 ` bryce at mckinlay dot net dot nz
  2003-08-10  2:53 ` cvs-commit at gcc dot gnu dot org
  2003-08-10  2:54 ` bryce at mckinlay dot net dot nz
  3 siblings, 0 replies; 5+ messages in thread
From: bryce at mckinlay dot net dot nz @ 2003-08-05  3:54 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


bryce at mckinlay dot net dot nz changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-08-05 03:54:01
               date|                            |


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

* [Bug libgcj/11778] System.out PrintStream does too much buffering
  2003-08-03  5:50 [Bug libgcj/11778] New: System.out PrintStream does too much buffering bryce at mckinlay dot net dot nz
  2003-08-03 13:52 ` [Bug libgcj/11778] " pinskia at physics dot uc dot edu
  2003-08-05  3:54 ` bryce at mckinlay dot net dot nz
@ 2003-08-10  2:53 ` cvs-commit at gcc dot gnu dot org
  2003-08-10  2:54 ` bryce at mckinlay dot net dot nz
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-08-10  2:53 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-08-10 02:53 -------
Subject: Bug 11778

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bryce@gcc.gnu.org	2003-08-10 02:53:18

Modified files:
	libjava        : ChangeLog 
	libjava/java/io: PrintStream.java 

Log message:
	* java/io/PrintStream.java (print): Always flush if auto_flush is
	set. Don't check for newline characters.
	(write (int)): Implement without using a temporary array.
	(write (byte[], int, int): Always flush if auto_flush is set. Don't
	check for newline characters.
	Fixes PR libgcj/11778.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.2095&r2=1.2096
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/io/PrintStream.java.diff?cvsroot=gcc&r1=1.22&r2=1.23


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

* [Bug libgcj/11778] System.out PrintStream does too much buffering
  2003-08-03  5:50 [Bug libgcj/11778] New: System.out PrintStream does too much buffering bryce at mckinlay dot net dot nz
                   ` (2 preceding siblings ...)
  2003-08-10  2:53 ` cvs-commit at gcc dot gnu dot org
@ 2003-08-10  2:54 ` bryce at mckinlay dot net dot nz
  3 siblings, 0 replies; 5+ messages in thread
From: bryce at mckinlay dot net dot nz @ 2003-08-10  2:54 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


bryce at mckinlay dot net dot nz changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


------- Additional Comments From bryce at mckinlay dot net dot nz  2003-08-10 02:54 -------
Fix checked in.


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

end of thread, other threads:[~2003-08-10  2:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-03  5:50 [Bug libgcj/11778] New: System.out PrintStream does too much buffering bryce at mckinlay dot net dot nz
2003-08-03 13:52 ` [Bug libgcj/11778] " pinskia at physics dot uc dot edu
2003-08-05  3:54 ` bryce at mckinlay dot net dot nz
2003-08-10  2:53 ` cvs-commit at gcc dot gnu dot org
2003-08-10  2:54 ` bryce at mckinlay dot net dot nz

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).