Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4074531

io_util.c: 8K stack buffer for readBytes/writeBytes is excessive for pJava/eJava

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.2.0
    • core-libs
    • None
    • generic
    • solaris_2.5.1

      In io_util.c, readBytes() and writeBytes() use an 8K buffer on the stack.
      For platforms with small stacks, these changes can have bad consequences.
      Using an 8K stack buffer means we cannot have small stacks and still call
      readBytes() (the ARM port of JavaOS uses 8K stacks.)
      A read of larger than 8K will do a malloc/free *each* time, which can be slow.
      It also means that for very large I/O operations we must have twice as much memory available: n bytes in the Java heap and n bytes in the malloc heap.

      dean.long@Eng 1997-08-26

            mr Mark Reinhold
            dlong Dean Long
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: