Temp files
Brian Harris
brianfromoregon at gmail.com
Fri Aug 22 16:24:58 UTC 2014
Yep, that works for me. Random thought: I guess this would be one thing on
the heap of issues with running jmh on android.
On Fri, Aug 22, 2014 at 12:21 AM, Aleksey Shipilev <
aleksey.shipilev at oracle.com> wrote:
> Hi Brian,
>
> On 08/21/2014 09:06 PM, Brian Harris wrote:
> > Hi, wanted to report the inability to run jmh when user doesnt have write
> > access to tmp dir. Must you create a temp file on the real fs? Maybe
> there
> > could be a switch to change the dir used.
>
> Yes, JMH expects a writable temp dir, since we are communicating many
> things to/from the forked VM via the files. Moving out to completely
> read-only execution will introduce quite a mess in the harness
> infrastructure. The use case of non-writable tmp dir is minuscule in
> proportion, as far as I can see. Therefore, we wouldn't reconsider in
> nearest future.
>
> As Staffan said, -Djava.io.tmpdir is your friend here :)
>
> -Aleksey.
>
>
More information about the jmh-dev
mailing list