8028735: runtime/RedefineObject/TestRedefineObject.java interrupted (timed out?) on solaris_sparcv9-fastdebug-c2-runtime and solaris_x64-debugOpen-c2-runtime

Change GC loop counter to 100 which is enough to test the original problem but doesn't timeout the test.

Reviewed-by: ctornqvi, lfoltan, mseledtsov, sla
This commit is contained in:
Coleen Phillimore 2014-02-06 18:57:46 +00:00
parent aae536aad7
commit 3eb1ac89c6

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2013, 2014, 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
@ -65,8 +65,8 @@ public class Agent implements ClassFileTransformer {
public static void main(String[] args) { public static void main(String[] args) {
byte[] ba = new byte[0]; byte[] ba = new byte[0];
// If it survives 1000 GC's, it's good. // If it survives 100 GC's, it's good.
for (int i = 0; i < 1000 ; i++) { for (int i = 0; i < 100 ; i++) {
System.gc(); System.gc();
ba.clone(); ba.clone();
} }