Request for review: 7141739: [osx] Local attach fails if java.io.tmpdir is set (original) (raw)
Staffan Larsen staffan.larsen at oracle.com
Wed Feb 1 08:05:12 PST 2012
- Previous message: Code Review Request for CR 7132367 (v1) - [macosx] ChoiceMouseWheelTest should be adapted for mac toolkit
- Next message: Request for review: 7141739: [osx] Local attach fails if java.io.tmpdir is set
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Please review the following change.
webrev: http://cr.openjdk.java.net/~sla/7141739/webrev.00/ bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7141739
This is a followup of bug 7132199 which is fixed in jdk8 and jdk7u-dev.
If the user sets -Djava.io.tmpdir to something else than /tmp, the attach framework will fail (for example jstack). The reason is that Hotspot and the jdk does not agree on which directory the well-known .java_pid and .attach_pid files should be in. On OSX Hotspot will always create these in the per-user secure temporary directory, but the jdk will look in java.io.tmpdir.
This fix makes sure the jdk looks in the same location as Hotspot.
Thanks, /Staffan
- Previous message: Code Review Request for CR 7132367 (v1) - [macosx] ChoiceMouseWheelTest should be adapted for mac toolkit
- Next message: Request for review: 7141739: [osx] Local attach fails if java.io.tmpdir is set
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]