8243430: use reproducible random in :vmTestbase_vm_gc

Reviewed-by: kbarrett, lmesnik, tschatzl
This commit is contained in:
Igor Ignatyev 2020-06-02 13:04:21 -07:00
parent 0366f6bf45
commit f2cd6d6a10
232 changed files with 490 additions and 546 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle01.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, quick]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle02.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle03.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle04.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle05.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle06.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle07.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle08.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle09.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle10.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle11.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle12.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle13.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle14.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, quick]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle15.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle16.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle17.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle18.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle19.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle20.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle21.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle22.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, quick]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle23.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle24.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle25.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle26.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle27.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle28.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle29.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, quick]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle30.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle31.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle32.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle33.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/ArrayJuggle/Juggle34.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, quick]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/AllocateWithoutOomTest.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, jrockit]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/CallGC/CallGC02.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/FinalizeTest01.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, monitoring]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/FinalizeTest02.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, monitoring]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/FinalizeTest04.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2009, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/FinalizeTest05.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/InterruptGC.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/JumbleGC.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/JumbleGC002.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, quarantine]
@ -58,10 +58,10 @@ package gc.gctests.JumbleGC002;
import java.io.*;
import java.util.*;
import java.util.concurrent.ThreadLocalRandom;
import nsk.share.*;
import nsk.share.gc.*;
import nsk.share.test.LocalRandom;
/**
* This test simply does Algorithms.eatMemory() in a loop
@ -89,7 +89,6 @@ public class JumbleGC002 extends ThreadedGCTest {
int numberOfQuarters;
int id;
int nodes;
ThreadLocalRandom random = ThreadLocalRandom.current();
public Eater(int id, int numberOfQuarters, int nodes) {
this.numberOfQuarters = numberOfQuarters;
@ -123,7 +122,7 @@ public class JumbleGC002 extends ThreadedGCTest {
for (int i = 0; i < numberOfQuarters; i++) {
// Append initialized long[]
int length = random.nextInt(ARRAY_MAX_LENGTH);
int length = LocalRandom.nextInt(ARRAY_MAX_LENGTH);
long[] l = new long[length];
for (int j = 0; j < length; j++) {
l[j] = (long) j;
@ -133,14 +132,14 @@ public class JumbleGC002 extends ThreadedGCTest {
}
// Append not initialized double[]
length = random.nextInt(ARRAY_MAX_LENGTH);
length = LocalRandom.nextInt(ARRAY_MAX_LENGTH);
double[] d = new double[length];
if (vector.elementAt(4 * i + 1) == null) {
vector.setElementAt(d, 4 * i + 1);
}
// Append initialized int[]
length = random.nextInt(ARRAY_MAX_LENGTH);
length = LocalRandom.nextInt(ARRAY_MAX_LENGTH);
int[] n = new int[length];
for (int j = 0; j < length; j++) {
n[j] = j;
@ -162,7 +161,7 @@ public class JumbleGC002 extends ThreadedGCTest {
// Drop references to half of the elements of the vector
private void cleanVector() {
int index = random.nextInt(numberOfElements / 2);
int index = LocalRandom.nextInt(numberOfElements / 2);
for (int i = index; i < index + numberOfElements / 2; i++) {
vector.setElementAt(null, i);
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/LargeObjects/large001.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, quick]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/LargeObjects/large002.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/LargeObjects/large003.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/LargeObjects/large004.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/LargeObjects/large005.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/LoadUnloadGC2.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, quick]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/MatrixJuggleGC.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/MemoryEater.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/MemoryEaterMT.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/OneeFinalizerTest.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, jrockit]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/PhantomReference/PhantomReferenceEvilTest.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, jrockit]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/PhantomReference/PhantomReferenceTest.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, jrockit]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/PhantomReference/phantom001.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/PhantomReference/phantom002.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/ReferencesGC.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, quick]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/SoftReference/SoftReferenceTest.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, jrockit]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/SoftReference/soft001.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/SoftReference/soft002.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/SoftReference/soft003.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/SoftReference/soft004.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/SoftReference/soft005.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/StringIntern.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/StringInternGC.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, quick]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/StringInternSync.
* VM Testbase keywords: [gc, stress, stressopt, feature_perm_removal_jdk7, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/StringInternSync2.
* VM Testbase keywords: [gc, stress, stressopt, feature_perm_removal_jdk7, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/StringInternSyncWithGC.
* VM Testbase keywords: [gc, stress, stressopt, feature_perm_removal_jdk7, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/StringInternSyncWithGC2.
* VM Testbase keywords: [gc, stress, stressopt, feature_perm_removal_jdk7, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/StringInternSyncWithGC3.
* VM Testbase keywords: [gc, stress, stressopt, feature_perm_removal_jdk7, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/StringInternSyncWithGC4.
* VM Testbase keywords: [gc, stress, stressopt, feature_perm_removal_jdk7, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/ThreadGC.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/WeakReference/WeakReferenceEvilTest.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, jrockit]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/WeakReference/WeakReferenceTest.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, jrockit]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/WeakReference/weak001.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/WeakReference/weak002.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/WeakReference/weak003.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/WeakReference/weak004.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/WeakReference/weak005.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/WeakReference/weak006.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/gctests/WeakReference/weak007.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key gc
* @key gc randomness
*
* @summary converted from VM Testbase gc/gctests/WeakReferenceGC.
* VM Testbase keywords: [gc, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key gc
* @key gc randomness
*
* @summary converted from VM Testbase gc/gctests/gctest01.
* VM Testbase keywords: [gc]
@ -42,7 +42,6 @@ import nsk.share.log.*;
import nsk.share.gc.*;
import nsk.share.TestBug;
import java.util.Random;
//import RusageStruct;
/* -- stress testing

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2020, 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
@ -25,7 +25,7 @@
/*
* @test
* @key gc
* @key gc randomness
*
* @summary converted from VM Testbase gc/gctests/gctest02.
* VM Testbase keywords: [gc]
@ -40,6 +40,8 @@ package gc.gctests.gctest02;
import nsk.share.TestFailure;
import nsk.share.TestBug;
import nsk.share.test.LocalRandom;
/* stress testing
create 16 memory evil threads requesting to allocate
the object of sizes from 8 to ( 2 ^ 19).
@ -48,27 +50,11 @@ import nsk.share.TestBug;
to simulate the object life time.
*/
import java.util.Random;
class PopulationException extends Exception {
//this exception is used to signal that we've
//reached the end of the test
}
//the LocalRandom class is used to isolate the pseudo-random
//number generator from other parts of the system which might
//silently be using it.
//This is to make sure the tests are repeatable
class LocalRandom {
public static Random rGen = null;
public static double random() {
//should fail if rGen is not initialized
return rGen.nextDouble();
}
}
class ThreadCount {
static int count= 0;
static synchronized void inc() { count++; }
@ -190,7 +176,6 @@ public class gctest02 {
public static void main(String args[] ) {
int bufsz = 8;
int peopleLimit = 1000;
long randomSeed = System.currentTimeMillis();
Memevil me=null;
if (args.length > 0)
{
@ -206,24 +191,9 @@ public class gctest02 {
}
}
if (args.length == 2)
{
try
{
randomSeed = new Long(args[1]).longValue();
}
catch (NumberFormatException e)
{
throw new TestBug(
"Bad input to gctest02. Expected long, got: ->"
+ args[0] + "<-", e);
}
}
Person.setPopulationLimit(peopleLimit);
System.out.println("Seed value: " + randomSeed);
for (int ii=0; ii<40; ii++) {
bufsz = 8;
LocalRandom.rGen = new Random(randomSeed);
Person.populationCount = 0;
Escaper you = new Escaper();
you.setName("Escaper");

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2020, 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
@ -36,7 +36,7 @@
/*
* @test
* @key gc
* @key gc randomness
*
* @summary converted from VM Testbase gc/gctests/gctest03.
* VM Testbase keywords: [gc]
@ -58,8 +58,6 @@ import nsk.share.TestBug;
//import Tree;
//import Redthread;
//import Bluethread;
//import LocalRandom;
import java.util.Random;
public class gctest03 extends TestBase {
private String[] args;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key gc
* @key gc randomness
*
* @summary converted from VM Testbase gc/gctests/gctest04.
* VM Testbase keywords: [gc]
@ -42,9 +42,6 @@ import nsk.share.test.*;
import nsk.share.TestFailure;
//gctest04.java
//import queue;
//import LocalRandom;
import java.util.Random;
import nsk.share.TestBug;
import nsk.share.TestFailure;
@ -54,8 +51,6 @@ public class gctest04 {
public static void main(String args[] )
{
int queueLimit = 1000;
long randomSeed = System.currentTimeMillis();
if (args.length > 0)
{
try
@ -69,22 +64,6 @@ public class gctest04 {
}
}
if (args.length == 2)
{
try
{
randomSeed = new Long(args[1]).longValue();
}
catch (NumberFormatException e)
{
throw new TestFailure("Bad input to gctest04. Expected long, got: ->" +
args[0] + "<-", e);
}
}
System.out.println("Seed value: " + randomSeed);
queue requestque = new queue(queueLimit);
reqgen gen = new reqgen(requestque, 5);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key gc
* @key gc randomness
*
* @summary converted from VM Testbase gc/gctests/nativeGC05.
* VM Testbase keywords: [gc]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 2020, 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
@ -25,7 +25,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/hashcode/ExternalHashingTest.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, jrockit]
@ -58,6 +58,8 @@ import java.util.Date;
import java.util.Random;
import java.util.Vector;
import jdk.test.lib.Utils;
/**
* Test the possible interaction of external hashing and locking on object
* headers.
@ -77,7 +79,7 @@ import java.util.Vector;
public final class ExternalHashingTest {
/** Random number generator. */
static Random rand = new Random();
static Random rand = Utils.getRandomInstance();
/** Goes to true when the threads should start working. */
public static volatile boolean startingGun;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/hashcode/HashCodeTestC.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, jrockit]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/hashcode/HashCodeTestCC.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, jrockit]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/hashcode/HashCodeTestP.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, jrockit]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2020, 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
@ -23,7 +23,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/hashcode/HashCodeTestPC.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, jrockit]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 2020, 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
@ -53,10 +53,10 @@
package gc.huge.quicklook.largeheap.Access;
import java.util.concurrent.ThreadLocalRandom;
import java.util.ArrayList;
import nsk.share.TestFailure;
import nsk.share.gc.*;
import nsk.share.test.LocalRandom;
public class access extends ThreadedGCTest {
@ -165,6 +165,8 @@ public class access extends ThreadedGCTest {
@Override
public void run() {
// ensure LocalRandom is loaded and has enough memory
LocalRandom.init();
synchronized (lock) {
for (int i = 0; i < STORAGE_SIZE_DIM1; i++) {
if (!getExecutionController().continueExecution()) {
@ -178,11 +180,10 @@ public class access extends ThreadedGCTest {
is4GAllocated = true;
lock.notifyAll();
}
ThreadLocalRandom random = ThreadLocalRandom.current();
while (getExecutionController().continueExecution()) {
int i = random.nextInt(STORAGE_SIZE_DIM1);
int j = random.nextInt(STORAGE_SIZE_DIM2);
long value = random.nextLong(Long.MAX_VALUE);
int i = LocalRandom.nextInt(STORAGE_SIZE_DIM1);
int j = LocalRandom.nextInt(STORAGE_SIZE_DIM2);
long value = LocalRandom.nextLong();
storage[i][j] = value;
if (storage[i][j] != value) {
throw new TestFailure("The value = "

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/lock/jni/jnilock001.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent, quick]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/lock/jni/jnilock002.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/lock/jni/jnilock003.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/lock/jniref/jniglobalreflock01.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/lock/jniref/jniglobalreflock02.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, 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
@ -24,7 +24,7 @@
/*
* @test
* @key stress gc
* @key stress gc randomness
*
* @summary converted from VM Testbase gc/lock/jniref/jniglobalreflock03.
* VM Testbase keywords: [gc, stress, stressopt, nonconcurrent]

Some files were not shown because too many files have changed in this diff Show More