< prev index next >

test/gc/shenandoah/jni/TestJNIGlobalRefs.java

Print this page
rev 10772 : [backport] Update copyrights
rev 10786 : [backport] Reformat Shenandoah tests

*** 1,7 **** /* ! * Copyright (c) 2018 Red Hat, Inc. and/or its affiliates. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * --- 1,7 ---- /* ! * Copyright (c) 2018, Red Hat, Inc. All rights reserved. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. *
*** 61,76 **** fillArray(a, 8080); makeWeakGlobalRef(a); } private static void testGlobal() { ! int[] a = (int[])readGlobalRef(); checkArray(a, 1337); } private static void testWeakGlobal() { ! int[] a = (int[])readWeakGlobalRef(); if (a != null) { checkArray(a, 8080); } else { // weak reference is cleaned, recreate: seedWeakGlobalRef(); --- 61,76 ---- fillArray(a, 8080); makeWeakGlobalRef(a); } private static void testGlobal() { ! int[] a = (int[]) readGlobalRef(); checkArray(a, 1337); } private static void testWeakGlobal() { ! int[] a = (int[]) readWeakGlobalRef(); if (a != null) { checkArray(a, 8080); } else { // weak reference is cleaned, recreate: seedWeakGlobalRef();
< prev index next >