Opened 14 years ago

Last modified 11 years ago

#18 new enhancement

Port com.sun.tools.attach

Reported by: dmik Owned by:
Priority: major Milestone: Enhanced
Component: general Version:
Severity: medium Keywords:
Cc:

Description

Port com.sun.tools.attach (http://download.oracle.com/javase/6/docs/jdk/api/attach/spec/com/sun/tools/attach/package-summary.html). It uses VirtualAllocEx?() to allocate memory in another process which is not implemented in Odin.

This attach API is new in JDK 6 which might explain why this function is not in Odin. There also may be difficulties in implementing VirtualAllocEx?() on OS/2. A wild thought suggests that we need to inject our DLL in a foreign process in order to do that on OS/2 which looks like too much hassle just for this simple Java API. Other ways of implementing the same functionality besides VirtualAllocEx?() should be investigated (may be worth to check the Linux implementation).

Putting this to Enhanced so far, since at the first sight it looks like a low-level JVM infrastructure management tool the majority of end-user applications don't need.

Change History (1)

comment:1 Changed 11 years ago by gap

Severity: medium

The attach facility is needed to use jmap.exe included in
openjdk version "1.6.0_27"
OpenJDK Runtime Environment (build 1.6.0_27-b01-GA5)
OpenJDK Client VM (build 20.0-b12, mixed mode)

This would be of great help in tracing "memory leaks".
Not real leaks but junk which for obscure reasons does not leave memory.

Please review this.
Thanks,
greg

Note: See TracTickets for help on using tickets.