# HG changeset patch # User coleenp # Date 1391713066 0 # Node ID 441a4617a9f4f480b89f16a1aa0ab293eefb3238 # Parent 13fdeb7d7aad65d92ff9825c52c761bfdc31be86 8028735: runtime/RedefineObject/TestRedefineObject.java interrupted (timed out?) on solaris_sparcv9-fastdebug-c2-runtime and solaris_x64-debugOpen-c2-runtime Summary: 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 diff -r 13fdeb7d7aad -r 441a4617a9f4 hotspot/test/runtime/RedefineObject/Agent.java --- a/hotspot/test/runtime/RedefineObject/Agent.java Wed Feb 05 21:24:29 2014 -0800 +++ b/hotspot/test/runtime/RedefineObject/Agent.java Thu Feb 06 18:57:46 2014 +0000 @@ -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. * * This code is free software; you can redistribute it and/or modify it @@ -65,8 +65,8 @@ public static void main(String[] args) { byte[] ba = new byte[0]; - // If it survives 1000 GC's, it's good. - for (int i = 0; i < 1000 ; i++) { + // If it survives 100 GC's, it's good. + for (int i = 0; i < 100 ; i++) { System.gc(); ba.clone(); }