harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vera Petrashkova (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4342) [buildtest][vts] Test vm/jvms/instructions/invokeReturn/return/return02/return0201/return0201.xml is incorrect
Date Thu, 05 Jul 2007 04:29:04 GMT
[buildtest][vts] Test vm/jvms/instructions/invokeReturn/return/return02/return0201/return0201.xml
is incorrect
--------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-4342
                 URL: https://issues.apache.org/jira/browse/HARMONY-4342
             Project: Harmony
          Issue Type: Bug
          Components: build - test - ci
            Reporter: Vera Petrashkova
         Attachments: return0201.patch

This positive test checks that after return instruction 
in some synchronized method, the monitor acquired or reentered on 
invocation of the method is released or exited

This test contains class return0201First which defines synchronized method  run() .
Method run()  method contains monitorenter associated with array object 
which should be used by another thread but it does not contains monitorexit 
instruction.


See source code 
------------return0201pFirst.jj---------------
;
; run method
.method public synchronized run()V
   .limit stack 1
   .limit locals 2
   
; get locker object from lockerField field and store it in local variable 1
   aload_0
   getfield org/apache/harmony/vts/test/vm/jvms/instructions/invokeReturn/return/return02/return0201/return0201pFirst/lockerField
[I
   astore_1

; get a lock to locker object
   aload_1
   monitorenter

; return must unlock locker object
   return
.end method
--------------------
As the result RI throws IllegalMonitorStateException on this method.
On Harmony this test fails.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message