public inbox for frysk-bugzilla@sourceware.org
help / color / mirror / Atom feed
* [Bug general/4390] New: CorefileByteBuffer needs to use a lighter weight file access method than RandomAccessFile
@ 2007-04-18  0:57 pmuldoon at redhat dot com
  2008-01-09 13:44 ` [Bug general/4390] " pmuldoon at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pmuldoon at redhat dot com @ 2007-04-18  0:57 UTC (permalink / raw)
  To: frysk-bugzilla

A read from a corefile should be open->read->close. Doing this with
RandomAccessFile would cause many dozens of java objects queued for GC on a lot
of peek() operations. Right now, because of that, CorefileBytebuffer maintains
the RandomAccessFile open for the life of the buffer, consuming one FD for a
long time.

A very light weight object that keeps the file closed, opens it on read, then
closes it again is required, so that fd's and other systems resources can be
cycled back into the pool

-- 
           Summary: CorefileByteBuffer needs to use a lighter weight file
                    access method than RandomAccessFile
           Product: frysk
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: frysk-bugzilla at sourceware dot org
        ReportedBy: pmuldoon at redhat dot com
OtherBugsDependingO 4378
             nThis:


http://sourceware.org/bugzilla/show_bug.cgi?id=4390

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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

* [Bug general/4390] CorefileByteBuffer needs to use a lighter weight file access method than RandomAccessFile
  2007-04-18  0:57 [Bug general/4390] New: CorefileByteBuffer needs to use a lighter weight file access method than RandomAccessFile pmuldoon at redhat dot com
@ 2008-01-09 13:44 ` pmuldoon at redhat dot com
  2008-01-09 13:47 ` pmuldoon at redhat dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pmuldoon at redhat dot com @ 2008-01-09 13:44 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From pmuldoon at redhat dot com  2008-01-09 13:43 -------
Appears that the comment above fixed the issue, and this bug was left open

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


http://sourceware.org/bugzilla/show_bug.cgi?id=4390

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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

* [Bug general/4390] CorefileByteBuffer needs to use a lighter weight file access method than RandomAccessFile
  2007-04-18  0:57 [Bug general/4390] New: CorefileByteBuffer needs to use a lighter weight file access method than RandomAccessFile pmuldoon at redhat dot com
  2008-01-09 13:44 ` [Bug general/4390] " pmuldoon at redhat dot com
@ 2008-01-09 13:47 ` pmuldoon at redhat dot com
  2008-01-09 13:48 ` pmuldoon at redhat dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pmuldoon at redhat dot com @ 2008-01-09 13:47 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From pmuldoon at redhat dot com  2008-01-09 13:47 -------
Reopening to add actual commit changelog

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


http://sourceware.org/bugzilla/show_bug.cgi?id=4390

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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

* [Bug general/4390] CorefileByteBuffer needs to use a lighter weight file access method than RandomAccessFile
  2007-04-18  0:57 [Bug general/4390] New: CorefileByteBuffer needs to use a lighter weight file access method than RandomAccessFile pmuldoon at redhat dot com
  2008-01-09 13:44 ` [Bug general/4390] " pmuldoon at redhat dot com
  2008-01-09 13:47 ` pmuldoon at redhat dot com
@ 2008-01-09 13:48 ` pmuldoon at redhat dot com
  2008-01-09 13:48 ` pmuldoon at redhat dot com
  2008-01-09 13:49 ` pmuldoon at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: pmuldoon at redhat dot com @ 2008-01-09 13:48 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From pmuldoon at redhat dot com  2008-01-09 13:47 -------
Changing Assigned to pmuldoon

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


http://sourceware.org/bugzilla/show_bug.cgi?id=4390

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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

* [Bug general/4390] CorefileByteBuffer needs to use a lighter weight file access method than RandomAccessFile
  2007-04-18  0:57 [Bug general/4390] New: CorefileByteBuffer needs to use a lighter weight file access method than RandomAccessFile pmuldoon at redhat dot com
                   ` (2 preceding siblings ...)
  2008-01-09 13:48 ` pmuldoon at redhat dot com
@ 2008-01-09 13:48 ` pmuldoon at redhat dot com
  2008-01-09 13:49 ` pmuldoon at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: pmuldoon at redhat dot com @ 2008-01-09 13:48 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From pmuldoon at redhat dot com  2008-01-09 13:47 -------
2007-05-22  Phil Muldoon  <pmuldoon@redhat.com>

	* CorefileByteBuffer.java (finalize): Remove.
	(isFileOpen): Remove.
	(peek): Rewrite to use StatelessFile.
	(isFileSane): Test for object creation.
	(openFile): Rewrite. Use StatlessFile.
	(CorefileByteBuffer): Switch order of file open
	and elf address offset table creation.
	* TestCorefileByteBuffer (testCoreFileByteBufferMapOverrun): Move
	overrun location.

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


http://sourceware.org/bugzilla/show_bug.cgi?id=4390

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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

* [Bug general/4390] CorefileByteBuffer needs to use a lighter weight file access method than RandomAccessFile
  2007-04-18  0:57 [Bug general/4390] New: CorefileByteBuffer needs to use a lighter weight file access method than RandomAccessFile pmuldoon at redhat dot com
                   ` (3 preceding siblings ...)
  2008-01-09 13:48 ` pmuldoon at redhat dot com
@ 2008-01-09 13:49 ` pmuldoon at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: pmuldoon at redhat dot com @ 2008-01-09 13:49 UTC (permalink / raw)
  To: frysk-bugzilla



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|frysk-bugzilla at sourceware|pmuldoon at redhat dot com
                   |dot org                     |
             Status|REOPENED                    |ASSIGNED


http://sourceware.org/bugzilla/show_bug.cgi?id=4390

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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

end of thread, other threads:[~2008-01-09 13:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-18  0:57 [Bug general/4390] New: CorefileByteBuffer needs to use a lighter weight file access method than RandomAccessFile pmuldoon at redhat dot com
2008-01-09 13:44 ` [Bug general/4390] " pmuldoon at redhat dot com
2008-01-09 13:47 ` pmuldoon at redhat dot com
2008-01-09 13:48 ` pmuldoon at redhat dot com
2008-01-09 13:48 ` pmuldoon at redhat dot com
2008-01-09 13:49 ` pmuldoon at redhat 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).