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:
parent
aae536aad7
commit
3eb1ac89c6
@ -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 class Agent implements ClassFileTransformer {
|
||||
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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user