[jira] Created: (RVM-863) BumpPointer.scanRegion can cause a page fault

View: New views
7 Messages — Rating Filter:   Alert me  

[jira] Created: (RVM-863) BumpPointer.scanRegion can cause a page fault

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

BumpPointer.scanRegion can cause a page fault
---------------------------------------------

                 Key: RVM-863
                 URL: http://jira.codehaus.org/browse/RVM-863
             Project: RVM
          Issue Type: Bug
          Components: MMTk
    Affects Versions: svn head
            Reporter: Laurence Hellyer
             Fix For: 3.1.1


BumpPointer.scanRegion can walk off the end of mapped pages due to an incorrect check.   Ensuring that the current objectReference is less than the currentLimit before looking for another object is not enough because the object alignment code can walk up to 16 bytes forward to check if another object is allocated within the region.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Jikesrvm-issues mailing list
Jikesrvm-issues@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-issues

[jira] Updated: (RVM-863) BumpPointer.scanRegion can cause a page fault

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/RVM-863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Laurence Hellyer updated RVM-863:
---------------------------------

    Attachment: scanRegion.patch

> BumpPointer.scanRegion can cause a page fault
> ---------------------------------------------
>
>                 Key: RVM-863
>                 URL: http://jira.codehaus.org/browse/RVM-863
>             Project: RVM
>          Issue Type: Bug
>          Components: MMTk
>    Affects Versions: svn head
>            Reporter: Laurence Hellyer
>             Fix For: 3.1.1
>
>         Attachments: scanRegion.patch
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> BumpPointer.scanRegion can walk off the end of mapped pages due to an incorrect check.   Ensuring that the current objectReference is less than the currentLimit before looking for another object is not enough because the object alignment code can walk up to 16 bytes forward to check if another object is allocated within the region.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Jikesrvm-issues mailing list
Jikesrvm-issues@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-issues

[jira] Updated: (RVM-863) BumpPointer.scanRegion can cause a page fault

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/RVM-863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Laurence Hellyer updated RVM-863:
---------------------------------

    Attachment: statementOfContribution.txt

Attached patch fixs this issue - passes pre commit testing

> BumpPointer.scanRegion can cause a page fault
> ---------------------------------------------
>
>                 Key: RVM-863
>                 URL: http://jira.codehaus.org/browse/RVM-863
>             Project: RVM
>          Issue Type: Bug
>          Components: MMTk
>    Affects Versions: svn head
>            Reporter: Laurence Hellyer
>             Fix For: 3.1.1
>
>         Attachments: scanRegion.patch, statementOfContribution.txt
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> BumpPointer.scanRegion can walk off the end of mapped pages due to an incorrect check.   Ensuring that the current objectReference is less than the currentLimit before looking for another object is not enough because the object alignment code can walk up to 16 bytes forward to check if another object is allocated within the region.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Jikesrvm-issues mailing list
Jikesrvm-issues@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-issues

[jira] Updated: (RVM-863) BumpPointer.scanRegion can cause a page fault

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/RVM-863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Laurence Hellyer updated RVM-863:
---------------------------------

    Attachment: RVM-863v2.patch

Since my previous patch I have discovered another corner case when scanRegion can trigger a fault.

In the event that a bump pointer region has been claimed but does not contain any objects then getObjectFromStartAddress will spuriously create an ObjectReference.  The attached patch (RVM-863v2.patch) applies cleanly to trunk and should fix this issue for anyone else performing a linear scan along a BumpPointer.

Kind regards
Laurence

> BumpPointer.scanRegion can cause a page fault
> ---------------------------------------------
>
>                 Key: RVM-863
>                 URL: http://jira.codehaus.org/browse/RVM-863
>             Project: RVM
>          Issue Type: Bug
>          Components: MMTk
>    Affects Versions: svn head
>            Reporter: Laurence Hellyer
>             Fix For: 3.1.1
>
>         Attachments: RVM-863v2.patch, scanRegion.patch, statementOfContribution.txt
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> BumpPointer.scanRegion can walk off the end of mapped pages due to an incorrect check.   Ensuring that the current objectReference is less than the currentLimit before looking for another object is not enough because the object alignment code can walk up to 16 bytes forward to check if another object is allocated within the region.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jikesrvm-issues mailing list
Jikesrvm-issues@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-issues

[jira] Assigned: (RVM-863) BumpPointer.scanRegion can cause a page fault

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/RVM-863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Grove reassigned RVM-863:
-------------------------------

    Assignee: Steve Blackburn

> BumpPointer.scanRegion can cause a page fault
> ---------------------------------------------
>
>                 Key: RVM-863
>                 URL: http://jira.codehaus.org/browse/RVM-863
>             Project: RVM
>          Issue Type: Bug
>          Components: MMTk
>    Affects Versions: svn head
>            Reporter: Laurence Hellyer
>            Assignee: Steve Blackburn
>             Fix For: 3.1.1
>
>         Attachments: RVM-863v2.patch, scanRegion.patch, statementOfContribution.txt
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> BumpPointer.scanRegion can walk off the end of mapped pages due to an incorrect check.   Ensuring that the current objectReference is less than the currentLimit before looking for another object is not enough because the object alignment code can walk up to 16 bytes forward to check if another object is allocated within the region.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jikesrvm-issues mailing list
Jikesrvm-issues@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-issues

[jira] Assigned: (RVM-863) BumpPointer.scanRegion can cause a page fault

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/RVM-863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Blackburn reassigned RVM-863:
-----------------------------------

    Assignee: Daniel Frampton  (was: Steve Blackburn)

> BumpPointer.scanRegion can cause a page fault
> ---------------------------------------------
>
>                 Key: RVM-863
>                 URL: http://jira.codehaus.org/browse/RVM-863
>             Project: RVM
>          Issue Type: Bug
>          Components: MMTk
>    Affects Versions: svn head
>            Reporter: Laurence Hellyer
>            Assignee: Daniel Frampton
>             Fix For: 3.1.1
>
>         Attachments: RVM-863v2.patch, scanRegion.patch, statementOfContribution.txt
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> BumpPointer.scanRegion can walk off the end of mapped pages due to an incorrect check.   Ensuring that the current objectReference is less than the currentLimit before looking for another object is not enough because the object alignment code can walk up to 16 bytes forward to check if another object is allocated within the region.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jikesrvm-issues mailing list
Jikesrvm-issues@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-issues

[jira] Commented: (RVM-863) BumpPointer.scanRegion can cause a page fault

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/RVM-863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=203162#action_203162 ]

Daniel Frampton commented on RVM-863:
-------------------------------------

Possible fix committed in r15800. MarkCompact appears to have rotted, I will leave this open until I have been able to use mark compact to test more thoroughly.

> BumpPointer.scanRegion can cause a page fault
> ---------------------------------------------
>
>                 Key: RVM-863
>                 URL: http://jira.codehaus.org/browse/RVM-863
>             Project: RVM
>          Issue Type: Bug
>          Components: MMTk
>    Affects Versions: svn head
>            Reporter: Laurence Hellyer
>            Assignee: Daniel Frampton
>             Fix For: 3.1.1
>
>         Attachments: RVM-863v2.patch, scanRegion.patch, statementOfContribution.txt
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> BumpPointer.scanRegion can walk off the end of mapped pages due to an incorrect check.   Ensuring that the current objectReference is less than the currentLimit before looking for another object is not enough because the object alignment code can walk up to 16 bytes forward to check if another object is allocated within the region.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Jikesrvm-issues mailing list
Jikesrvm-issues@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-issues