File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/advance Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -185,11 +185,6 @@ private MBeanServer doFullGC() {
185
185
// do this a few times to dump a small heap if we can
186
186
MBeanServer server = null ;
187
187
for (int i = 0 ; i < 10 ; i ++) {
188
- try {
189
- Thread .sleep (1000 );
190
- } catch (InterruptedException e1 ) {
191
- // do nothing
192
- }
193
188
System .gc ();
194
189
Runtime .getRuntime ().freeMemory ();
195
190
server = ManagementFactory .getPlatformMBeanServer ();
@@ -199,6 +194,11 @@ private MBeanServer doFullGC() {
199
194
} catch (MalformedObjectNameException | InstanceNotFoundException | ReflectionException | MBeanException e ) {
200
195
throw new RuntimeException (e );
201
196
}
197
+ try {
198
+ Thread .sleep (3000 );
199
+ } catch (InterruptedException e1 ) {
200
+ // do nothing
201
+ }
202
202
}
203
203
return server ;
204
204
}
You can’t perform that action at this time.
0 commit comments