Project

General

Profile

« Previous | Next » 

Revision 138f0ba6

Added by naruse (Yui NARUSE) almost 5 years ago

merge revision(s) 0ed71b37fa9af134fdd5a7fd1cebd171eba83541: [Backport #17536]

    Don't try to clear cache on garbage objects

    Method cache can be cleared during lazy sweeping.  An object that will
    be collected during lazy sweep *should not* have it's method cache
    cleared.  Soon-to-be-collected objects can be in an inconsistent state and
    this can lead to a crash.  This patch just leaves early if the object is
    going to be collected.

    Fixes [Bug #17536]

    Co-Authored-By: John Hawthorn <[email protected]>
    Co-Authored-By: Alan Wu <[email protected]>
    ---
     vm_method.c | 1 +
     1 file changed, 1 insertion(+)