8057732: sun/jvmstat/monitor/MonitoredVm/MonitorVmStartTerminate.java: Invalid PerfMemory size
Reviewed-by: cjplummer
This commit is contained in:
parent
4fd65fbdaf
commit
9b9d9308ed
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -80,9 +80,19 @@ public class VirtualMachineImpl extends HotSpotVirtualMachine {
|
|||||||
assert args.length <= 3; // includes null
|
assert args.length <= 3; // includes null
|
||||||
|
|
||||||
// create a pipe using a random name
|
// create a pipe using a random name
|
||||||
int r = (new Random()).nextInt();
|
Random rnd = new Random();
|
||||||
String pipename = "\\\\.\\pipe\\javatool" + r;
|
int r = rnd.nextInt();
|
||||||
long hPipe = createPipe(pipename);
|
String pipeprefix = "\\\\.\\pipe\\javatool";
|
||||||
|
String pipename = pipeprefix + r;
|
||||||
|
long hPipe;
|
||||||
|
try {
|
||||||
|
hPipe = createPipe(pipename);
|
||||||
|
} catch (IOException ce) {
|
||||||
|
// Retry with another random pipe name.
|
||||||
|
r = rnd.nextInt();
|
||||||
|
pipename = pipeprefix + r;
|
||||||
|
hPipe = createPipe(pipename);
|
||||||
|
}
|
||||||
|
|
||||||
// check if we are detached - in theory it's possible that detach is invoked
|
// check if we are detached - in theory it's possible that detach is invoked
|
||||||
// after this check but before we enqueue the command.
|
// after this check but before we enqueue the command.
|
||||||
|
@ -768,7 +768,6 @@ com/sun/jdi/NashornPopFrameTest.java 8187143 generic-
|
|||||||
|
|
||||||
sun/tools/jstat/jstatClassloadOutput1.sh 8173942 generic-all
|
sun/tools/jstat/jstatClassloadOutput1.sh 8173942 generic-all
|
||||||
|
|
||||||
sun/jvmstat/monitor/MonitoredVm/MonitorVmStartTerminate.java 8057732 generic-all
|
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user