< prev index next >

test/runtime/ReservedStack/ReservedStackTest.java

Print this page
rev 10304 : [mq]: jake_pre_integ


   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test ReservedStackTest
  26  * @library /testlibrary

  27  * @build jdk.test.lib.*
  28  * @run main/othervm -XX:-Inline -XX:CompileCommand=exclude,java/util/concurrent/locks/AbstractOwnableSynchronizer.setExclusiveOwnerThread ReservedStackTest
  29  */
  30 
  31 /* The exclusion of java.util.concurrent.locks.AbstractOwnableSynchronizer.setExclusiveOwnerThread()
  32  * from the compilable methods is required to ensure that the test will be able
  33  * to trigger a StackOverflowError on the right method.
  34  */
  35 
  36 
  37 /*
  38  * Notes about this test:
  39  * This test tries to reproduce a rare but nasty corruption bug that
  40  * occurs when a StackOverflowError is thrown in some critical sections
  41  * of the ReentrantLock implementation.
  42  *
  43  * Here's the critical section where a corruption could occur
  44  * (from java.util.concurrent.ReentrantLock.java)
  45  *
  46  * final void lock() {




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test ReservedStackTest
  26  * @library /testlibrary
  27  * @modules java.base/jdk.internal.vm.annotation
  28  * @build jdk.test.lib.*
  29  * @run main/othervm -XX:-Inline -XX:CompileCommand=exclude,java/util/concurrent/locks/AbstractOwnableSynchronizer.setExclusiveOwnerThread ReservedStackTest
  30  */
  31 
  32 /* The exclusion of java.util.concurrent.locks.AbstractOwnableSynchronizer.setExclusiveOwnerThread()
  33  * from the compilable methods is required to ensure that the test will be able
  34  * to trigger a StackOverflowError on the right method.
  35  */
  36 
  37 
  38 /*
  39  * Notes about this test:
  40  * This test tries to reproduce a rare but nasty corruption bug that
  41  * occurs when a StackOverflowError is thrown in some critical sections
  42  * of the ReentrantLock implementation.
  43  *
  44  * Here's the critical section where a corruption could occur
  45  * (from java.util.concurrent.ReentrantLock.java)
  46  *
  47  * final void lock() {


< prev index next >