# HG changeset patch # User kvn # Date 1358376918 28800 # Node ID bf623b2d5508c0331f9138b309632086344123a5 # Parent 5b8548391bf39cc3184d9f772059a4fd44961c0f 8006204: please JTREGify test/compiler/7190310/Test7190310.java Summary: Add proper jtreg annotations in the preceding comment, including an explicit timeout. Reviewed-by: kvn, twisti Contributed-by: david.r.chase@oracle.com diff -r 5b8548391bf3 -r bf623b2d5508 test/compiler/7190310/Test7190310.java --- a/test/compiler/7190310/Test7190310.java Tue Jan 15 14:45:12 2013 -0800 +++ b/test/compiler/7190310/Test7190310.java Wed Jan 16 14:55:18 2013 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2013, 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,16 @@ */ /* - * Manual test + * @test + * @bug 7190310 + * @summary Inlining WeakReference.get(), and hoisting $referent may lead to non-terminating loops + * @run main/othervm/timeout=600 -Xbatch Test7190310 + */ + +/* + * Note bug exhibits as infinite loop, timeout is helpful. + * It should normally finish pretty quickly, but on some especially slow machines + * it may not. The companion _unsafe test lacks a timeout, but that is okay. */ import java.lang.ref.*;