# HG changeset patch # User coleenp # Date 1391713066 0 # Node ID 4f0acb75c9211c2742217d4f72a474e878d5d654 # Parent c86519f8d82632592e6656a49b32880900443b2c 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 c86519f8d826 -r 4f0acb75c921 test/runtime/RedefineObject/Agent.java --- a/test/runtime/RedefineObject/Agent.java Wed Feb 05 21:24:29 2014 -0800 +++ b/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(); }